Hi all,
I'm working on this grid and the issue here is I don't know how many columns I'll need at runtime. And each cell needs a textbox in it. So I found this page (http://www.telerik.com/help/aspnet-ajax/grdputallitemsineditmodenoadditionalrebind.html) and thus was able to get all of the items in the grid to show as textboxes with their right data in them. My plan was to put a save button on the form and when the user clicked save, to iterate through all the textboxes and save their values back to the database. However, when the user clicks the save button (just a linkbutton that has an OnClick="lbSave_Onclick" and so it should go to that sub when it's clicked) -- when I click the save button I get an error. I know it has something to do with all those grid cells being in edit mode because when I remove the databinding for the grid and then click the save button it goes straight to Save_Onclick routine.
Any ideas? The error message I get is :
Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: Specified argument was out of the range of valid values.
Parameter name: index
and it's in telerik's webresource_2.axd file
I'm working on this grid and the issue here is I don't know how many columns I'll need at runtime. And each cell needs a textbox in it. So I found this page (http://www.telerik.com/help/aspnet-ajax/grdputallitemsineditmodenoadditionalrebind.html) and thus was able to get all of the items in the grid to show as textboxes with their right data in them. My plan was to put a save button on the form and when the user clicked save, to iterate through all the textboxes and save their values back to the database. However, when the user clicks the save button (just a linkbutton that has an OnClick="lbSave_Onclick" and so it should go to that sub when it's clicked) -- when I click the save button I get an error. I know it has something to do with all those grid cells being in edit mode because when I remove the databinding for the grid and then click the save button it goes straight to Save_Onclick routine.
Any ideas? The error message I get is :
Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: Specified argument was out of the range of valid values.
Parameter name: index
and it's in telerik's webresource_2.axd file