This is a migrated thread and some comments may be shown as answers.
RadCombo Expand/Collapse Programtically
2 Answers 22 Views
This is a migrated thread and some comments may be shown as answers.
Tracy
Top achievements
Rank 1
Tracy asked on 15 Oct 2012, 06:01 PM
Hi,

Is there a way to expand and collapse the RadCombo programatically.  I want to be able to expand/collapse the control on a button click.

Thank you for your assistance.
Tracy

2 Answers, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 1
answered on 16 Oct 2012, 04:35 AM
Hi Tracy,

I suppose you want to show and hide the dropdown of a RadComboBox on click of a Button. Following is the sample code that I tried to achieve your scenario.

JS:
<script type="text/javascript">
    function OnClientClick() {
        debugger;
        var combo = $find("<%= RadComboBox1.ClientID %>");
        if (combo.get_dropDownVisible()) {
            combo.hideDropDown();
        }
        else {
            combo.showDropDown();
        }
    }
</script>

Hope this helps.

Regards,
Princy.
0
Tracy
Top achievements
Rank 1
answered on 16 Oct 2012, 12:58 PM
Thank you Princy that was exactly what I was looking for.
Tracy
Asked by
Tracy
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 1
Tracy
Top achievements
Rank 1
Share this question
or