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

How to prevent detailCollapse event on kendo grid (jquery)?

1 Answer 291 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Lily
Top achievements
Rank 1
Lily asked on 15 Oct 2015, 06:17 PM

I created a grid with detail rows. Detais rows may have unsaved data. In that case I need to stop the collapse event. My code is not working:

var detailGrid = $("#grid-details").kendoGrid({
            detailTemplate: getDetailTemplate,
            detailInit:InitFunc,
            detailCollapse: function (e) {
                if (.....here I check for changes ) {
                e.preventDefault();
                return false;

                }
            },​

......});

I got to e.preventDefault(), but the row is collapsed anyway

1 Answer, 1 is accepted

Sort by
0
Boyan Dimitrov
Telerik team
answered on 16 Oct 2015, 11:26 AM

Hello,

 

This is a duplicated post. Please refer to the How to prevent detailCollapse event on kendo grid (jquery)? forum thread for the solution. 

 

Regards,
Boyan Dimitrov
Telerik
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 Feedback Portal and vote to affect the priority of the items
Tags
Grid
Asked by
Lily
Top achievements
Rank 1
Answers by
Boyan Dimitrov
Telerik team
Share this question
or