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

[Solved] Error when Grid is on Edit mode

1 Answer 74 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.
saroj
Top achievements
Rank 1
saroj asked on 17 Feb 2012, 04:07 AM
Hi Support,

In my row selection Grid i have added edit option. also the column cotains Dropdownlist and textbox in edit mode.

As it goes in edit mode and when i click to the selected row it popups with error message. So is there any way i can inactivate the

.Selectable()

property while i am in edit mode.
Below is the link for Grid that i am using.
http://demos.telerik.com/aspnet-mvc/grid/selectionclientside

Thanks
Saroj

1 Answer, 1 is accepted

Sort by
0
Petur Subev
Telerik team
answered on 21 Feb 2012, 03:34 PM
Hi Saroj,

You cannot disable the selecting but you can check whether the Grid is in edit mode, if so then it is safe to execute your selection logic.
e.g.
function onRowSelect(e) {
    if ($(e.row).is('.t-grid-edit-row')) {
         //your logic
    }      
}


Kind regards,
Petur Subev
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
Grid
Asked by
saroj
Top achievements
Rank 1
Answers by
Petur Subev
Telerik team
Share this question
or