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

RibbonBarComboBox client side identification on OnClientComboBoxSelectedIndexChanged

1 Answer 18 Views
RibbonBar
This is a migrated thread and some comments may be shown as answers.
Abhilash
Top achievements
Rank 1
Abhilash asked on 19 Oct 2013, 05:53 AM
Hi all,
I have two RibbonBarComboBox in my RibbonBar. OnClientComboBoxSelectedIndexChanged event,I want to identify which combobox raised client side event. Please provide me a solution.

Thank you
Abhi

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 1
answered on 21 Oct 2013, 10:26 AM
Hi Abhilash,

Please have a look into the following code I tried to alert the ID of the RadComboBox which raised the OnClientComboBoxSelectedIndexChanged event.

JavaScript:
<script type="text/javascript">
    function OnClientComboBoxSelectedIndexChanged(sender, args) {
        alert("ComboBox ID: " + args.get_comboBox().get_element().id);
    }
</script>

Thanks,
Shinu.
Tags
RibbonBar
Asked by
Abhilash
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 1
Share this question
or