This is a migrated thread and some comments may be shown as answers.

Why chart is not change when Grid SelectedIndexChanged event??

2 Answers 24 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Tester
Top achievements
Rank 1
Tester asked on 22 Sep 2011, 07:11 AM
protected void RadGrid1_SelectedIndexChanged(object sender, EventArgs e)
    {
        MakeChart(int.Parse(RadGrid1.SelectedIndexes[RadGrid1.SelectedIndexes.Count-1]));
    }
  
private void MakeChart(int selind)
    
        DataTable chartdt = new DataTable();
        //Make Chart DataSource Here..
        RadChart1.DataSource = chartdt;
        RadChart1.DataBind();        
    }

It is simple...
One Grid , One Chart in page.
When User Click Grid's Row...
Chart does not change!!!!
Give me some help.....!!!!

2 Answers, 1 is accepted

Sort by
0
Jayesh Goyani
Top achievements
Rank 2
answered on 22 Sep 2011, 09:25 AM
Hello Tester,

if you used ajax then add below code.
  <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">    
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="RadGrid1">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RadChart1" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager>


let me know if any concern.
if its not working then provide your html/aspx page code.

Thanks,
Jayesh Goyani
0
Tester
Top achievements
Rank 1
answered on 22 Sep 2011, 09:54 AM
It works...!!!!

Thank you for your help.
Tags
Grid
Asked by
Tester
Top achievements
Rank 1
Answers by
Jayesh Goyani
Top achievements
Rank 2
Tester
Top achievements
Rank 1
Share this question
or