This is a migrated thread and some comments may be shown as answers.
Feature Request: OnChecked Event
3 Answers 36 Views
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Kevin Watkins
Top achievements
Rank 1
Kevin Watkins asked on 11 Apr 2010, 05:06 PM
Hi,

It would be nice if you could add an OnChecked event that is fired when a checkbox is checked/unchecked when using ShowCheckBox(true). I can workaround it by using $("div.mytree :checkbox").live("click", MyHandler); in client script so it's not a problem, just be a nice to have.

Cheers,

Kev

3 Answers, 1 is accepted

Sort by
0
Kevin Watkins
Top achievements
Rank 1
answered on 12 Apr 2010, 10:50 AM
Hi,

Related to this it would be nice to have a check(bool) method that (un)checks the checkbox for a given node. When checking the boxes myself in JavaScript I was getting issues with wrong values being posted back. I noticed you have some code wired up via a live event to click on the checkboxes, presumably my code wasn't firing that. A check() method could call that code if necessary too.

Cheers,

Kev
0
Accepted
Alex Gyoshev
Telerik team
answered on 14 Apr 2010, 02:24 PM
Hello Kevin,

I just implemented both the OnChecked client-side event (cancellable) and the nodeCheck function. They will be included in the service pack that will be released by the end of the week.

The nodeCheck function can be used as follows:
    // will check all TreeView items
    $('#TreeView').data('tTreeView').nodeCheck('.t-item', true);
    // will uncheck the given item

    $('#TreeView').data('tTreeView').nodeCheck(item, false);

All the best,
Alex Gyoshev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Kevin Watkins
Top achievements
Rank 1
answered on 14 Apr 2010, 02:58 PM
Nice one Alex, thanks!

Kev
Tags
TreeView
Asked by
Kevin Watkins
Top achievements
Rank 1
Answers by
Kevin Watkins
Top achievements
Rank 1
Alex Gyoshev
Telerik team
Share this question
or