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

java script function

1 Answer 31 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Sigma
Top achievements
Rank 1
Sigma asked on 17 Jul 2012, 12:59 PM
Hi,

how can i fire Javascript function when "Check All" in RadCombobox is checked.

Thanks

1 Answer, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 2
answered on 17 Jul 2012, 01:19 PM
Hi Sigma,

When user checks the "Check All" checkbox - all RadComboBox items are marked as checked and there is no specific event for that. Here is a work around to achieve your scenario.

JS:
<script type="text/javascript">
    function OnClientLoad(sender, args) {
        $telerik.$('.rcbCheckAllItemsCheckBox').change(function () {
            if (sender.get_text() == "All items checked") {
                alert(sender.get_text() + " and you can perform some custom action here");
            }
        });
    }
</script>

Regards,
Princy.
Tags
ComboBox
Asked by
Sigma
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or