style.backgroundcolor

3 posts, 0 answers
  1. mark
    mark avatar
    19 posts
    Member since:
    May 2008

    Posted 14 Oct 2009 Link to this post

    Hi Folks,

    I am working on a wizard where I have an informative radsplitter with muliple vertical panes in it. As I navigate through the wizard I want the panes to highlight, thus giving the  user  a status as to where they are in the wizard.

    at the moment I am setting the background colour of the radpanes via an ajaxrequest method. Ideally I would like to do this on the clientside

    I am assuming its something like this
    RadPane.style.backgroundColor = "red"

    I would be grateful if someone could give me an insight into a snippet of code     that would achieve this

    thanks

    Mark
  2. Schlurk
    Schlurk avatar
    812 posts
    Member since:
    May 2009

    Posted 16 Oct 2009 Link to this post

    You could change the CSS of the pane through javascript. For information on what CSS elements exist in the Splitter read through this article.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. mark
    mark avatar
    19 posts
    Member since:
    May 2008

    Posted 18 Oct 2009 Link to this post

    I was able to sort this out... pretty simple after I thought about it for a bit...

     
    function HighlightPane() {  
    var RadPane1 = $find("<%= RadPane1.ClientID %>")  
    var RadPane1DOM = RadPane1.getContentElement();  
    RadPane1DOM.style.backgroundColor ="LightGoldenrodYellow" 
Back to Top