radPageView scrolling

2 Answers 202 Views
PageView ScrollBar
Carl
Top achievements
Rank 1
Iron
Iron
Iron
Carl asked on 02 Mar 2023, 07:10 PM

I have a project where the user wants a multi tab control on a WinForm - no problem.

On the first tab however, they want too many controls to fit on the screen, Therefore they want the first tab's RadPageViewPage to scroll up and down. They do not want a sub tab. The problem is that there are so many controls that if they were separate tab they would fill four of them. I realize that scrolling is not the point of a tab control but this is what they want. Still, there are limits to the size of a Form and the size of the RadPageViewPage control.

Is this something that can realistically be done or is this just asking for too much?

Thanks

Carl

 

2 Answers, 1 is accepted

Sort by
0
Dinko | Tech Support Engineer
Telerik team
answered on 03 Mar 2023, 02:43 PM

Hello Carl,

Here that approach depends on the requirement.

What comes up to my mind is to somehow combine the controls in the PopupEditor control. Each dropdown can contain several controls which will combine controls relevant to one task. Also, the content of each page can be created in a separate UserControl. Then you can add the UserControl to the Controls collection of the page. 

You could send me an image of what you have so far so that I could try to think of a more suitable solution.

Regards,
Dinko | Tech Support Engineer
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Carl
Top achievements
Rank 1
Iron
Iron
Iron
commented on 03 Mar 2023, 02:45 PM

Your user control idea makes the most sense. I should have thought of that myself. Let's me try that first.

Thanks

Carl

Carl
Top achievements
Rank 1
Iron
Iron
Iron
commented on 03 Mar 2023, 07:49 PM | edited

Dinko

We were able to get this working via an nested tab control that we configured like this:

            radPageView2.ViewMode = PageViewMode.ExplorerBar;

            RadPageViewStackElement stackElement = this.radPageView2.ViewElement as RadPageViewStackElement;
            stackElement.StackPosition = StackViewPosition.Top;

Here is the screen capture. As you can see, in this tab the Spouse Name and Co-Applicant controls are cut off. When I set to AutoSize, its overwrite the tab below it. How can I get this to display all of the controls within the tab without cutting anything off?

Thanks

Carl

Dinko | Tech Support Engineer
Telerik team
commented on 06 Mar 2023, 02:32 PM

Looking at the image I am not exactly sure why the content is not scrollable. If you can isolate this I could take a look. Generally speaking, if the controls are placed inside RadPanel, a scrollbar which appears when the content is bigger than the parent. Can you share what is the type of parent holding all labels and textboxes?
Carl
Top achievements
Rank 1
Iron
Iron
Iron
commented on 06 Mar 2023, 02:36 PM

Dinko

The controls sit on a radPageViewPage, not a radPanel. What I simple need is for the available room for the controls shown to be a bit higher, not scrollable at this point.  If I could make each one a few hundred pixels higher I'd be in good shape. This way the Spouse Name and Co-Applicant would show without scrolling.

Thanks

Carl

 

Dinko | Tech Support Engineer
Telerik team
commented on 07 Mar 2023, 01:30 PM

Generally speaking, if there is not enough space for the items, a scrollbar should appear. It is interesting why the scrollbar does not appear in your application. Nevertheless, you can use the PageLength property to customize the content size. This property and how to use it is further described in Customizing the ExplorerBarView help article. Give it a try and let me know how it goes.

Benjamin
Top achievements
Rank 1
commented on 16 Aug 2023, 02:09 AM

Ever have a tricky UI request that pushes the limits? A client recently asked me to add a scrolling tab in their WinForms app. They wanted to cram tons of controls onto one tab, far more than could reasonably fit on screen. 

geometry dash bloodbath

0
Carl
Top achievements
Rank 1
Iron
Iron
Iron
answered on 07 Mar 2023, 01:45 PM

PageLength and AutoSize did the trick.

Thanks!

Carl

Tags
PageView ScrollBar
Asked by
Carl
Top achievements
Rank 1
Iron
Iron
Iron
Answers by
Dinko | Tech Support Engineer
Telerik team
Carl
Top achievements
Rank 1
Iron
Iron
Iron
Share this question
or