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

Grid Row selectable firing when in inline edit mode

2 Answers 32 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.
David
Top achievements
Rank 1
David asked on 26 Jul 2011, 05:38 AM
Hi All
I have a grid which has inline edit mode available, activated by the edit button.I also have the grid rows as selectable, and clicking on a grid row would pop up a window with a related grid.
The problem I encounter is when the grid is in edit mode. the grid row select is still firing when i click on any control( except for input text fields), such as a calendar selector, or any other part of the row.,
This presents a problem, as the selectable coulumn attributes are different to expected, and html is input into the popup window as input parameters, and garbage results.

I have since moved onto a button method of selecting the row for popup windows, but this will appear again.
So my questions are:

Should this happen?
and can I turn off the Selectability when in edit mode?

Regards
Dave

2 Answers, 1 is accepted

Sort by
0
Accepted
Georgi Krustev
Telerik team
answered on 26 Jul 2011, 07:47 AM
Hello David,

 
You can check whether the row is in edit mode or not. This code snippet shows how to understand whether the grid is in edit mode:

function rowSelected(e) {
        var isInEditMode = $(e.row).hasClass("t-grid-edit-row");
        //open related grid if it not in edit mode.
}

Greetings,
Georgi Krustev
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
David
Top achievements
Rank 1
answered on 26 Jul 2011, 11:23 AM
Thanks Georgi.

Hard to find stuff.

Tags
Grid
Asked by
David
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
David
Top achievements
Rank 1
Share this question
or