When we click a bar on the treemap , i want to write some code in the click event of the chart and
show a detailed pane where i can show some additional information. Iam using the
e.RowLabel property to search the datatable to get the particular elemnt row.
But in my scenario the names are not unique with in different levels. How will i get the particular row when names are not unique.
Regards
Shiju
HI ,
Here are some code snippets:
private void ultraChart1_ChartDataClicked(object sender, Infragistics.UltraChart.Shared.Events.ChartDataEventArgs e) {
Boolean b = findTableDatax(e.RowLabel, e.DataValue);
}
public Boolean findTableDatax(string name, double datavalue) { string[] str = name.Split(new char[] { '\n' }); string sname = str[0]; if (table != null) { foreach (DataRow dr in table.Rows) { if (((string)dr["Name"] == sname) && ((double)dr["Sales"] == datavalue)) {
// return dr[1].ToString(); return true;
} } // return string.Empty; return false; } else return false;
Thanks Matt
We are using infragistics Tree map chart in one of our pages. We have the requirement to click a particular bar in the Tree map and show some additional information of the selected bar. For this we need to first identify data row of the data table that particular bar is associated to and get the additional details.
Please give some code snippets of UltraChart1_ChartDataClicked depicting how to make use of the properties of ChartDataEventArgs e.RowLabel, e.DataColumn and e.DataRow to get the corresponding data row. Also please note the e.RowLabel is not unique in our data table. We can have two or more elements with same name in different hierarchy levels of tree map.
HI,
Put the WebTree inside our WebAsyncRefreshPanel.
Here is a help link
http://help.infragistics.com/Help/NetAdvantage/NET/2008.3/CLR2.0/html/WebAsyncRefreshPanel.html
Thanks for the Reply. it helped very much. I need another help from you.
Ii want to avoid the post back when i click or double click the Treemap bars.
Instaed i would like to do some ajax call to redraw the Treemap.
Please guide me with code snippets to do the same.
Regards,Shiju
http://community.infragistics.com/forums/p/23400/85653.aspx#85653