splitter in Usercontrol

2 posts, 0 answers
  1. Jason
    Jason avatar
    9 posts
    Member since:
    Sep 2013

    Posted 03 Mar 2014 Link to this post

    Dear Sir

    I have problem on splitter in User control. 

    I use radgrid and pop up a user control (ucA) for editing. In this  user control(uc A), I have another user control (ucB) which have a radsplitter as top level. 

    I tried wrap a div with width and height in percentage or px to ucB in ucA, The radsplitter rendered with wrong width and height.  it totally ignores the Div in ucA.

    When I can the client page of source code, I fount it sets the width to the radgrid width. 

    Summary: the radsplitter in user control can't response the host width.

    Please let me know how to solve this.

    Thank you very much.

    Jason

  2. Vessy
    Admin
    Vessy avatar
    1380 posts

    Posted 04 Mar 2014 Link to this post

    Hi Jason,

    When you want a Splitter to take size in percentages, you have to make sure that all of its parent also have  size configured in percentages (up to a parent with a fixed size). Do you experience the same issue when you set a fixed hight to the Splitter's wrapping div? If no, most probably there is any parent which size is not configured. This is not anything specific for the Splitter, but is a general HTML behavior.

    I would suggest that you review the online resources where you ca find detailed explanation on how to configure a Splitter properly:
        Filling the Entire Page
        Specifying Size
        Resize with Window

    If  you still experience the described issue after applying the configurations from the articles above, I will need to examine you markup in order to see what is causing the issue. You can see how to prepare a sample fully runnable project in the following blog post: Isolating a problem in a sample project

    Kind regards,
    Veselina Raykova
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the UI for ASP.NET AJAX, subscribe to the blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top