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.
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 PavlovInfragistics, Inc.