Setting contents of Sliding Pane programmatically

4 posts, 1 answers
  1. Amanda
    Amanda avatar
    24 posts
    Member since:
    Apr 2007

    Posted 17 Mar 2008 Link to this post

    Hello,

    I may be missing something, but I cannot find a property to use to set the contents of a sliding pane from my codebehind page.  I have declared a sliding pane which contains help information from a master page, and I want to change the HTML contents of that sliding pane from the codebehind of each page that uses the master page.  (I am creating a wizard-style interface, hopefully with a slide-out help pane on the right.)  But I cannot find a single property that lets me set those contents.  Oddly I do see a client-side method, setContent, but I'd really rather handle this on the server.  Is there a way to do this directly, or do I have to embed some sort of other HTML control and then set its value?

    Thanks.
  2. Answer
    Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 20 Mar 2008 Link to this post

    Hello Amanda,

    I am not quite sure that I understand your scenario. In case you want to add controls programmatically to the RadSlidingPane you should add them to its controls collection.

    In case this is not what you want, can you please provide more details on your case?


    All the best,
    Svetlina
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. Amanda
    Amanda avatar
    24 posts
    Member since:
    Apr 2007

    Posted 20 Mar 2008 Link to this post

    I guess I was hoping for something like the innerHTML property of a div - where I could just assign a string to the contents of the panel.  (I'm not writing the help myself, it will come to me as a formatted word doc, probably with stuff like bullet points and images.)  It would be easy to just convert the help for a given page to plain old HTML and assign it to an innerHTML property, but I can do it the way you suggest, by converting it all to server controls and adding them to the controls collection.  It will just take longer.  I guess that's one way to make sure it's all still XHTML!

    Thanks for your help.  Your product is fantastic and has taken probably a month off my project schedule. 
  4. Amanda
    Amanda avatar
    24 posts
    Member since:
    Apr 2007

    Posted 20 Mar 2008 Link to this post

    Or, now that I've read your answer to Jorge about creating an iframe in the sliding pane, that might be even easier!!  Mark this question as answered x2. :-)
Back to Top