Refreshing dock's content

6 posts, 0 answers
  1. Ivan
    Ivan avatar
    19 posts
    Member since:
    Jan 2008

    Posted 08 Jun 2009 Link to this post

    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
  2. Ivan
    Ivan avatar
    19 posts
    Member since:
    Jan 2008

    Posted 11 Jun 2009 Link to this post

    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
  3. Obi-Wan Kenobi
    Obi-Wan Kenobi  avatar
    460 posts
    Member since:
    Aug 2007

    Posted 12 Jun 2009 Link to this post

    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.
  4. Ivan
    Ivan avatar
    19 posts
    Member since:
    Jan 2008

    Posted 12 Jun 2009 Link to this post

    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
  5. Obi-Wan Kenobi
    Obi-Wan Kenobi  avatar
    460 posts
    Member since:
    Aug 2007

    Posted 17 Jun 2009 Link to this post

    Try to set height="auto";
    Hope this helps. Otherwise paste some code and I'll try to help you/
  6. Ivan
    Ivan avatar
    19 posts
    Member since:
    Jan 2008

    Posted 22 Jun 2009 Link to this post

    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
Back to Top