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

Error with ng-dblclick and row template on grid

1 Answer 58 Views
Integration with other JS libraries
This is a migrated thread and some comments may be shown as answers.
Idan
Top achievements
Rank 1
Idan asked on 02 Feb 2015, 09:14 AM
Hi,

I'm using kendo ui with angularjs,
I have a grid with row template.
I added ng-dblclick event on the row (or on the grid) in order to edit the row on double click.
on the first row I double clicked everythiong works fine, but when I click on another row I get an error which I didn't find a way to solve.

I created a similar plunker to demonstrate the problem:

http://plnkr.co/edit/w2KyuC9zl1832iemydP3?p=preview

Thanks,
Idan.

1 Answer, 1 is accepted

Sort by
0
Accepted
Kiril Nikolov
Telerik team
answered on 03 Feb 2015, 03:53 PM

Hello Idan,

I have already answered your question in the other support thread that you opened, but I will copy my response here as well:

The problem that you face is caused by a bug in jQuery 1.9.1. You can either use the latest jQuery like in this example:

http://dojo.telerik.com/@Kiril/uDUno

Or manually trim the template if you still need to use jQuery 1.9.1 like this:

 

Copy Code
rowTemplate: kendo.template($.trim($("#rowTemplate").html()))

 

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
Integration with other JS libraries
Asked by
Idan
Top achievements
Rank 1
Answers by
Kiril Nikolov
Telerik team
Share this question
or