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
hi,
i have a webgrid which developed from the backend code. In which i have enabled the pivot charting. here my problem is i am not able to select the sum or average etc of the droped field.
there is only one enabled , which is count. The rest all appear as a disabled(grayed in color).
here i am attaching the code that i have used to generate webgrid and pivot charting
protected void WebGrid1_InitializeLayout(object sender, ISNet.WebUI.WebGrid.LayoutEventArgs e) { e.Layout.AllowGrouping = ISNet.WebUI.WebGrid.Grouping.Yes; e.Layout.AllowFilter = ISNet.WebUI.WebGrid.Filter.Yes; e.Layout.AllowExport = ISNet.WebUI.WebGrid.Export.Yes; e.Layout.AllowSorting = ISNet.WebUI.WebGrid.Sorting.Yes; e.Layout.PagingMode = ISNet.WebUI.WebGrid.PagingMode.VirtualLoad; ((ISNet.WebUI.WebGrid.WebGrid)sender).AllowPivotCharting = true; }
Please let me know the reason.
thanks and regards
ca
The options for data area field is determine by the DataType of the field. If the data type is string the available option will be Count. Numeric data type will have more option such as Sum, Max, Min, and Average.
The sample I use to test the scenario is attached. The northwind.mdb is already supplied in the WebGrid sample. In the sample you will see that ProductName, string type field, will only have Count option available, while ProductID or UnitPrice, numeric type field, will have more option available.
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