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

Refreshing dock's content

5 Answers 76 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Ivan
Top achievements
Rank 1
Ivan asked on 08 Jun 2009, 02:11 PM
Hi,
I searched the forum but I couldn't find any information for my problem. The problem is that: I have a dock zone with several docks inside. Through client script I update the content of one of the docks. But if the content is larger (longer text) than the old content a scroll bar appears inside the dock. What I want is to force the dock to resize itself in order the whole content to be visible. Is there any dock client method that can do this?
Best regards,
Ivan Pelovski

5 Answers, 1 is accepted

Sort by
0
Ivan
Top achievements
Rank 1
answered on 11 Jun 2009, 09:14 AM
Hi again,
I'm sure there is such client method because when I start dragging the dock with the changed content and then drop it the dock content is refreshed and the dock itself is resized. Please tell me if you know which is that method. I tried using some of the methods but they were of no avail.
Best regards,
Ivan
0
Obi-Wan Kenobi
Top achievements
Rank 1
answered on 12 Jun 2009, 08:57 AM
The RadDock is rendered as a DIV on the client so I think that the most outer element has width. Try to setting width to "", e.g.
$get("RadDock_ClientID").style.width="";
Hope this helps.
0
Ivan
Top achievements
Rank 1
answered on 12 Jun 2009, 09:37 AM
Hi, Obi-Wan. Thank you for your answer. I tried your suggestion but it didn't work :-( My width is fixed so the problem is more related to the height. But setting the height style to "" didn't work neither.
Best regards,
Ivan Pelovski
0
Obi-Wan Kenobi
Top achievements
Rank 1
answered on 17 Jun 2009, 11:59 AM
Try to set height="auto";
Hope this helps. Otherwise paste some code and I'll try to help you/
0
Ivan
Top achievements
Rank 1
answered on 22 Jun 2009, 11:53 AM
Hi, Obi-Wan. Thanks again for your answers. Setting the height to 'auto' didn't help but when by your suggestion I tried to extract the code with the dock it helped me find the problem :) The problem was that my dock had its property 'Resizable' set to true while it was in the 'docked' mode. Setting the 'Resizable' property to false fixed the problem. Though I would be glad to know which method from the dock API is used to resize the dock content ;)
Best regards,
Ivan Pelovski
Tags
Dock
Asked by
Ivan
Top achievements
Rank 1
Answers by
Ivan
Top achievements
Rank 1
Obi-Wan Kenobi
Top achievements
Rank 1
Share this question
or