RadPageView - force tabs to be redrawn when widths are set

1 Answer 10 Views
PageView
Matthew
Top achievements
Rank 1
Matthew asked on 24 Apr 2025, 11:40 AM | edited on 24 Apr 2025, 12:00 PM

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?

1 Answer, 1 is accepted

Sort by
0
Nadya | Tech Support Engineer
Telerik team
answered on 24 Apr 2025, 12:30 PM

Hello, Matthew, 

Following the provided information, I create a sample project to replicate there your setup. I understand that you have applied multiline layout in strip view of RadPageView. However, I am not sure how exactly you set the width of each RadPageViewPage. Are all pages going to have the same width? On my side, pages are redrawn correctly every time when I resize the form, or minimize/maximize it. The pages re-arange to fit the available space. However, it seems there is something different on your side and you expect different behavior. 

Is it possible to replicate your exact problem in my sample project and get the updated project back to me. Thus, I should be able to review your current implementation and assist you further. I would need to have the same setup as your to understand the case better and provide working solution or a possible suggestion for your case.

I am looking forward to your reply.

Regards,
Nadya | 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.

Tags
PageView
Asked by
Matthew
Top achievements
Rank 1
Answers by
Nadya | Tech Support Engineer
Telerik team
Share this question
or