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

Expand a RadToolBarDropDown

1 Answer 71 Views
ToolBar
This is a migrated thread and some comments may be shown as answers.
Juan Carlos Juarez
Top achievements
Rank 1
Juan Carlos Juarez asked on 12 May 2010, 09:21 PM
Hi, I have a page with a Radtoolbar, this toolbar have a RadToolBarDropDown, basically I need to expand the RadToolBarDropDown when the page is visited for first time, but I can't see some property or method on C# or Javascript to allow me to expand the menu. Is it possible?

Thank you.

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 13 May 2010, 01:03 PM
Hello Juan,

You could get reference to corresponding dropdown client item in RadToolBar and invoke the showDropDown() method to expand the RadToolBarDropDown.

JavaScript:
 
<script type="text/javascript"
    function pageLoad() { 
        var toolBar = $find("<%= RadToolBar1.ClientID %>"); 
        var item = toolBar.findItemByText("DropDownText"); 
        item.showDropDown();  
    } 
</script> 


Regards,
Princy.
Tags
ToolBar
Asked by
Juan Carlos Juarez
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or