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
I have a WebGrid with OnAddRow="WebGrid1_AddRow" set. However, when I add a row, WebGrid1_AddRow() is not being called. What am I missing?
Here is my grid definition:
<ISWebGrid:WebGrid ID="WebGrid1" runat="server" Height="250px" UseDefaultStyle="True" Width="500px" OnInitializeDataSource="WebGrid1_InitializeDataSource" OnPrepareDataBinding="WebGrid1_PrepareDataBinding" OnBatchUpdate="WebGrid1_BatchUpdate" OnAddRow="WebGrid1_AddRow" > <LayoutSettings AllowAddNew="Yes" AllowColumnMove="Yes" AllowDelete="Yes" AllowEdit="Yes" AllowFilter="Yes" AllowGrouping="Yes" AllowSorting="Yes" AllowBatchUpdate="True" EditOnClick="True" SelectFirstCellOnAdd="True" ApplyFiltersKey="Enter" NewRowLostFocusAction="AlwaysUpdate" > <BatchUpdateSettings AutomaticObjectUpdate="False" /> </LayoutSettings> <RootTable Caption="Test Contacts" DataKeyField="CONTACT_NO" DataMember="TESTCONTACTS" NewRowInfoText="Click here to add a new row"> <Columns> <ISWebGrid:WebGridColumn Caption="Contact Number" DataMember="CONTACT_NO" EditType="NoEdit" Name="CONTACT_NO" Width="100px"></ISWebGrid:WebGridColumn> <ISWebGrid:WebGridColumn Caption="Forename" DataMember="CON_NAME1" Name="CON_NAME1" Width="100px"></ISWebGrid:WebGridColumn> <ISWebGrid:WebGridColumn Caption="Surname" DataMember="CON_NAME2" Name="CON_NAME2" Width="100px"></ISWebGrid:WebGridColumn> </Columns> </RootTable> </ISWebGrid:WebGrid>
</ISWebGrid:WebGrid>
In a WebGrid BatchUpdate scenario, the AddRow server side event will not be raised. All update, delete, and insert will need to be handled on the BatchUpdate server side event.
More detail regarding the BatchUpdate could be read on the WebGrid 7 Whitepaper in the section "Updating to Physical Database"
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