ParamQuery grid support forum

General Category => Help for ParamQuery Pro => Topic started by: flipo on March 07, 2018, 08:04:17 pm

Title: Select row for Treegrid
Post by: flipo on March 07, 2018, 08:04:17 pm
How can I obtain the id of the selected row in a Treegrid without checkbox?
Till now I only find a for treeModel a render function but not a rowSelect:function(evt,ui){}?

At the of the treegrid constuction I have put
$('#tree_grid').pqGrid('option','selectionModel',{type:'row',mode:'single'} );
Title: Re: Select row for Treegrid
Post by: paramvir on March 07, 2018, 08:23:33 pm
id of a selected row in grid or treegrid can be obtained either in rowSelect event or by use of grid.SelectRow() API

https://paramquery.com/pro/api#method-SelectRow

https://paramquery.com/pro/api#event-rowSelect