grid.customGroupFormat

Hi support team,

I create a customGroupFormat using :

grid.customGroupFormat = function (text, count) { return text + " has "+count+" related reports " + '&#xa0;<input type="button" value="Users" onclick="frame();"/>'};

I would like to use text as variable for the function frame(), is it possible ?

edit : in fact, I want to get the group key as variable

Please, try to use the following code:

grid.customGroupFormat = function (text, count) { return text + " has "+count+" related reports " + '&#xa0;<input type="button" value="Users" onclick="(arguments[0]||window.event).cancelBubble=true; frame(\''+ text + '\');"/>'; };