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

Ajax not working when a grid is added

2 Answers 125 Views
Window
This is a migrated thread and some comments may be shown as answers.
Paul
Top achievements
Rank 1
Paul asked on 07 Sep 2009, 04:34 PM
Hi,

I am trying to implement the example of inserting into a grid using a radwindow but im having problems calling the ajax request on the ajax manager.  It can find the ajax manager using the javascript (used an alert to confirm the variable) but when the request method is called I get the following error:

Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index





to try and find my actual issue I took all the elements off the page and put a breakpoint on the ajax request (server side) even and a button to all it.  With no controls on the page it hit the breakpoint, with the radwindowmanager on it still hit the breakpoint but when the radgrid was added I got the same error and the breakpoint was not hit. so tried on a new page with new controls and still get the same error

Thanks

2 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 08 Sep 2009, 11:03 AM
Hello Paul,

To be able to help we need to have a better view over your exact setup and the logic that you are using. Please open a support ticket and send us a sample project that shows your implementation and the error itself - we will check it right away.


Best wishes,
Georgi Tunev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Paul
Top achievements
Rank 1
answered on 08 Sep 2009, 11:10 AM
I have just solved it,

I changed the grid from being created in the code behine to creating it in the HTML I cannot see any difference in the definition of the grid (as I just copied the code used to create it in the code behine) but it now works

sorry to waste anyones time
Tags
Window
Asked by
Paul
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Paul
Top achievements
Rank 1
Share this question
or