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

Hierarchy grid on Submit click

2 Answers 38 Views
Grid
This is a migrated thread and some comments may be shown as answers.
cimscims
Top achievements
Rank 1
cimscims asked on 16 Jul 2010, 02:03 PM
I am using the Hierarchy grid. I could populate the grid using RadGrid1_NeedDataSource, RadGrid1_DetailTableDataBind and RadGrid1_PreRender events by default when the page loads.. but i want these events to fire when i click the Submit button.

Could someone help me..Pls let me know if you need more details

2 Answers, 1 is accepted

Sort by
0
Accepted
Maria Ilieva
Telerik team
answered on 21 Jul 2010, 11:01 AM
Hello cimscims,

In this case I would sugget you to set the visibility of the RadGrid in the button click event like this:
protected void Button1_Click(object sender, EventArgs e)  
   {  
       RadGrid1.Visible = true;  
       RadGrid1.Rebind();  
   }  
   protected void RadGrid1_NeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e)  
   {  
       //Set the DataSource for radgrid 
   }  


Best wishes,
Maria Ilieva
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
cimscims
Top achievements
Rank 1
answered on 21 Jul 2010, 01:21 PM
Thanks Maria. It worked.
Tags
Grid
Asked by
cimscims
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
cimscims
Top achievements
Rank 1
Share this question
or