This is a migrated thread and some comments may be shown as answers.

Setting contents of Sliding Pane programmatically

3 Answers 37 Views
Splitter
This is a migrated thread and some comments may be shown as answers.
Amanda
Top achievements
Rank 1
Amanda asked on 17 Mar 2008, 07:58 PM
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.

3 Answers, 1 is accepted

Sort by
0
Accepted
Svetlina Anati
Telerik team
answered on 20 Mar 2008, 12:38 PM
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
0
Amanda
Top achievements
Rank 1
answered on 20 Mar 2008, 02:18 PM
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. 
0
Amanda
Top achievements
Rank 1
answered on 20 Mar 2008, 02:21 PM
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. :-)
Tags
Splitter
Asked by
Amanda
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Amanda
Top achievements
Rank 1
Share this question
or