jQWidgets Forums
jQuery UI Widgets › Forums › Grid › Angular jqxGrid – need to add ng-click on column render function
This topic contains 4 replies, has 3 voices, and was last updated by Peter Stoev 9 years, 3 months ago.
-
Author
-
January 16, 2015 at 12:07 pm Angular jqxGrid – need to add ng-click on column render function #65488
I have a column renderer on jqxGrid which i am using from custom directive via angular.
Here is the columnRenderer code.var textrenderer = function (row, datafield, value) {
return ‘<span style=”vertical-align: middle;” ng-click=”spanClick()>’ + value + ‘</span>’;
}I have to add ng-click on above renderere. Now the directive which i am using looks have isolate scope and that is why i am not able to capture/handle spanClick() function anywhere.
Any solution?
Thanks,
AkshatJanuary 16, 2015 at 12:10 pm Angular jqxGrid – need to add ng-click on column render function #65491Hi Akshat,
You can use the events documented on the Grid’s API page and use them as documented on the documentation page about AngularJS.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comThanks for response.
Those events given about AngularJs integration with JQWidgets talks about handling of std events invoked by jqxGrid, like row click, row select. Here, i have to invoke a method in renderer and handle in controller where jqx-grid is added ( like ng-click which should be handled outside ). I dont see any such example.
Can you give precise way to do it? Example code or something. Thanks.
Akshat
December 31, 2015 at 1:23 pm Angular jqxGrid – need to add ng-click on column render function #79972I am facing the similar issue.
ng-click is not working in the column header renderer and groups renderer where as it is working in cells renderer.
All I need to do is having a html element in column header on click of it handling a function.
Please give us some solution as early as possible. We are looking at all ten customisations so that our stakeholders want to buy a license.Since we are using angularjs integration we cant go for global functions outside our controllers and passing the data will also be difficult.
Anticipating a fast reply.December 31, 2015 at 1:39 pm Angular jqxGrid – need to add ng-click on column render function #79973Brett Lee, where did you see ng-click or event similar to that in the Grid’s API Documentation? jqxGrid events are documented and you can use only documented events, not some custom events. You should use this product in the way it is demonstrated and in the way it is documented.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.com -
AuthorPosts
You must be logged in to reply to this topic.