This is a migrated thread and some comments may be shown as answers.

RadDock resizing problem

1 Answer 118 Views
Dock
This is a migrated thread and some comments may be shown as answers.
JP
Top achievements
Rank 1
JP asked on 26 Aug 2011, 10:47 AM
Hello,

when I resize the raddock to fit it's contents (usually the radDock's width is increaed; the radDock contains a radGrid), the title bar doesn't resize properly.
The width changes correctly, but the "drag zone" doesn't get wider.
For example if the radDock's width is increased from 100px to 200px, the left half of the title can be used to drag the radDock (the curser changes to the move icon when hovering) but when I hover the right part of the title it doesn't work.

After dragging the radDock a bit using the left half of the title, the right part also works correctly.

What can I do about this issue?
The resizing is done client side using the set_width property of the rad dock. The function is called by using:

Sys.Application.add_load(initializeRadDockResources);

I also tried using the OnClientInitialize event, but when using that the whole title has no "drag zone" after resizing. Also the title text is missing. But when the RadDock is opened a second time everything works.

Thanks!

Edit: I just checked something and the problem in OnClientInitialize is the same as in the load event handler. I just set the width to 0 before. It seems that when the radDock is opened and I set the width as described above, the value is not used until the radDock is opened the next time.

1 Answer, 1 is accepted

Sort by
0
Accepted
Dobromir
Telerik team
answered on 31 Aug 2011, 09:43 AM
Hi JP,

We are aware of this issue and are working on its fix. Unfortunately, I am unable to provide a firm estimate when it will be available. As a workaround for this problem you can manually call RadDock's repaint() client-side method right after set_width(), e.g.:
function resizeDock(dock, width)
{
    dock.set_width(width);
    dock.repaint();
}


Kind regards,
Dobromir
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Tags
Dock
Asked by
JP
Top achievements
Rank 1
Answers by
Dobromir
Telerik team
Share this question
or