Hi!
I'm trying to disable sorting / paging / filtering on my grid according some condition on the page.
The code is the following
grid.AllowPaging = false;
grid.AllowSorting = false;
grid.AllowFilteringByColumn = false;
This code doesn't work as expected. If I disable everything, the rendered grid has everything enabled and it's disabled ON NEXT postback. So It works, but with delay. The same if I try to enable everything again.
I placed that code on different events on the page / grid life cycle with no luck. Same behavior. I want to disable those commands and immediately see them disabled, not on next postback.
Thanks!
I'm trying to disable sorting / paging / filtering on my grid according some condition on the page.
The code is the following
grid.AllowPaging = false;
grid.AllowSorting = false;
grid.AllowFilteringByColumn = false;
This code doesn't work as expected. If I disable everything, the rendered grid has everything enabled and it's disabled ON NEXT postback. So It works, but with delay. The same if I try to enable everything again.
I placed that code on different events on the page / grid life cycle with no luck. Same behavior. I want to disable those commands and immediately see them disabled, not on next postback.
Thanks!