﻿<?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 - WebGrid Charts show IDs instead of Labels</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-Charts-show-IDs-instead-of-Labels/</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>WebGrid Charts show IDs instead of Labels</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-Charts-show-IDs-instead-of-Labels/</link><pubDate>Wed, 09 Feb 2011 03:32:14 GMT</pubDate><dc:creator>yudi</dc:creator><category>charting valuelist</category><description>&lt;blockquote&gt;Is there a way to hide the "ProductID" column from charting, so that only the ProductName column is visible? I have a large number of lookup fields in many grids, so all those ID columns being visible would be undesirable.&lt;/blockquote&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;The main &lt;strong&gt;Pivot Charting’s User Interface&lt;/strong&gt; consists of two main parts: &lt;strong&gt;Ribbon UI&lt;/strong&gt; and &lt;strong&gt;Pivot Surface Area&lt;/strong&gt;. The &lt;strong&gt;Chart Field List&lt;/strong&gt; is one of the six essential user interface element in Pivot Surface Area. It represents the fields available for pivot charting. The available fields are WebGridColumn objects which &lt;strong&gt;ShowInChartFieldList&lt;/strong&gt; property is set to &lt;em&gt;True&lt;/em&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;In order to hide the “ProductID” column from charting, please try to set the value of &lt;strong&gt;ShowInChartFieldList&lt;/strong&gt; property in the “ProductID” column (WebGridColumn object) to &lt;em&gt;False&lt;/em&gt;.&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;...
&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: #a31515; font-size: 9pt"&gt;Columns&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;&amp;gt;
    &amp;lt;&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: #a31515; font-size: 9pt"&gt;ISWebGrid&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;:&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: #a31515; font-size: 9pt"&gt;WebGridColumn&lt;/span&gt; &lt;span style="font-family: 'consolas', 'courier new'; color: red; font-size: 9pt"&gt;Caption&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;="ProductID"&lt;/span&gt; &lt;span style="font-family: 'consolas', 'courier new'; color: red; font-size: 9pt"&gt;DataMember&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;="ProductID"&lt;/span&gt; &lt;span style="font-family: 'consolas', 'courier new'; color: red; font-size: 9pt"&gt;Name&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;="ProductID"&lt;/span&gt;
        &lt;span style="font-family: 'consolas', 'courier new'; color: red; font-size: 9pt"&gt;Width&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;="100px"&lt;/span&gt; &lt;span style="font-family: 'consolas', 'courier new'; color: red; font-size: 9pt"&gt;ShowInChartFieldList&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;="False"&amp;gt;
    &amp;lt;/&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: #a31515; font-size: 9pt"&gt;ISWebGrid&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;:&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: #a31515; font-size: 9pt"&gt;WebGridColumn&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;&amp;gt;
&amp;lt;/&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: #a31515; font-size: 9pt"&gt;Columns&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;&amp;gt;&lt;/span&gt;
...&lt;/pre&gt;&lt;blockquote&gt;Is there any plan to support ValueLists in charts in the future?&lt;/blockquote&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;I need to check the roadmap of WebGrid, especially the chart feature, to determine whether the feature will support ValueList or not.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;Hope this helps.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>WebGrid Charts show IDs instead of Labels</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-Charts-show-IDs-instead-of-Labels/</link><pubDate>Tue, 08 Feb 2011 09:24:54 GMT</pubDate><dc:creator>questica</dc:creator><category>charting valuelist</category><description>&lt;p&gt;Hi Yudi,&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Thanks for taking the time to put that together.  Just a couple more questions:&lt;/p&gt;
&lt;p&gt;Is there a way to hide the "ProductID" column from charting, so that only the ProductName column is visible?  I have a large number of lookup fields in many grids, so all those ID columns being visible would be undesirable.&lt;/p&gt;
&lt;p&gt;Is there any plan to support ValueLists in charts in the future?&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;</description></item><item><title>WebGrid Charts show IDs instead of Labels</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-Charts-show-IDs-instead-of-Labels/</link><pubDate>Mon, 07 Feb 2011 23:44:06 GMT</pubDate><dc:creator>yudi</dc:creator><category>charting valuelist</category><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui', 'sans-serif'; color: #1f497d; font-size: 9pt"&gt;The fields that shown in Chart Field List are the fields that defined in WebGridColumn object.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui', 'sans-serif'; color: #1f497d; font-size: 9pt"&gt;The sample below will help to describe the behavior.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui', 'sans-serif'; color: #1f497d; font-size: 9pt"&gt;Case #1:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui', 'sans-serif'; color: #1f497d; font-size: 9pt"&gt;WebGrid is bind to Products table of Northwind.mdb file through AccessDataSource. The select command of the AccessDataSource is defined as follow: "SELECT ProductID, ProductName, CategoryID FROM [Products]".&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui', 'sans-serif'; color: #1f497d; font-size: 9pt"&gt;The WebGridColumn is defined as follow.&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&amp;lt;Columns&amp;gt;
    &amp;lt;ISWebGrid:WebGridColumn Caption="ProductID" DataMember="ProductID" DataType="System.Int32"
        Name="ProductID" Width="100px"&amp;gt;
    &amp;lt;/ISWebGrid:WebGridColumn&amp;gt;
    &amp;lt;ISWebGrid:WebGridColumn Caption="ProductName" DataMember="ProductName" Name="ProductName"
        Width="100px"&amp;gt;
    &amp;lt;/ISWebGrid:WebGridColumn&amp;gt;
    &amp;lt;ISWebGrid:WebGridColumn Caption="CategoryID" DataMember="CategoryID" DataType="System.Int32"
        Name="CategoryID" Width="100px"&amp;gt;
        &amp;lt;ValueList DataSourceID="AccessDataSource2" DataTextField="CategoryName" DataValueField="CategoryID"&amp;gt;
        &amp;lt;/ValueList&amp;gt;
    &amp;lt;/ISWebGrid:WebGridColumn&amp;gt;
&amp;lt;/Columns&amp;gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui', 'sans-serif'; color: #1f497d; font-size: 9pt"&gt;When the view is switch to PivotChart view, the CategoryID will be shown as integer, instead of the text from the ValueList.&lt;/span&gt;&lt;/p&gt;&lt;img alt="Case #1" src="http://www.intersoftpt.com/Community/Attachments/2305/Case1.png" width="400" height="300" /&gt; 
&lt;p&gt;&lt;span style="font-family: 'segoe ui', 'sans-serif'; color: #1f497d; font-size: 9pt"&gt;Case #2:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui', 'sans-serif'; color: #1f497d; font-size: 9pt"&gt;WebGrid is bind to Northwind.mdb using following select command: “SELECT ProductID, ProductName, CategoryName FROM (Products INNER JOIN Categories ON Categories.CategoryID = Products.CategoryID) ORDER BY ProductID”.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui', 'sans-serif'; color: #1f497d; font-size: 9pt"&gt;The WebGridColumn is defined as follow.&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&amp;lt;Columns&amp;gt;
    &amp;lt;ISWebGrid:WebGridColumn Caption="ProductID" DataMember="ProductID" DataType="System.Int32"
        Name="ProductID" Width="100px"&amp;gt;
    &amp;lt;/ISWebGrid:WebGridColumn&amp;gt;
    &amp;lt;ISWebGrid:WebGridColumn Caption="ProductName" DataMember="ProductName" Name="ProductName"
        Width="100px"&amp;gt;
    &amp;lt;/ISWebGrid:WebGridColumn&amp;gt;
    &amp;lt;ISWebGrid:WebGridColumn Caption="CategoryName" DataMember="CategoryName"
        Name="CategoryName" Width="100px"&amp;gt;
    &amp;lt;/ISWebGrid:WebGridColumn&amp;gt;
&amp;lt;/Columns&amp;gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui', 'sans-serif'; color: #1f497d; font-size: 9pt"&gt;When the view is switch to PivotChart view, the CategoryName text will be shown in the Chart Field List.&lt;/span&gt;&lt;/p&gt;&lt;img alt="Case #2" src="http://www.intersoftpt.com/Community/Attachments/2305/Case2.png" width="400" height="300" /&gt; 
&lt;p&gt;&lt;span style="font-family: 'segoe ui', 'sans-serif'; color: #1f497d; font-size: 9pt"&gt;Hope this helps.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>WebGrid Charts show IDs instead of Labels</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-Charts-show-IDs-instead-of-Labels/</link><pubDate>Tue, 01 Feb 2011 15:17:45 GMT</pubDate><dc:creator>questica</dc:creator><category>charting valuelist</category><description>&lt;p&gt;Hi Yudi,&lt;/p&gt;
&lt;p&gt;I'm not totally clear on your suggestion.  Are you saying I should remove my lookup column and replace it with a text column?&lt;/p&gt;
&lt;p&gt;Are you saying that the charting feature can't work with value lists?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;James&lt;/p&gt;</description></item><item><title>WebGrid Charts show IDs instead of Labels</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-Charts-show-IDs-instead-of-Labels/</link><pubDate>Tue, 01 Feb 2011 03:13:59 GMT</pubDate><dc:creator>yudi</dc:creator><category>charting valuelist</category><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt;"&gt;It is the default behavior of WebGrid that when the grid’s view is set to pivot chart view then the ValueList column will displays their integer ID numbers instead of the text from the ValueList.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt;"&gt;When the PivotChartView is enabled, the column displayed at the chart UI will be the original column provided to WebGrid itself. In order to show the text instead of the integer ID numbers, please try to modify your query for example: the CategoryID column in Products table used to be filled by CategoryName using ValueList, please use the inner join query to Category table in order to get the text as the representation of the integer ID number.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt;"&gt;Hope this helps.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>WebGrid Charts show IDs instead of Labels</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-Charts-show-IDs-instead-of-Labels/</link><pubDate>Mon, 31 Jan 2011 12:57:46 GMT</pubDate><dc:creator>questica</dc:creator><category>charting valuelist</category><description>&lt;div&gt;When I use charting on the WebGrids in my application, any ValueList columns display their integer ID numbers instead of the text from the valuelist.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;The WebGrids in my application have columns and valuelists that are created and added dynamically at runtime (so they're not specified in the asp.net markup.) &amp;nbsp;

&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;&lt;ul&gt;
&lt;li&gt;In the "InitializeDataSource" event I provide a dataset with the grid's data and any lookups as tables.  I set the columns' ValueLists' data sources in that same event.&lt;/li&gt;
&lt;li&gt;I re-set the data source, DataTextField, and DataValueField in the PrepareDataBinding event.&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;This works great for all other grid functions - during display, edit, add, group, sort, and other operations, the lookups are always displayed correctly. &amp;nbsp;But once I generate a chart it just shows ID numbers.&lt;/div&gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;Is there a setting somwhere I can adjust to make these items appear?  Thanks for your help!&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;note: I'm using the latest webui studio 2010, just purchased last week.&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;</description></item></channel></rss>