Kendo Grid editable.template from directive problem

2 posts, 0 answers
  1. Billy
    Billy avatar
    2 posts
    Member since:
    Jun 2013

    Posted 04 May 2015 Link to this post

    Hi KendoUI Team,

     

    Good morning,

    I am trying to create a kendo grid (angularjs) and attached a personalized editor <div my-directive-editor></div> via grid options editable.template. On my directive editor (angularjs directive), i specify the structure of HTML from remote file and link it via templateUrl. Upon running the application, everything works great when i first click the Add New Entry but when i cancel the popup dialog and click again the Add New Entry an error will show $digest already in progress in angular format. I tried instead using templateUrl I used template and formatting the whole HTML structure as string and passed it there and it goes well without the error but as i can see, it is hard for the next developer to manage the very long HTML string so it would be great if i can separate it to remote file and just link it to templateUrl. I prepared a dojo to play with CLICK HERE the content of TestTemplate.html is the HTML string from template.

     

    Looking forward on your response.

     

    Thanks

     

  2. Kiril Nikolov
    Admin
    Kiril Nikolov avatar
    2564 posts

    Posted 08 May 2015 Link to this post

    Hello Virgilio,

    DId you check the following example that shows how to use custom directive as a Kendo UI Editor:

    http://docs.telerik.com/kendo-ui/web/grid/how-to/AngularJS/use-angularjs-popup-edit-template

    If this does not help, please provide a runnable sample where we can see the isolated issue and we will be happy to take a look.

    Regards,
    Kiril Nikolov
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
Back to Top