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

[Solved] Disable Grid Select in Edit Mode

2 Answers 90 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Andrew
Top achievements
Rank 1
Andrew asked on 31 Oct 2012, 01:17 PM
Baiscly, I need to determine if the row is in edit mode, because when a row is selected in the grid, an ajax event is fired. When the row is in edit mode, this event throws a server error.

Thanks,
Andrew

2 Answers, 1 is accepted

Sort by
0
Petur Subev
Telerik team
answered on 05 Nov 2012, 02:30 PM
Hello Andrew,

You can check with jQuery whether the row has the k-grid-edit-row class.

var isInEditMode = $(persons).data().kendoGrid.select().is(".k-grid-edit-row")


Regards,
Petur Subev
the Telerik team
Check out the successor of Telerik MVC Extensions - Kendo UI for ASP.NET MVC - and deem it for new ASP.NET MVC development.
0
Andrew
Top achievements
Rank 1
answered on 05 Nov 2012, 03:27 PM
Thanks so much. This worked perfectly.  This is how I ended up using it.

if ($("#GirdName tr.t-grid-edit-row").length > 0) {    
    return;
}
Tags
Grid
Asked by
Andrew
Top achievements
Rank 1
Answers by
Petur Subev
Telerik team
Andrew
Top achievements
Rank 1
Share this question
or