Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
4040
Issue with button on hierarchical grid
posted

Hi,

I have a hierarchical grid with two levels. There is a button in each row of two levels.

The button just display an alert message with the column id of row. In the second level it work fine but in the first, the id is 'undefined'.

I join you a little html file that illustrate my problem.

Thanks in advance.

test_Hierarchical_grid.zip
Parents
No Data
Reply
  • 23953
    Offline posted

    Hello Coso,

    You've encountered a bug. I've created one on your behalf in our internal system. Its number is 151051. You'll be notified when the bug is fixed and a service release is available for you to download.

    Until then I can suggest you a workaround. Instead of template you can use formula function for the root grid layout like this:

    {
    key: "OuvrirGene", headerText: "Ouvrir", unbound: true, width: "50px",
    formula: function(row) {return "<input type='button' class='gridButton' value='O' data-id='" + row.idGeneration + "' onClick ='maFonction(" + row.idGeneration + ")'/>";}
    }

    Best regards,
    Martin Pavlov
    Infragistics, Inc.
     

Children
No Data