java script function

2 posts, 1 answers
  1. Sigma
    Sigma avatar
    87 posts
    Member since:
    Apr 2012

    Posted 17 Jul 2012 Link to this post

    Hi,

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

    Thanks
  2. Answer
    Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 17 Jul 2012 Link to this post

    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.
Back to Top