How to prevent editor from closing - dynamically prevent

2 posts, 0 answers
  1. Adem
    Adem avatar
    13 posts
    Member since:
    Feb 2016

    Posted 12 Feb Link to this post

    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?

     

     

     

  2. Milena
    Admin
    Milena avatar
    224 posts

    Posted 16 Feb Link to this post

    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
  3. UI for ASP.NET MVC is VS 2017 Ready
Back to Top