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

How to prevent editor from closing - dynamically prevent

1 Answer 58 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Adem
Top achievements
Rank 1
Adem asked on 12 Feb 2016, 11:40 AM

I'm using telerik grid popup edit mode. when error occurs I want to prevent closing editor. 

Here is the code; it works fine

var grid = $("#popupGrid").data("kendoGrid");

But I want to call dynamically find the grid.

I found the below the code. But It's not working:

<p>var gridId = e.sender.options.table.parent('div')[0].id;<br>            var grid = $("#" + gridId).data("kendoGrid");</p><p></p>

e.sender.options.table =null.

how can I do this?

 

 

 

1 Answer, 1 is accepted

Sort by
0
Milena
Telerik team
answered on 16 Feb 2016, 09:06 AM
Hello,

Based on the provided information, it is hard to diagnose the problem. However, you can navigate to this forum thread , where a similar issue is discussed and verify if the solution provided there can help to resolve the problem.

In case, this solution does not work for your scenario, please provide more information about the project. You can also isolate it in a small runnable project.

Regards,
Milena
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
Adem
Top achievements
Rank 1
Answers by
Milena
Telerik team
Share this question
or