when ever check checkbox that data I want bind to another grid, have code in ultrawebgrid but I need to implement same functionality in webdatagrid.
check bellow ultrawebdatagrid code.please give me correct solution
var currentSettings = grid.AllowAddNew; //here I need webdatagrid
grid.AllowAddNew = 1;
try {
// var newRow = igtbl_addNew(grid, 0, true, false);
var newRow = grid;
var newRowIndex = "ctl00xCPSContentHolderxSelectedHospitalList_r_";
newRow.getCell(O).setValue(labelHospitalName);
newRow.getCell(1).setValue(labelCity + ", " + labelState);
newRow.getCell(2).setValue(labelCountry);
}
Hello Ajay,
In the WebDataGrid row adding is handled through the RowAdding behavior:
http://help.infragistics.com/Doc/ASPNET/Current/CLR4.0/?page=WebDataGrid_Row_Adding.html
If you haven't seen it yet, I also recommend checking out the WebDataGrid cheat sheet which provides examples of how to implement some of the more commonly used functionality of the control:
http://help.infragistics.com/Doc/ASPNET/Current/CLR4.0/?page=WebDataGrid_Cheat_Sheet.html