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.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author

  • akshatn
    Participant

    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,
    Akshat


    Peter Stoev
    Keymaster

    Hi 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 Stoev

    jQWidgets Team
    http://www.jqwidgets.com


    akshatn
    Participant

    Thanks 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


    Brett lee
    Participant

    I 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.


    Peter Stoev
    Keymaster

    Brett 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 Stoev

    jQWidgets Team
    http://www.jqwidgets.com

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.