iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
Hello,
I just have a simple question...
Is it possible to execute client events before server events with updateRow event of the webgrid ?
I have a webgrid with OnUpdateRow server events defined :
<cc4:WebGrid ID="grdInputSamples" DataSourceID="dsInputSamples" runat="server" UseDefaultStyle="True" Width="100%" DefaultStyleMode="Elegant" OnInitializeRow="grdInputSamples_InitializeRow" OnUpdateRow="grdInputSamples_UpdateRow" OnDeleteRow="grdInputSamples_DeleteRow"> <LayoutSettings AllowColumnMove="Yes" AllowSorting="Yes" PagingMode="ClassicPaging" AllowFilter="Yes" AutoFilterSuggestion="True" ShowFilterStatus="True" AllowEdit="Yes" AllowDelete="Yes"> </LayoutSettings>
and I would like to define a client event as well like :
function UpdateRow(id) { ... }
but this function isn't called...
Is it possible to do that?
Nicolas
Hi Nicolas,
Yes, it is possible. In order to do that, we need to call the java script from server side using invoke script. Here is the sample code that you need to add on your server side function, WebGrid1.ClientAction.InvokeScript("updateRow();"); I hope it helps and please, do not hesitate to ask if you have any other questions, thank you. Best Regards,Andi Santoso.
WebGrid1.ClientAction.InvokeScript("updateRow();");
I hope it helps and please, do not hesitate to ask if you have any other questions, thank you.
Best Regards,Andi Santoso.
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname