I am attempting to add RadToolBarbuttons to a RadToolBar I have defined in my aspx file.
I am adding the elements successfully after creating them with the following server side code.
RadToolBarButton rtb = new RadToolBarButton();
rtb.Group = sGroup;
rtb.ImageUrl = sImageUrl;
rtb.Value = sValue;
rtb.ToolTip = sToolTip;
I add the rtb object, actually more than one, to my RadToolBar.
They all appear correctly in my UI.
However as soon as I mouse over them I get an exception.
I noticed the rendered html is different from an in-line RadToolBarButton.
The dynamically created buttons don't have _item["object Object"] or _itemTypeName["Telerik.Web.UI.RadToolBarButton"] attributes.
What am I missing?