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

AngularJS: Editable Grid click twice in Chrome

5 Answers 81 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jakob
Top achievements
Rank 1
Jakob asked on 01 Jun 2015, 03:28 PM

Hi,

 

please check this plunker (http://embed.plnkr.co/MBjO2QBkpDoqDGD2NDR2/preview) with Chrome. You have to click twice into the input fields inside the grid to start typing. I have the same problem in my project.

Versions:

Kendo - v2015.1.408

JQuery - v2.1.3

Angular - v.1.3.15

 

Thanks for your help,

Regards

5 Answers, 1 is accepted

Sort by
0
Alexander Valchev
Telerik team
answered on 03 Jun 2015, 02:55 PM
Hello,

I am not able to open the plnkr link. Is it possible to download the code and attach it to the forum thread or to put it in Kendo Dojo?

Thank you in advance.

Regards,
Alexander Valchev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Jakob
Top achievements
Rank 1
answered on 03 Jun 2015, 03:44 PM

Hi Alexander,

 you can find the example attached to this post.

 Please note, that this is copied from the plunker. It was originally created by http://plnkr.co/users/kevinhillinger.

 Thanks for your help.

0
Accepted
Kiril Nikolov
Telerik team
answered on 05 Jun 2015, 08:44 AM

Hello Jakob,

The problem is that the element is not getting replaced and the grid is initialized inside the k-grid element. This is why you need to configure your directive like this:

hg.directive('hgGrid', function() {
 
  return {
    restrict: 'E',
    template: '<div></div>',
    replace: true,
    scope: true,
    controller: 'gridController',
    link: function(scope, element, attrs, ctrl) {
        ctrl.bindGrid();
    }
  }
   
});

On top of that you are using relatively old versions of both AngularJS, jQuery and Kendo UI, so I would strongly recommend an upgrade.

Regards,
Kiril Nikolov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Jakob
Top achievements
Rank 1
answered on 08 Jun 2015, 04:29 PM
Thank you very much! That did the trick!
0
Kiril Nikolov
Telerik team
answered on 09 Jun 2015, 12:51 PM

Hello Jakob,

 

I am happy to help. 

 

In case something else comes, up do not hesitate to contact us.

 

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
Grid
Asked by
Jakob
Top achievements
Rank 1
Answers by
Alexander Valchev
Telerik team
Jakob
Top achievements
Rank 1
Kiril Nikolov
Telerik team
Share this question
or