This is a migrated thread and some comments may be shown as answers.
style.backgroundcolor
2 Answers 25 Views
This is a migrated thread and some comments may be shown as answers.
mark
Top achievements
Rank 1
mark asked on 14 Oct 2009, 09:59 PM
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 Answers, 1 is accepted

Sort by
0
Schlurk
Top achievements
Rank 2
answered on 16 Oct 2009, 09:02 PM
You could change the CSS of the pane through javascript. For information on what CSS elements exist in the Splitter read through this article.
0
mark
Top achievements
Rank 1
answered on 19 Oct 2009, 03:46 AM
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" 
Asked by
mark
Top achievements
Rank 1
Answers by
Schlurk
Top achievements
Rank 2
mark
Top achievements
Rank 1
Share this question
or