Possible to force recalculation RadSplitter?

3 posts, 1 answers
  1. Mink
    Mink avatar
    57 posts
    Member since:
    Apr 2009

    Posted 05 Oct 2009 Link to this post

    Hi,

    I sometimes encounter the situation that the height of a radsplitter is not calculated correctly.

    This happens in a very specific situation:
    In the project I'm working on we're using a home brewed sort of tabs. When a tab is switched to for the first time the contents of that tab is rendered. The radsplitter that is giving me problems is in one such tabs.
    All is well if I switch to such a tab and I wait long enough for the height of the radsplitter to be calculated correctly (which isn't very long at all). The problem arises when I switch to such a tab and the switch to another tab very quickly, causing radsplitter to render "in the background", if you catch my drift. Somehow something goes wrong with the calculation of the height of the radsplitter, resulting in unnecessary scrollbars and such.

    Now, I would be greatly helped if there exists a command in the client-side api which forces the height of a radsplitter to be recalculated.
    I haven't found such a function, but have I missed it? If so please tell me, and sorry for not looking properly.
    If there is already another thread addressing this functionality please direct me to it, and sorry for creating a new thread about it although I did look for such a thread first but couldn't find it. (There are so many threads about radsplitters and height.)

    Regards,

    Mink

  2. Answer
    Tsvetie
    Admin
    Tsvetie avatar
    1517 posts

    Posted 08 Oct 2009 Link to this post

    Hello Mink,
    The client-side method that you need in this case is the "repaint" method - it causes the splitter to recalculate its size and in case it is necessary (that is, the calculated size is different than the current), the splitter sets it to the relative elements.

    Greetings,
    Tsvetie
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Mink
    Mink avatar
    57 posts
    Member since:
    Apr 2009

    Posted 13 Oct 2009 Link to this post

    Ah great,

    thanks.
    It looks like I didn't look close enough because this I should have found by myself.
    Sorry for wasting your time and thanks for you answer.

    Regards,

    Mink
Back to Top