Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
RaymondC  
#1 Posted : Friday, November 3, 2017 6:51:48 PM(UTC)
RaymondC

Rank: Advanced Member

Groups: Registered
Joined: 6/24/2013(UTC)
Posts: 95
Location: Seattle, WA

Thanks: 2 times
Was thanked: 2 time(s) in 1 post(s)
The Tree Button of a Group Row disappears when I delete the children of that Group Row.

iGrid Test.zip (21kb) downloaded 20 time(s).


Edit: My workaround is to loop through the grid and reset the RowTreeButton property of the Group Rows.

Edited by user Friday, November 3, 2017 7:46:18 PM(UTC)  | Reason: Not specified

Igor/10Tec  
#2 Posted : Saturday, November 4, 2017 8:44:14 AM(UTC)
Igor/10Tec

Rank: Administration

Groups: Administrators, Forum Moderator
Joined: 1/17/2011(UTC)
Posts: 1,111

Thanks: 15 times
Was thanked: 141 time(s) in 141 post(s)
This behavior was implemented intentionally. It helps to minimize the code used to work with trees and group rows. It's natural if the tree button is removed if a row does not have children rows.

BTW, if you add a row with the AddRow method and specify a parent row with the vRowParent parameter, the tree button is displayed automatically in the specified parent row. This is another part of the iGrid functionality that helps to minimize the amount of code to work with trees and group rows.

If you think iGrid should not do this automatically or at least we need an option to turn this on/off, tell us more details about the functionality of your grid.
RaymondC  
#3 Posted : Monday, November 6, 2017 6:10:13 PM(UTC)
RaymondC

Rank: Advanced Member

Groups: Registered
Joined: 6/24/2013(UTC)
Posts: 95
Location: Seattle, WA

Thanks: 2 times
Was thanked: 2 time(s) in 1 post(s)
I understand. All good.

Thank you.
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.