.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Post New Web Links

Extreme UI: Line Charts with Data Templates

Posted By:      Posted Date: August 21, 2010    Points: 0   Category :ASP.Net

Charles Petzold continues his investigation into robust XAML coding made possible by Windows Presentation Foundation, this time tackling the complicated process of creating line charts.

Charles Petzold

MSDN Magazine January 2010

View Complete Post

More Related Resource Links

Dynamic Data Templates in GridView ASP.NET 3.5

At a high level, Dynamic Data Templates can be seen as a system to very quickly build up a User Interface linked with the relevant data model, immediately enabling you to perform CRUD operations (Create, Read, Update, Delete) on the database using the specified data source. They provide a powerful method for building up these kinds of applications, and I'm going to focus on an overview of what Dynamic Data Templates actually are, and a few ways of customizing them to suit industry needs.

Extreme ASP.NET: The Only Data-binding Control You'll Ever Need


Fritz Onion demonstrates how the ListView control in ASP.NET 3.5 makes data-binding tasks easier with support for styling with CSS, flexible pagination, and a full complement of sorting, inserting, deleting, and updating features.

Fritz Onion

MSDN Magazine March 2008

SQL data type for HL7 message retaining carriage return and new line characters

Hi, What data type should be used for a column storing text as descripted in title? Please advise. I crrently have the message stored as text, but if I copy the message from studio management to a notepad, it will be come one big line of text instead.  

how to write xslt in data view web part to display visifire charts

Hello All, I am writing xslt to display created by column in visifire charts. but it is not displaying chart. same code for displaying custom column is working fine but i dont know where i am going wrong in case of created by column. i put internal name also which is author for this column but no luck. below is the code i had used to display visifire chart. <xsl:text disable-output-escaping="yes">     <![CDATA[                     + ' <vc:DataPoint AxisXLabel="DTL3]]></xsl:text>   <xsl:text disable-output-escaping="yes"><![CDATA[" YValue="]]></xsl:text>     <xsl:value-of select="count(/dsQueryResponse/Rows/Row[normalize-space(@Author) = 'A'])"/>     <xsl:text disable-output-escaping="yes"><![CDATA[" LabelText="DTL3]]></xsl:text>     <xsl:text disable-output-escaping="yes"><![CDATA[" Exploded="False]]></xsl:text>     <xsl:text disable-output-escaping="yes"><![CDATA["/>']]></xsl:text> but the same code for different column name is working fine. please provide your inputs, where i am doing wr

limit data on charts



Is there a way we can dynamically limit the data in a chart?

I have a table and chart to be displayed in a report. The table is to display all the rows. But the chart should be plotted for 1 group alone. Is this possible?

e.g., the dataset will have data for all states. But the chart should be displayed only for 1 state. Can this be achieved?


data storage in sharepoint templates



I m using Helpdesk template of sharepoint. I hve added few custom fields when we create new service request.

Can anybody help me here to find out where the data is stored? If its table in sql, then which table.

Any help would be appreciated

how to show specific data label or legend in the line chart


I have a line chart with date (X axis) for average numbers. I wanted to show only one number for the month at the chart or legend area. But i can show or hide whole data labels. Is it possible to have an expression box in chart area?

Thanks in advance,


have a calculated value display multi line data??




Due to a bug found in using multi line text boxes that auto expand (after every 20th characters a line return is added) i have switch the control to be a calculated column. The value of the field is being looked up from a sharepoint list when the form is loaded (so need need to edit).

The issue i have is that the data i am loading has line breaks and the calculated control ignores them. Is this meant to happen or is there a way i can get the control to render multi line. The height of my control is already set to be automatic.


Thanks in advance




How to bind data from linq to html table without a single line of loop.




This is the above code i have worked using querysing and displaying the listitem with in  a simple html table. Here I am using foreach statement to bind items. How to bind the data to a simple html table using SharePoint linq without  a single line of loop.

using System;
using System.ComponentModel;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using Microsoft.SharePoint;
using Microsoft.SharePoint.WebControls;
using System.Linq;
using Microsoft.SharePoint.Linq;

namespace QuerystringProgramWithoutLoop.QuerystringProgramWithoutLoop
    public class QuerystringProgramWithoutLoop : WebPart
        string strTitle=string.Empty;
        string strStatus=string.Empty;
        protected override void Render(HtmlTextWriter writer)

Data label on bar charts



I have a bar chart where the data labels are centered? Is there a way to make all the data labels aligned at a specific location on all bars regardless of the number?

I know this contradicts of how statistical data is read, but it is a requirement that I have.

Thank you

Abdallah El-Chal, PMP, ITIL, MCTS

Msg 8152, Level 16, State 14, Procedure HAM_User_Productive_Time, Line 20 String or binary data woul


I have this procedure and table architecture - My ultimate moto is to check the User Start time and user end time and if user is logged in into 2 pcs at once then capturing the min start time and max end time . If user start time is greater than users previous end time then creating a new entry into table.



Procedure dbo.HAM_User_Productive_Time





@Min Datetime

Using User Controls as Page Templates in Dynamic Data


Hi All,

Recently, I saw an article at:



However, when I turn on the Select and Update Commands for the gridview, I get the following behaviours:

- Select: Columns disappear, leaving the template column

- Update: Data was not updated to the database.


Please kindly assist.

Thank you in advance.


Warmest Regards,


Data Points: Composing WPF DataGrid Column Templates for a Better User Experience


Julie Lerman struggled for days with some vexing user experience problems related to the WPF DataGrid, so she's saving you the bother by explaining how she solved them.

Julie Lerman

MSDN Magazine April 2011

Visual Studio Performance is terrible when editing data templates


I am building a WPF application that has multiple resource dictionaries and data templates.  I have my settings set to always open xaml in the source only view, and I have looked to see if I could find any other settings that would help my performance.

In visual studio 2010 the performance gets so bad I literally cannot work.  If I type one letter, the letter shows up and then visual studio thinks for several minutes before letting me type another letter and repeating the cycle.  It does seem that rebooting my computer helps, but it gets bad quickly enough that rebooting too often isn't exactly a good solution.

Does anyone have any information that can make visual studio usable for working with my xaml?

All that is gold does not glitter, Not all those who wander are lost

Change data type of library field from Single Line Text to currency


I have an InfoPath 2010 form that has a field listing the amount of currency on a meter. It is a Decimal form in Infopath but publishes to SharePoint as a Single Line of Text.  It will not let me modify the column in SharePoint and it will not let me select the allow edit from the Publishing Wizard.  I need the column as a currency so my Excel Queries work.



Reuse or combine data templates


In a TabControl it can be helpful to setup a control template. Unfortunately this makes all tabs use this template. It is easy enough to override the template completely on any specific tab BUT one cannot partially reuse the control template tab. Is there anyway to do this?

Basically I have several tabs with very similar layout and controls. I'd like to use this in a template then add the difference in the TabItem. I'd like to use the same controls that are common across all tabs(so any changes on one tab item will effect the other tab items(of course it would be nice to have the option to have them distinct too).


Anyways, I have a feeling that wpf can't do this from what I've read but I don't see any reason why we can't "extent" a data template or even just "overlay" two of them so they look to the user like one. Hopefully I'm wrong?



Binding WPF Controls to an Entity Data Model

In this interview, programming writer, McLean Schofield, demonstrates how to bind WPF controls to an entity data model, using Visual Studio 2010 Beta 1. You can also learn more in the topic: Walkthrough: Binding WPF Controls to an Entity Data Model.
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend