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

Edit values not Working (RadGrid size 64Cols, 64 Rows)

2 Answers 61 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Marcio Nascimento
Top achievements
Rank 1
Marcio Nascimento asked on 19 Nov 2009, 09:51 PM
Hi There,

I have a square matrix of size 64. When I try to edit values appears the error message attached. Is there a limitation of columns for editing in RadGrid ?
I'm using the new Q3 2009.

Thanks.

Marcio Nascimento

2 Answers, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 2
answered on 20 Nov 2009, 08:01 AM
Hello Marcio,

1.Do you bind your grid programatically in the Page_Load event? Then probably the reason for this error is that when you rebind the grid instance in Page_Load every time, the posted data and viewstate will be lost. As a result, the ID of the button will be different and when the event is validated there will be no matching unique id and so event validation will fail. Hence, an event is raised for a button that is no longer in the control tree. You can work around this by wrapping your code in the if !IsPostBack when binding in the page load event.

2.This error can also occur if you use a DataBind call after setting the DataSource for the grid. If this is your case, then I would suggest you to move the data-binding logic into the NeedDataSource event and use the "Advanced data-binding" technique as explained in the documentation here:
Advanced Data-binding (using NeedDataSource event)

Thanks
Princy.
0
Marcio Nascimento
Top achievements
Rank 1
answered on 21 Dec 2009, 02:33 AM
Hi Princy,

Thank you very much for your guiding.
My grid is working now.

Regards,

Marcio Nascimento
Tags
Ajax
Asked by
Marcio Nascimento
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Marcio Nascimento
Top achievements
Rank 1
Share this question
or