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
We have recently upgraded from WebGrid v4 to WebGrid v9. We have several grid pages that provide the initial structure/layout on the aspx side:
<iswebgrid:WebGrid ID="WebGrid1" runat="server" OnInitializeDataSource="WebGrid1_InitializeDataSource" OnInitializeLayout="WebGrid1_InitializeLayout" OnInitializePostBack="WebGrid1_InitializePostBack" OnPrepareDataBinding="WebGrid1_PrepareDataBinding"> <RootTable DataKeyField="ID" Caption="Main"> <Columns> <iswebgrid:WebGridColumn DataMember="ID" Visible="false" ShowInSelectColumns="No" /> <iswebgrid:WebGridColumn DataMember="Name" Name="Name" Caption="Name" Width="120px" /> <iswebgrid:WebGridColumn DataMember="Description" Name="Description" Caption="Description" Width="150px" /> <iswebgrid:WebGridColumn DataMember="CreatedBy" Caption="Created By" Visible="false" Width="125px" /> <iswebgrid:WebGridColumn DataMember="CreatedDate" Caption="Created Date" DataType="System.DateTime" Visible="false" DataFormatString="MM/dd/yyyy hh:mm tt" Width="120px" /> <iswebgrid:WebGridColumn DataMember="ModifiedBy" Caption="Modified By" Visible="true" Width="125px" /> <iswebgrid:WebGridColumn DataMember="ModifiedDate" Caption="Modified Date" DataType="System.DateTime" Visible="true" DataFormatString="MM/dd/yyyy hh:mm tt" Width="120px" /> </Columns> </RootTable> <LayoutSettings> <ClientSideEvents OnRowContextMenu="HandleRowContextMenu" OnCellDblClick="HandleDoubleClick" OnColumnMove="columnMove" OnColumnResize="columnResize" /> </LayoutSettings> </iswebgrid:WebGrid>
If the user does not have a Saved view (ie: they are looking at this page for the first time, or have not customized the grid in any way, the above works just fine). There are client events fired up for when columns are resized, moved, removed, added. Once these events hit, the layout XML is saved to the database and loaded when the user navigates to the page. The server side events to save/load the custom views are:
protected void WebGrid1_InitializeLayout(object sender, ISNet.WebUI.WebGrid.LayoutEventArgs e) { oGridFunctions.LoadGridView(WebGrid1); } protected void WebGrid1_InitializePostBack(object sender, PostbackEventArgs e) { e.CustomActionData = oGridFunctions.SaveGridView(e.Action, WebGrid1, e.XmlRequest); }
The Issue:
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