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

Error when save button clicked

2 Answers 122 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Denise Duggan
Top achievements
Rank 1
Denise Duggan asked on 03 Feb 2010, 10:16 PM
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



2 Answers, 1 is accepted

Sort by
0
Tsvetoslav
Telerik team
answered on 05 Feb 2010, 08:47 AM
Hello Denise,

It is very difficult to say what the problem might be without any code snippets, however, I believe the following help article will prove helpful to you:

http://www.telerik.com/help/aspnet-ajax/grdperformingbatchupdates.html 

Regards,
Tsvetoslav
the Telerik team

Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Follow the status of features or bugs in PITS and vote for them to affect their priority.
0
Denise Duggan
Top achievements
Rank 1
answered on 05 Feb 2010, 02:30 PM
Yes, I understand it can be very difficult to help when I can't post code.  I just have to be careful about what code I post.  They're a bit "ticklish" about that around here.  Anyway, I'll look over the link you provided.  Just at first glance, it sounds like it will be very helpful.  I'll post again if I have further questions.  And thanks!
Tags
Grid
Asked by
Denise Duggan
Top achievements
Rank 1
Answers by
Tsvetoslav
Telerik team
Denise Duggan
Top achievements
Rank 1
Share this question
or