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

Event for ShowCheckAll button ?

1 Answer 48 Views
DropDownTree
This is a migrated thread and some comments may be shown as answers.
Zeev
Top achievements
Rank 1
Zeev asked on 15 Feb 2018, 03:45 PM

When the user click on the ShowCheckAll button either all entries aree selected or unselected. Looking at the documentation I cannot find any event that is fired for that. Even if there is no specific event for that, I would expect that ClientEntryAdded or ClientEntryRemoved for each of the entries would be fired but thatis not the case either. 

I need to handle this event as part of a logic that checks if and when the set of selected items is changed. Is there any other way to get notified via an event when ShowCheckAll is clicked ?

Thanks

Zeev

1 Answer, 1 is accepted

Sort by
0
Zeev
Top achievements
Rank 1
answered on 15 Feb 2018, 06:47 PM

A colleague pointed out to me a way (trick) to use to solve this problem which is to use JQuery click event handler for the CheckAll button by assigning it to its CSS class (rddtCheckAllCheckbox) . The function below is assigned to OnClientLoad and set it up. (I still think that telerik should add an event for this action)

function controlLoaded(sender,args){
    $('.rddtCheckAllCheckbox').click(function () {
        // do your work here
     });
}

 

 

Tags
DropDownTree
Asked by
Zeev
Top achievements
Rank 1
Answers by
Zeev
Top achievements
Rank 1
Share this question
or