Dependent grid problem
-
I am new to .net developement..stuck with an issue.. I have 2 grids in a page...Maingrid( key:- EmpID) and a Childgrid (key:- EmpID,PeriodID) For Each Maingrid details there will be one or more corresponding Childgrid details. When user selects a Maingrid detail record (ie, when selecting a row), corresponding Childgrid detail will be loaded in the Childgrid …(same as dependent grid.) How to load the 2nd grid according to the 1st grid row selection?
protected void rdg_Maingrid_ItemCommand1(object source, GridCommandEventArgs e)
{ if (e.CommandName.ToString().ToUpper() == "RowClick") { //code for retrieving corresponding data in the budget grid.. } }
and I have delete ,edit options in both the grids. Anyhelp will be appreciated.
-
I am new to .net developement..stuck with an issue.. I have 2 grids in a page...Maingrid( key:- EmpID) and a Childgrid (key:- EmpID,PeriodID) For Each Maingrid details there will be one or more corresponding Childgrid details. When user selects a Maingrid detail record (ie, when selecting a row), corresponding Childgrid detail will be loaded in the Childgrid …(same as dependent grid.) How to load the 2nd grid according to the 1st grid row selection?
protected void rdg_Maingrid_ItemCommand1(object source, GridCommandEventArgs e)
{ if (e.CommandName.ToString().ToUpper() == "RowClick") { //code for retrieving corresponding data in the budget grid.. } }
and I have delete ,edit options in both the grids. Anyhelp will be appreciated.
-
Have a look on Link it'll help you.
Cheers!! Brij Check my latest Article :URL Routing with ASP.NET 4.0
-
In this example it shows gris in a row..but in my scenario, two different grids are there.I dont know how to bind data in to the 2nd grid according to the row selection of the first grid.. I am using telerik rad grid.
I dont have much idea about telerik grid. But in rdg_Maingrid_ItemCommand1 event you can find the row of main grid and accordingly you can fetch the record and bind it in child grid.
Cheers!! Brij Check my latest Article :URL Routing with ASP.NET 4.0