Author Topic: Select row for Treegrid  (Read 1663 times)

flipo

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 5
    • View Profile
Select row for Treegrid
« 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'} );

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6298
    • View Profile
Re: Select row for Treegrid
« Reply #1 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
« Last Edit: March 07, 2018, 08:27:27 pm by paramquery »