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
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.
Your user control idea makes the most sense. I should have thought of that myself. Let's me try that first.
Thanks
Carl
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
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
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.
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.
PageLength and AutoSize did the trick.
Thanks!
Carl