This is a migrated thread and some comments may be shown as answers.

RadToolBarDropDown client-side problem

1 Answer 47 Views
ToolBar
This is a migrated thread and some comments may be shown as answers.
Man
Top achievements
Rank 1
Man asked on 14 Nov 2008, 05:59 PM

Hi,

When I add a button to a RadToolBarDropDown object on the client-side the dropdown menu never resizes. As a result, if the button text is too long then part of it get chopped off. Anyone know how I can get dropdown menu to resize after a button has been added on the client-side?

 

Thanks

Man Cheong Liu

 

1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 17 Nov 2008, 12:42 PM
Hello Man,

Please use the following javascript code to resize the dropdown width:

dropDownItem.get_dropDownElement().parentNode.style.width = "120px"

I hope this helps.

All the best,
Yana
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
ToolBar
Asked by
Man
Top achievements
Rank 1
Answers by
Yana
Telerik team
Share this question
or