0

Is there any way i can switch between adjacency and nested mode of jqGrid tree grid on the fly, i.e. in normal cases i should go for the adjacency mode but in case user applies a filter , i have to show all the rows and this is only possible in nested mode, so i want that i can switch between these two depending on certain conditions?

Kamran Ali
  • 5,904
  • 2
  • 26
  • 36

1 Answers1

1

jqGrid create different additional hidden columns for TreeGrid in adjacency mode and TreeGrid in nested mode. So to switch to another mode you have to recreate the grid using GridUnload (see the demo from the answer for example).

What I don't understand is why you can show all rows of TreeGrid only in nested mode. There are in general no such restriction. It could be the problem of your implementation only.

Community
  • 1
  • 1
Oleg
  • 220,925
  • 34
  • 403
  • 798