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

Kendo Grid editable.template from directive problem

1 Answer 93 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Billy
Top achievements
Rank 1
Billy asked on 05 May 2015, 04:30 AM

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

 

1 Answer, 1 is accepted

Sort by
0
Kiril Nikolov
Telerik team
answered on 08 May 2015, 07:20 AM

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!
 
Tags
General Discussions
Asked by
Billy
Top achievements
Rank 1
Answers by
Kiril Nikolov
Telerik team
Share this question
or