Hi,
I am using the RadGrid to populate data. I am creating the columns dynamically using TemplateColumns. I am also adding GridEditCommandColumn and GridButtonColumn for Edit and delete of each row. I have disabled the viewstate for the grid since I will be creating the columns everytime and binding to grid. When I disable viewstate and click on edit or delete button, I get the following error. I know it is about viewstate being corrupted since I have disabled the viewstate. Any workaround for this?
Invalid postback or callback argument. Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.
Sridhar
I am using the RadGrid to populate data. I am creating the columns dynamically using TemplateColumns. I am also adding GridEditCommandColumn and GridButtonColumn for Edit and delete of each row. I have disabled the viewstate for the grid since I will be creating the columns everytime and binding to grid. When I disable viewstate and click on edit or delete button, I get the following error. I know it is about viewstate being corrupted since I have disabled the viewstate. Any workaround for this?
Invalid postback or callback argument. Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.
Sridhar