EasyUI Forum
April 19, 2024, 08:52:25 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: [SOLVED] Groupview - onExpandGroup  (Read 5980 times)
jega
Full Member
***
Posts: 190


View Profile
« on: October 09, 2017, 02:31:11 AM »

Hi.

To expand a group is easy, $(this).datagrid('expandGroup',index).

But how do i get the index when a user expands a group. Need to store the index, for auto expand on next logon.

Jesper
« Last Edit: October 11, 2017, 08:48:32 AM by jega » Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: October 09, 2017, 08:18:19 PM »

Yes, you should store the group index and then call the 'expandGroup' method to expand it.
Logged
jega
Full Member
***
Posts: 190


View Profile
« Reply #2 on: October 10, 2017, 04:55:07 AM »

But how to get the index when user expand a group. I see no onExpandGroup(index)
« Last Edit: October 10, 2017, 06:15:56 AM by jega » Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #3 on: October 11, 2017, 06:59:47 AM »

Please download the newest 'datagrid-groupview.js' file from https://www.jeasyui.com/extension/datagridview.php
Logged
jega
Full Member
***
Posts: 190


View Profile
« Reply #4 on: October 11, 2017, 08:47:51 AM »

Perfect, thanks.

Jesper
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!