Hi All,
I am using Rad grid in order to bind the gird.
I have one Main Grid. Inside the MainGrid there two Tab Controls. One of the TabControl is having Grid and the Other TabControl is having Charts.
The first MainGrid iam binding it in the page_load. And the second Grid which is inisde the tab, iam binding it in the MainGrid_ItemCreated Event. It works fine like this, but the problem is the Item_created gets called for event. Because of this it the grid is getting binded many times.
Can any one pls let me know what is the best way to bind the grid inside the tab. If i wont use Item_created event, then the tab is not displaying the Grid.
Pls give me suggestions..
Its very very urgent
Regards,
asra
I am using Rad grid in order to bind the gird.
I have one Main Grid. Inside the MainGrid there two Tab Controls. One of the TabControl is having Grid and the Other TabControl is having Charts.
The first MainGrid iam binding it in the page_load. And the second Grid which is inisde the tab, iam binding it in the MainGrid_ItemCreated Event. It works fine like this, but the problem is the Item_created gets called for event. Because of this it the grid is getting binded many times.
Can any one pls let me know what is the best way to bind the grid inside the tab. If i wont use Item_created event, then the tab is not displaying the Grid.
Pls give me suggestions..
Its very very urgent
Regards,
asra
| protected void CategoryGrid_ItemCreated(object sender, GridItemEventArgs e) |
| { |
| if (e.Item is GridNestedViewItem) |
| { |
| //Find the RadGrid |
| radProdGrid = e.Item.FindControl("radProdutsGrid") as RadGrid; |
| // Find the chart |
| rcProduct = e.Item.FindControl("RadChart2") as RadChart; |
| radProdGrid.DataSource = productInfoView; |
| } |
| } |