We have been using RadToolbar for a very long time, but until recently we had never used the ItemTemplate functionality.
While we can display the templates correctly, we are encountering a significant issue when the page is posted back: the templates are not rendered after postback completes.
After a significant amount of troubleshooting, we have tracked the issue down to dynamically added buttons. We have static templates for most toolbars (defined in a skin), but there are several cases where we need to dynamically add buttons to every toolbar rather than adjusting all of the skins.
As soon as we insert a new toolbar item after the templated items, the templated items will no longer render after a postback (we have not tried inserting before because that is not something that we need to do.
We have tried removing and re-adding the dynamic toolbar items and simply ignoring them if they already exist on a postback, but in both cases, the templated items are not rendered.
I have a sample project that demonstrates the issue, but am not allowed to attach it to this thread.
While we can display the templates correctly, we are encountering a significant issue when the page is posted back: the templates are not rendered after postback completes.
After a significant amount of troubleshooting, we have tracked the issue down to dynamically added buttons. We have static templates for most toolbars (defined in a skin), but there are several cases where we need to dynamically add buttons to every toolbar rather than adjusting all of the skins.
As soon as we insert a new toolbar item after the templated items, the templated items will no longer render after a postback (we have not tried inserting before because that is not something that we need to do.
We have tried removing and re-adding the dynamic toolbar items and simply ignoring them if they already exist on a postback, but in both cases, the templated items are not rendered.
I have a sample project that demonstrates the issue, but am not allowed to attach it to this thread.