Scrollbar style


https://www.nevron.com/Forum/Topic13206.aspx
Print Topic | Close Window

By Mike O'Ceirin - 3 Years Ago
The default look off the scroll bar is fairly poor

The default look of the scroll bar is fairly poor. I have searched for a way to style it but I must admit as yet I have not looked at the CSS. Is that the way to go or is there properties that I am missing. Such as colour, raised et cetera? If so is there an example of their use

By Nevron Support - 3 Years Ago
Hi Mike,

Yes, you need to modify the CSS for the different scrollbar elements if you want to modify the looks of the toolbar. The following topic outlines this:
http://helpdotnetvision.nevron.com/#ThinWeb_CSS_Customization.html
We hope this helps - let us know if you meet any problems.
By Mike O'Ceirin - 3 Years Ago
I have tried that it does not appear to do anything! I tried by radically changing the colour. I change the one that was white to blue that is 0,0,255 instead of 255,255,255 which had no observable change!
By Mike O'Ceirin - 3 Years Ago
The CSS does work after a complete reinstall of visual studio. That is in a web form it will work but it will not work in a MVC controller so far everything else does! Any suggestions?
By Nevron Support - 3 Years Ago
Hi Mike,

Please make sure to apply the css changes before the control serves the initial content as the CSS is embedded there. We tested with the following modification to the MVC chart controller example:

  /// <summary>
   /// Renders the initial content of the chart on the page
   /// </summary>
   /// <returns></returns>
   public ActionResult Content()
   {
    NThinChartControl control = this.Control;
    control.ConfigureInitialResponse();

    control.ServerSettings.Css.StateHover = "border: 1px solid rgb(38, 148, 232);background: rgb(255, 0, 0);";

    Initialize(control);
    
    return new NThinControlResult(control.ProcessResponses());
   }

and the change was applied properly. 

We hope this helps - let us know if you meet any problems.
By Mike O'Ceirin - 3 Years Ago
Now working thank you