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

[Solved] Overriding the default javascript events

1 Answer 17 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Doug
Top achievements
Rank 1
Doug asked on 28 Sep 2010, 12:01 AM
In the grid, is it possible to override the default javascript behavior for OnRowSelect and have it toggle the OnDetailViewExpand and OnDetailViewCollapse methods?  I'd love to expand and collapse the row detail by clicking the row rather than the first column.

1 Answer, 1 is accepted

Sort by
0
Accepted
Atanas Korchev
Telerik team
answered on 28 Sep 2010, 08:47 AM
Hi Doug,

 You can try this code:

    function onSelect(e) {
        $('> .t-hierarchy-cell > .t-icon', e.row).click();
    }

where onSelect is the name of the handler of the OnRowSelect client event.

Regards,
Atanas Korchev
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
Tags
General Discussions
Asked by
Doug
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Share this question
or