RadSplitter with RadUpload Problem

4 posts, 0 answers
  1. Dominic
    Dominic avatar
    9 posts
    Member since:
    Jun 2008

    Posted 03 Jul 2008 Link to this post

    Hi

    I have a page with a RadSplitter and 2 radPanes. In the left pane i have a simple RadTreeview and on the right side i have a RadUpload. The problem occur when i add multiple upload files. If i use the scroll bar in the RadPane the select items in the RadUpload become floating and if i dont use the scroll bar (wich i've tried to achive) im loosing the "ADD" button in the RadUpload, it becomes hidden under the Pane surface. My goal is only to be able to add multiple fileUpload and that the Pane resizes his height like a simple div or panel.

    If you need more informations on my case , please let me know.

    Thx in advance for your help.
  2. Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 08 Jul 2008 Link to this post

    Hello Dominic,

    I understand that you expect from the RadSplitter control to behave as a table - when the content in one of its cells exceeds its Height, the Height becomes equal to the Height of the content. However, the current version of the RadSplitter does not offer such functionality. You can use the clientside api of the control to achieve it 
    1. Handle the ClientLoaded event
    2. In the handler, calculate the Height of the content inside the RadPane and set the Height of the splitter to equal that value
    You can find sample code here.


    All the best,
    Svetlina
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. Dominic
    Dominic avatar
    9 posts
    Member since:
    Jun 2008

    Posted 08 Jul 2008 Link to this post


    Thanks for your answer.

    I've tried to use your solution but i always receive this message :

    The Controls collection cannot be modified because the control contains code block (i.e. <% %>).

    Thanks for your help.
  4. Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 08 Jul 2008 Link to this post

    Hi Dominic,

    Make sure that the javascript which contains the code block is placed in the form element which has runat=server attribute. If this does not help, please open a new support ticket and send a sample, fully runnable reproduction project.

    All the best,
    Svetlina
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top