I have a RadPageView in Strip mode with 18 tabs on it.
When the form is created I set the tabs to two rows, with 9 on each row, using this approach:
As the form is resized, I recalculate and set the width of the tabs (RadPageViewPage.ItemSize) so that they will continue to fit.
When I resize the form by dragging this works - the tabs resize and I can see all 9 on each row.
However, when I minimize/maximize the form the tabs are not resized (although I can see that the sizes are set correctly). If I hide and then reshow the application (by clicking on the icon in the taskbar) then I see the sizes are again set (to the same value) and this time they are redrawn, so show correctly.
Maximized (new width set but tabs aren't redrawn):
Hide then show (no other changes - the widths are set but to the same values as in the above image):
Similarly...
Minimize (new width set but tabs aren't redrawn, so they overflow to the right):
Hide then show (no other changes - the widths are set but to the same values as in the above image):
I have tried calling Refresh() on the RadPageView control and the RadPageViewStripElement, but to no avail.
So, is there any way to force the tabs to be redrawn when I set the new width?
Or is there an alternative solution?
Hi, I am customizing the theme VisualStudio2022Light. I have changed the purple color to the teal. However, I am not able to change the background and selected row in the theme.
When I run my application, it is still in purple.
I found a similar issue where I couldn't find where I can change the close button during click in the RadForm.
Hi,
When I "left click" on a header of a page, the page is changed before I release the mouse click.
Also, when right clicking it's selecting/unselecting a page, it looks strange.
Before I override many things, how would you do to change this behavior in a clean way? We won't deactivate right-click because we do have context menu to save the opening tab on new view show.
Thanks a lot in advance!
Simon
public class Globals
{
public static Color DefaultTabColor = Color.FromArgb(255, 191, 219, 255);
}
...
private void CancelTab(int offset)
{
DetailTabControl.Pages[offset].Item.DrawFill = true;
DetailTabControl.Pages[offset].Item.NumberOfColors = 1;
DetailTabControl.Pages[offset].Item.BackColor = Color.Red;
}
private void UncancelTab(int offset)
{
DetailTabControl.Pages[offset].Item.BackColor = Globals.DefaultTabColor;
DetailTabControl.Pages[offset].Item.NumberOfColors = 2;
DetailTabControl.Pages[offset].Item.DrawFill = false;
}
Hi Telerik,
I'm using C# and and RadPageView NavigationBar component for my WinForms application.
I think I'll give a background story first.
I implement a RadPageView with NavigationBar, and also implement a search bar between the hamburger menu and the RadPageView items
The item's is populated from a class
The "search menu" is used to filter the displayed menu
And when I clear the search menu's filter, the RadPageViewItems is re-loaded with the previous class data. But, it takes a long time due to a lot of records (FYI, i have ~1000 menus that equivalent to ~1000 RadPageViewItems)
Is it possible to improve the load speed? Like, maybe, any mechanism that stores the fully loaded menu as a local-storage in RadPageView's function/module that I should call when the search menu is cleared after it has been filled?
Thanks in advance!
Hi,
I have a control that is opened as a floating HostWindow. This control is composed of a RadPageView and a RadPanel and all these elements have the margins and paddings set to 0. Also, BorderStyle properties are set to None but I still see the borders there (see image attached).
There is any way to remove these borders?
Hello!
RadPageView has a setting called "ItemSpacing" that adjusts the gap between RadPageViewPage controls.
Is there any way to get a similar result for RadDock?
Cheers!
C
Hi,
I'm trying to use a PageView as a container for Grids (to eventually function as filters). ViewMode is Explorer bar as I want each page to open individually. I want each page to adjust it's height to the full height of the grid (above the grid I'm planning to include a TextBox for filtering but that's for later). Only the PageView's scrollbar should appear (when needed) not the grid's. I've been combining design settings (ie. Content Size Mode to AutoSizeToBestFit) and code for days and this combination behaves unexpectedly (dare I say it almost randomly). I've attached the source form if someone can help me out.
A few other things (see picture):
- The first time I expand one of the pages it appears gray and empty, without label, bug? (red)
- How do I get rid of the header? (marked yellow)
- Is it possible to include an icon/button aligned to the right of each Filter (to be used for clearing the selection)? (blue dots)
Jure
Hello,
I have a RadPageView control with Windows 8 theme and strip view mode.
When I disable the control, the color of the strip behind the tabs changes to a dark gray. I do not want it to change, but to stay in control color.
If I use the EnabledChange event and change the ItemContainer.BackColor of the StripElement it still shows the dark gray first.
I have seen that this is possible for example in Fluent theme, but want to use Windows 8 theme for my application.
I would love to use an easy way (SetThemeValueOverride) if possible. But I also haven't found a fitting property in the theme's style repositories and groups