﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - WebGrid Enterprise - Unable to see Category field in WebGrid's Chart</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Unable-to-see-Category-field-in-WebGrids-Chart/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>Unable to see Category field in WebGrid's Chart</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Unable-to-see-Category-field-in-WebGrids-Chart/</link><pubDate>Thu, 30 Dec 2010 02:02:37 GMT</pubDate><dc:creator>interfung</dc:creator><category>WebGrid</category><category>Chart</category><category>Pivot</category><description>&lt;p&gt;Handy,&lt;/p&gt;
&lt;p&gt;  It worked like a charm!~ Thanks :)&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Fung&lt;/p&gt;</description></item><item><title>Unable to see Category field in WebGrid's Chart</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Unable-to-see-Category-field-in-WebGrids-Chart/</link><pubDate>Wed, 29 Dec 2010 01:37:30 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><category>WebGrid</category><category>Chart</category><category>Pivot</category><description>&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;As far I know this layout issue is caused by XHTML doctype. Please ensure you used HTML doctype instead of XHTML doctype.&lt;/p&gt;
&lt;p&gt;e.g&lt;/p&gt;
&lt;p&gt;XHTML&lt;/p&gt;
&lt;p /&gt;&lt;pre&gt;&amp;lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&amp;gt;
&amp;lt;html xmlns="http://www.w3.org/1999/xhtml"&amp;gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-size: 10px; "&gt;change it into&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p /&gt;
&lt;p /&gt;&lt;pre&gt;&amp;lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" &amp;gt;
&amp;lt;html&amp;gt;&lt;/pre&gt;
&lt;p&gt;Fyi, WebGrid Charting does not support XHTML doctype. &lt;/p&gt;
&lt;p /&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>Unable to see Category field in WebGrid's Chart</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Unable-to-see-Category-field-in-WebGrids-Chart/</link><pubDate>Tue, 28 Dec 2010 04:15:39 GMT</pubDate><dc:creator>interfung</dc:creator><category>WebGrid</category><category>Chart</category><category>Pivot</category><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;  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). &lt;/p&gt;
&lt;p&gt;  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.&lt;/p&gt;
&lt;p&gt;Below is the code: &lt;/p&gt;&lt;pre&gt;ASPX Page:

&amp;lt;body style="overflow:scroll;"&amp;gt;
    &amp;lt;form id="form1" runat="server"&amp;gt;
    &amp;lt;div&amp;gt;
        &amp;lt;ISWebGrid:WebGrid ID="WebGrid1" runat="server" Height="450px" UseDefaultStyle="True"
		    Width="760px" DefaultStyleMode="Elegant" AllowPivotCharting="True"&amp;gt;		
	        &amp;lt;LayoutSettings PagingMode="VirtualLoad"&amp;gt;
	        &amp;lt;/LayoutSettings&amp;gt;
	        &amp;lt;ChartInteractiveUI&amp;gt;
		        &amp;lt;ShowOrHideRibbon ShowFieldList="True" /&amp;gt;
	        &amp;lt;/ChartInteractiveUI&amp;gt;
        &amp;lt;/ISWebGrid:WebGrid&amp;gt;
    &amp;lt;/div&amp;gt;
    &amp;lt;/form&amp;gt;
&amp;lt;/body&amp;gt;&lt;/pre&gt;&lt;pre&gt;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&lt;/pre&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Fung&lt;/p&gt;</description></item></channel></rss>