Hi all,
Does anyone know if it's possible to allow the user to resize the row selector column in the grid? I noticed that if you group by a column the size of the row selectors is decreased and some large numbers are trimmed. There doesn't seem to even be a tooltip displayed for these by default...
Cheers,
Richard
Hi Richard,
There's a RowSelectorWidth property you can set in code, but there's no built-in support for allowing teh user to resize the RowSelectors.
Are you setting RowSelectorWidth initially? I don't see any reason why the RowSelector width should be changing when you group the grid. That might be a bug.
Hi Mike,
Thanks for another swift reply! The images below show what's happening. In the first you see all the numbers are visible. However, when the user groups by a column, the row selector shrinks slightly (to allow for indentation i presume), and numbers greater than 1000 are trimmed. I never set the RowSelectorWidth (at design time or run time).
Note: If the user were to group by a second or third column, the size of the row selector remains the same...just shifts with the row indent instead.
Ungrouped:
Grouped:
Thanks,
I tried this out and I do see the same results. It's pretty tough to get this to happen, though. In order for this to occur, you have to have more than 1000 rows in your grid initially, and then you have to group the grid and have a single group that still has more than 1000 rows. So that's probably why this has never been reported before.
Anyway, I'm going to forward this thread over to Infragistics Developer Support. It looks like a bug to me. The RowSelectors should be staying the same size when you group, but it looks like the indentation on the GroupByRows is eating into them for some reason.
Thanks! That clears that up. I'll keep my ears peeled for the fix. Does that mean that what SHOULD be happening is the row selector width will always be great enough to show the row number? i.e. if there are 1,000,000 rows it should have no problem displaying the full number for row 1,000,000?
Okay, that makes sense. Thanks for the info!
I don't know about always. After you, you can explicitly set the RowSelectorWidth property.
But by default, it tries to choose an appropriate size based on the number of row when the rows are created. If you start off with 1000 rows and then you add 9,000 more, it probably will not know that it has to adjust at that point, but if you start off with 10,000, it should work.
In this case, it probably needs to re-adjust when you group.
Ideally, we should probably expose a method to allow you, the developer, to auto-size the RowSelectors.