Hi,
I have custom user controls dynamically added to a RadListView.
The user controls themselves govern their sub controls user access (hidden, readonly, etc...)
Although X Controls are Created, X - Y controls remain after the ItemDataBound event is done firing based on the user's access. (where Y is between 0 and X).
The problem is, on Postback the User Controls lose their viewstate... why is this happening?
I can do Everything in the ItemCreated Event and it functions as intended; however, since that is fired on every single Postback it is doing unnecessary calculations going through and figuring out which fields are visible, readonly, and which controls are even part of the List,
Am I stuck doing everything in the ItemCreated Event?
Or is their a way to Just Do my Processing and DataBinding in the ItemDataBound Event? <--(This would work now, if the controls retained their viewstate on postback)
Thanks,
~Patrick
I have custom user controls dynamically added to a RadListView.
The user controls themselves govern their sub controls user access (hidden, readonly, etc...)
Although X Controls are Created, X - Y controls remain after the ItemDataBound event is done firing based on the user's access. (where Y is between 0 and X).
The problem is, on Postback the User Controls lose their viewstate... why is this happening?
I can do Everything in the ItemCreated Event and it functions as intended; however, since that is fired on every single Postback it is doing unnecessary calculations going through and figuring out which fields are visible, readonly, and which controls are even part of the List,
Am I stuck doing everything in the ItemCreated Event?
Or is their a way to Just Do my Processing and DataBinding in the ItemDataBound Event? <--(This would work now, if the controls retained their viewstate on postback)
Thanks,
~Patrick