I have set cardview property to true and split the grid into two rowscrollregions
1.how can I disable the scrollbars in topmost scroll region or atleast the vertical scrollbar?2. I want to scroll the vertical scroll bar of second scrollregion such that a particular column appears at the top of that rowscrollregion.how can I achieve that?
Hello,
Generally you can hide the CardView scrollbar using the following command:
e.Layout.Bands[0].CardSettings.CardScrollbars = Infragistics.Win.UltraWinGrid.CardScrollbars.None;
Both views are not really fit to work together, however the above call will hide the first scrollregion bar only.
Another option to do it would be to apply a creation filter and skip the scrollbar element you don't want to be applied.
Regarding scrolling the second region, you can try calling ScrollCardIntoView method of the rows collection. Given that the specific row is unique, it will work, however if you are identifying it by index or another method which can be identified in another scroll region, it will trigger for all regions it finds a match.
There is currently no workaround on this, so it will be a feature request if this method doesn't fit your scenario.
Should you have any further questions, please let me know.
Sincerely,
Tihomir TonevAssociate Software DeveloperInfragistics
Thanks tihomir for your reply. As you suggested i was able to enable or disable scrollbars using creation filter.I could't find a fix for scrolling in sceond row scroll region.scrollrowintoview scrolls the corresponding card
Assuming i have 8 columns in grid and when i enable cardview those will be displayed as labels.i then split grid into rowscrollregions . Now in the secondrowscrollregion i want to scroll the vertical scroll bar such that 3rd label appears as first label.
I am not 100% sure what your setup is, however if you have MaxCardAreaCols set, in this case what actually scrolls the cards is the horizontal scroll, while the vertical one is used to scroll down the card in case the card is bigger than the scroll region.
Can you please give me more details in how you plot the cards, so I can recreate it on my end.
I have tried the following code and the grid is moved to the row I have specified:
var rsr = this.ultraGrid1.DisplayLayout.RowScrollRegions[1] as RowScrollRegion;
UltraGridRow row = this.ultraGrid1.Rows[7];
rsr.ScrollRowIntoView(row);
HiI have attached two screenshots of a sample grid. Please assume the cards to be longer and needs vertical scrolling.what i want to achieve in this case (referring to 1st attachment )is the first three columns(id,name,department)to be fixed in top region and vertical scrollbar should be scrolled such that 'salary ' appears at the top of second row scrollregion as depicted in second screenshot
I can't see the vertical scroll to be exposed, nor I'm finding any events triggering, so I believe feature request will be the only way.
Tihomir TonevInfragistics
Hi TihomirI will raise a feature request but is there no workaround for this?. I wanted to know whether we can scroll the vertical bar in cardview or not .
Freezing columns/rows in cardview is not supported. You can submit a feature request on our website for this.