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 am trying to build a simple Chart for some sample data, but I am not able to see the "category field" in Internet Explorer 8 (as shown in attached file).
I have changed the the grid's height, but it doesn't work. I wonder if I had missed any step when I am building the grid programmatically, please kindly help.
Below is the code:
ASPX Page: <body style="overflow:scroll;"> <form id="form1" runat="server"> <div> <ISWebGrid:WebGrid ID="WebGrid1" runat="server" Height="450px" UseDefaultStyle="True" Width="760px" DefaultStyleMode="Elegant" AllowPivotCharting="True"> <LayoutSettings PagingMode="VirtualLoad"> </LayoutSettings> <ChartInteractiveUI> <ShowOrHideRibbon ShowFieldList="True" /> </ChartInteractiveUI> </ISWebGrid:WebGrid> </div> </form> </body>
VB Code: Public Class TestGrid Inherits System.Web.UI.Page Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load End Sub Private Function GenData() As DataTable Dim dt As New DataTable With dt.Columns .Add("Employee") .Add("OrderID", GetType(Integer)) .Add("Income", GetType(Integer)) .Add("Date", GetType(DateTime)) End With With dt.Rows .Add("A", 1, 200, Now.AddDays(1)) .Add("A", 2, 500, Now.AddDays(2)) .Add("A", 3, 200, Now.AddDays(3)) .Add("A", 4, 500, Now.AddDays(4)) .Add("B", 5, 300, Now.AddDays(5)) .Add("B", 6, 400, Now.AddDays(1)) .Add("C", 7, 500, Now.AddDays(2)) .Add("C", 8, 600, Now.AddDays(3)) End With Return dt End Function Private Sub WebGrid1_InitializeDataSource(ByVal sender As Object, ByVal e As ISNet.WebUI.WebGrid.DataSourceEventArgs) Handles WebGrid1.InitializeDataSource e.DataSource = GenData() End Sub Private Sub WebGrid1_PrepareDataBinding(ByVal sender As Object, ByVal e As ISNet.WebUI.WebGrid.DataSourceEventArgs) Handles WebGrid1.PrepareDataBinding Dim wg As ISNet.WebUI.WebGrid.WebGrid = sender If Not wg.IsFlyPostBack Then wg.RetrieveStructure() End If End Sub End Class
Best Regards,
Fung
Hello,
As far I know this layout issue is caused by XHTML doctype. Please ensure you used HTML doctype instead of XHTML doctype.
e.g
XHTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml">
change it into
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > <html>
Fyi, WebGrid Charting does not support XHTML doctype.
Regards,Handy
Handy,
It worked like a charm!~ Thanks :)
Regards,
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