Hi,
I have a radgrid control (Point 1), inside a radajaxpanel (Point 2), inside a radajaxloading panel. The control is dynamically added to a raddock.
(I will be referring to the Points in the line above)
I found the issue when I added a radtoolbar and used this to handle editting the data inside the radgrid.
The grid is set to EditMode inPlace and AutoGenerateColumns. The data is coming from an ObjectDataSource. (I need to be able to edit columns, so have some columns set to readonly and then go through the rows and add the editIndexes).
When I first added the toolbar at Point 2, things seemed to sort of work. (By that, I mean that edit, update, cancel all worked, but other controls on the page were being affected). The main page area was being handled by ajax. I needed to just modify the module alone... so moved the toolbar to Point 1. This is where the problem began.
At Point 1 the grid will go into edit mode as expected. However, pressing update or cancel, I then get an error...
Error Message:
If I set the EnableEventValidation then the page works, however, this is a security risk and local policy disallows it.
I have been working with a more experienced telerik programmer to try and resolve the issue, with no success.
We have set AutoGenerateEditColumn to true and tried using the grids own edit, update, cancel. We get the same error.
Removing the toolbar altogether makes no difference.
This suggests that the radgrid has a problem when it is nested as described above.
Items to note:
Page load is hit on the usercontrol hosting the radgrid.
the RadGrid ColumnCreated event is also hit.
The toolbar onclick event was NOT hit.
Any ideas, even things to try would be very much appreciated.
Thanks.
David.
I have a radgrid control (Point 1), inside a radajaxpanel (Point 2), inside a radajaxloading panel. The control is dynamically added to a raddock.
(I will be referring to the Points in the line above)
I found the issue when I added a radtoolbar and used this to handle editting the data inside the radgrid.
The grid is set to EditMode inPlace and AutoGenerateColumns. The data is coming from an ObjectDataSource. (I need to be able to edit columns, so have some columns set to readonly and then go through the rows and add the editIndexes).
When I first added the toolbar at Point 2, things seemed to sort of work. (By that, I mean that edit, update, cancel all worked, but other controls on the page were being affected). The main page area was being handled by ajax. I needed to just modify the module alone... so moved the toolbar to Point 1. This is where the problem began.
At Point 1 the grid will go into edit mode as expected. However, pressing update or cancel, I then get an error...
Error Message:
Invalid postback or callback argument. Event validation is
enabled using
If I set the EnableEventValidation then the page works, however, this is a security risk and local policy disallows it.
I have been working with a more experienced telerik programmer to try and resolve the issue, with no success.
We have set AutoGenerateEditColumn to true and tried using the grids own edit, update, cancel. We get the same error.
Removing the toolbar altogether makes no difference.
This suggests that the radgrid has a problem when it is nested as described above.
Items to note:
Page load is hit on the usercontrol hosting the radgrid.
the RadGrid ColumnCreated event is also hit.
The toolbar onclick event was NOT hit.
Any ideas, even things to try would be very much appreciated.
Thanks.
David.