EasyUI Forum

General Category => General Discussion => Topic started by: jega on October 09, 2017, 02:31:11 AM



Title: [SOLVED] Groupview - onExpandGroup
Post by: jega 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


Title: Re: Groupview - onExpandGroup
Post by: stworthy on October 09, 2017, 08:18:19 PM
Yes, you should store the group index and then call the 'expandGroup' method to expand it.


Title: Re: Groupview - onExpandGroup
Post by: jega on October 10, 2017, 04:55:07 AM
But how to get the index when user expand a group. I see no onExpandGroup(index)


Title: Re: Groupview - onExpandGroup
Post by: stworthy on October 11, 2017, 06:59:47 AM
Please download the newest 'datagrid-groupview.js' file from https://www.jeasyui.com/extension/datagridview.php


Title: [SOLVED]Re: Groupview - onExpandGroup
Post by: jega on October 11, 2017, 08:47:51 AM
Perfect, thanks.

Jesper