I am loading a Toolbar via XML and it loads properly.
However, when I do an getItemText(id) call via JavaScript, it returns a zero length string. If I use the addButton() method and call the getItemText(id) property, I get the test back.
Here is the XML:
<?xml version="1.0"?>
Any suggestions?
According your xml - there are no items (type=“button”) with text.
You xml contain 2 buttons:
and they are without “text” tag.
Try this:
fix xml to this view:
<item type=“button” id=“fc_print” img=“print.gif” imgdis=“print_dis.gif” title=“Print” text=“Print”/>
and then:
alert(dhxToolbar.getItemText(“fc_print”));