Hello, I need a little assistance with the following issue. I have implemented a web menu as a sort of a drop-down extender, it works perfectly. What I need to do is change the text of the menu item programmatically, which I have been able to do using the following approach:
var menu = eo_GetObject("<%=menuphones.ClientID%>");
var topGroup = menu.getTopGroup();
var topMenu = topGroup.getItemByIndex(0);
var subGroup = topMenu.getSubGroup();
var selected_item = subGroup.getItemByIndex(idx);
selected_item.setText(value);
this works just fine. However, once the new text is set, it does not have the same alignment as the other menu entries that were set server-side. This menu uses the MSDN skin, which I really like. Somehow, by using the above code, it throws off the layout as illustrated. (I'm using code blocks so you can see the pre-formatted layout I'm trying to describe):
before:
Code: C#
Item 1 unchanged
Item 2 unchanged
Item 3 unchanged
Item 4 unchanged
Item 5 unchanged
after:
Code: C#
Item 1 unchanged
Item 2 unchanged
Item 3 changed
Item 4 unchanged
Item 5 unchanged
could you please explain how I retain the same formatting as previously? Since I'm using the MSDN skin I really don't know what the paddings are or any of that, and the objects seem simply too complex to wade through all the properties and set them all on the client side. What can be done?
thanks in advance :)
Hugh J. Hitchcock