Telerik Forums
UI for WinForms Forum
0 answers
11 views
The page views created within the RadNavigationView have no dock attribute and appear to have a fixed size.

If I set it to autosize it auto sizes to accommodate controls I add, bu,t I want this page to size to the window.

By default it is a small box like this. 



I then set autosize and shrinkandgrow which makes it smaller, Adding any controls into this box means the the autosize works but only to the controls. The controls cannot dock to the pageview and the pageview does not dock to the window that I feel it should. I have to manually specify absolute pageview sizes, or manually position larger controls within the window to expand this pageview.

As I resize the form, I want this pageview to resize to it's window to fit the form sizing and cannot see how to do it. There is no dock attribute for these elements. I'm guessing I may need to do this in code somehow to track the window etc. But this feels super-hacky,

Am I missing something basic?  to the absolute size of this radpageview - and the pageview has no feature to dock to its container.

The radnavigationview is docked and resizes just fine but its pages do not fill the window.
Jon
Top achievements
Rank 1
 asked on 18 Sep 2025
0 answers
151 views

        public void pastPanelInit()
        {

            var threadParameters = new ThreadStart(initSpreadSheet);
            var thread2 = new Thread(threadParameters);
            thread2.SetApartmentState(ApartmentState.STA);
            thread2.Start();
            //thread2.Join();

        }


        private void initSpreadSheet()
        {

            if (pastTabCalender.InvokeRequired)
            {
                pastTabCalender.Invoke(new Action(() => initSpreadSheet()));
            
            }
            else
            {
                spreadSheet = new RadSpreadsheet();
                spreadSheet.Dock = DockStyle.Fill;
                spreadSheet.Anchor = AnchorStyles.Top | AnchorStyles.Left;
                spreadSheet.Workbook.Worksheets.Add();
                pastTabCalender.Controls.Add(spreadSheet);
            }
        }

Im having some trouble adding a spreadsheet to my RadPageViewPage since the spreadsheet requires to be on a thread. This still gives me 'Cross-thread operation not valid: Control '' accessed from a thread other than the thread it was created on.'.

Is there anyone that could explain what im doing wrong here? Thanks.

 

Edit. Updated the code a bit and this gives me that it requires to be on the STA thread. Its something im not understanding with these threadings in c#.

Benjamin
Top achievements
Rank 1
 updated question on 11 Dec 2022
0 answers
107 views

I have 4 tabs in a PageView Strip mode where 2nd tabs visibility is false that's why empty space found in continuity of 4 tabs.

how can i set property to auto arrange tabs on page load in c# windows form.

Muhammad Naveed
Top achievements
Rank 1
 asked on 04 Oct 2017
0 answers
104 views

Dear friends,
I am trying to add run time page in pageview things working well but when I am trying to add windows forum as control it will not show, if I convert it to user control it show in pageview any specific reason behind it?

 CustomerMain customerMain = new CustomerMain(); // this one is windows forum if I change it to user control it work fine 
            customerMain.SelectedCustomerId = CustomerID;
            customerMain.Dock = DockStyle.Fill;
            customerMain.TopLevel = false;
            ((Forms.Test.TestCustomerForum)this.ParentForm).ShowParentTab(customerMain, "[" + customer._Owner + "]", CustomerID);

 

 

 

 public void ShowParentTab(Control form, string title,int customerID)
        {
            RadPageViewPage pageOne = new RadPageViewPage();
            pageOne.Text = title;
            string pageName =  customerID.ToString()+ title.Replace(" ","").Trim();
            pageOne.Name = pageName;
            pageOne.Controls.Add(form);
            radPageViewParent .Pages.Add(pageOne);
            radPageViewParent.SelectedPage = pageOne;
           
           
        }

Shakti SIngh Dulawat
Top achievements
Rank 1
 asked on 29 Jul 2016
Narrow your results
Selected tags
Tags
GridView
General Discussions
Scheduler and Reminder
Treeview
Dock
RibbonBar
Themes and Visual Style Builder
ChartView
Calendar, DateTimePicker, TimePicker and Clock
DropDownList
Buttons, RadioButton, CheckBox, etc
ListView
ComboBox and ListBox (obsolete as of Q2 2010)
Chart (obsolete as of Q1 2013)
Form
MultiColumn ComboBox
TextBox
RichTextEditor
PropertyGrid
Menu
RichTextBox (obsolete as of Q3 2014 SP1)
Panelbar (obsolete as of Q2 2010)
PivotGrid and PivotFieldList
Tabstrip (obsolete as of Q2 2010)
MaskedEditBox
CommandBar
PdfViewer and PdfViewerNavigator
ListControl
Carousel
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
CheckedDropDownList
ProgressBar
TrackBar
MessageBox
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
CollapsiblePanel
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
Styling
Barcode
PopupEditor
RibbonForm
TaskBoard
Callout
NavigationView
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
BarcodeView
BreadCrumb
Security
LocalizationProvider
Dictionary
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+129 more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?