Hi,
I want to call javascript in the GridWeb1_CustomCommand event but it doesnt execute the javascript.
Is there any way to call it...
please suggest .....
Regards,
Nikhil
Hi,
I want to call javascript in the GridWeb1_CustomCommand event but it doesnt execute the javascript.
Is there any way to call it...
please suggest .....
Regards,
Nikhil
Hi,
Thanks for your posting.
I have logged your issue in our database. We will help you with a sample code and update you asap.
This issue has been logged as CELLSNET-40107.
Hi,
This is very urgent for me... Please resolve my issue as early as possible
Regards,
Nikhil
Hi,
I have added your comment in our database. Hopefully, you will be helped soon.
Hi,
For GridWeb1_CustomCommand event, it is based on a custom button, you should customize a custom button in GridWeb control, such as,
<CustomCommandButtons>
<acw:CustomCommandButton runat="server" Command="HelloWorld" ImageUrl="/Grid/acw_client/save.gif" >
</acw:CustomCommandButton>
</CustomCommandButtons>
Then for the GridWeb1_CustomCommand event, it will be called.
Following is the similar code:
switch (command.ToLower())
{
case "helloworld":
string script;
script = "alert('"
+ "Hello World"
+ "')";
this.ClientScript.RegisterClientScriptBlock(this.GetType(), "Util.alertMessage", script);
break;
case "":
break;
default:
break;
}
We attached an example for your, hope that you will know how you can customize your own event
Thank you.