Posted
on Apr 22, 2009
(permalink)
Ok, I see.
However I am doing it in other way because RadGrid is included in a CommandItemTemplate and I have to always create RadToolBar and its items collection containing my controls. Nevermind, i exposed an extra Collection with my controls to find it using comandname.
The next problem might be connected with this fact and it is that RadToolbarToggleButton does not reflect click and does not change state. It has is always its defalut value.I resolved it in a toolbar click event, where I read previous ViewState toggled value (when is available), invert it and store in a ViewState. However I am not sure it is the best solution.
I think the problem is similar to: http://www.telerik.com/community/forums/aspnet/grid/100465-commanditemtemplate-viewstate-problem.aspx#393727
Jirka Nouza