11/8/2010 2:40:49 PM
Title:
DataGrid Drill Down
Dear All,
I have a data grid and pie chart , both displaying the car models data . Data grid is assigned to Pie chart data provider . Pie chart has drill down events and it drill downs to 3 levels in the input XML provided .
On the datagrid I display the data and every row will have "Drill down" link button . If I click on the drill down , it should drill down to the next level and should display the list . Just like pie chart . Below is the code for pie chart . Could somebody help me same functionality for Datagrid ( But again not double clicking on the row , but click on the drill down button a row )
private function pieChart_itemClick(evt:ChartItemEvent):void {
var item:PieSeriesItem = evt.hitData.chartItem as PieSeriesItem;
var xml:XML=evt.hitData.item as XML;
var nodeName:String=xml.name().toString();
if(nodeName=='Model'){
rootNode=XML(evt.hitData.chartItem.item);
graphPie.dataProvider=xml.Make;
..........................................
if(nodeName=='Make'){
rootNode=XML(evt.hitData.chartItem.item);
graphPie.dataProvider=xml.Year;
..........................................
Thanks for your help
11/9/2010 4:29:38 AM
you should use advanced datagrid for that