Jump to content


Photo

No Vertical Scrollbar for Treed rows in grid


  • Please log in to reply
2 replies to this topic

#1 BelangerC

BelangerC

    Senior Member

  • Members
  • PipPip
  • 221 posts
  • Location:Richmond, CA USA
  • Interests:Alternative medicine, programming for

Posted 23 August 2023 - 09:58 PM

Hi, Boki:

 

This is a real problem for me.

 

In my program I often add a row or rows to a grid, then later in code add all Child rows to any parent row which has such in a recursive routine.

 

I notice that in NG5 this adding of child rows after adding rows will properly show a vertical scroll bar when needed based on grid size and number of rows.

But, in NG6 this is not the case. No vertical scroll bar appears which means users cannot access the expanded rows that fall below the bottom of the grid.

BIG PROBLEM.

 

Now, in a simple test project, I noticed that if the treed rows and children are added as part of creating the grid and adding rows and child rows at the same time, all is well--the vertical scroll bar shows up.

 

But consistently, if I add rows then later in code add children to some or all of those rows then no vertical scroll bar becomes available when required to show the expanded grid.

 

Is this a bug or is there a way around this?

 

Later....

Ok, with experimenting, I found that if I issue Row[Index].Collapse(true) after each AddChildRow that that will allow the Vertical Scroll bar to appear. This works even if right after adding the row's children I expand all.

 

Still seems like a bug to me.

 

Thank you,

Chuck



#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,289 posts
  • Gender:Male

Posted 23 August 2023 - 11:30 PM

Hi Chuck,

 

I will correct this. I hope that I will have it for the next release. If you send me this test project, it will be helpful :)


boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#3 BelangerC

BelangerC

    Senior Member

  • Members
  • PipPip
  • 221 posts
  • Location:Richmond, CA USA
  • Interests:Alternative medicine, programming for

Posted 24 August 2023 - 12:29 PM

Kind of messy, but here it is. It will demo the issue for you. (Originally, I was trying to demonstrate the vertical scroll issue where getting a row out of range (-1) error, which in this simple project I could not duplicate although it continues in my program if one moves the scroll bar to far up vertically.)

 

Hope it helps,

 

Chuck

Attached Files






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users