Hi,
I am creating controls dynamically in item created event for RadGrid.
If I set EnableViewState=true for RadGrid, I get Failed to load view state error as the control tree does not match.
But If I Set EnableViewState=false, everything works fine but the filtering does not work correctly for the other columns.
For example, i have a dropdown filter which works fine when i select some item but when i select empty item, it does not filter( does not get all the items back).
I tested by putting EnableViewState=true and commented code which creates controls dynamically..then the filtering works fine..
I am just wondering how i can get both dynamic control creation and filtering to work.
Could you please give your suggestions?
Thanks...
I am creating controls dynamically in item created event for RadGrid.
If I set EnableViewState=true for RadGrid, I get Failed to load view state error as the control tree does not match.
But If I Set EnableViewState=false, everything works fine but the filtering does not work correctly for the other columns.
For example, i have a dropdown filter which works fine when i select some item but when i select empty item, it does not filter( does not get all the items back).
I tested by putting EnableViewState=true and commented code which creates controls dynamically..then the filtering works fine..
I am just wondering how i can get both dynamic control creation and filtering to work.
Could you please give your suggestions?
Thanks...