Can I dynamically change RealGrid’s theme (style)?
RealGrid2, unlike RealGrid1, uses CSS to style the grid. Therefore, you cannot change the CSS using the function of the grid itself, but you can handle it by dynamically loading a different theme CSS file.
//html
<link rel="stylesheet" type="text/css" id="realgridCSS" href="./realgrid-style.css"/>
...
<p>
<a href="javascript:changeCSS('realgrid-style.css')">Change to default style</a>
<a href="javascript:changeCSS('realgrid-style-orange.css')">Change to orange style</a>
</p>
//javascript
function changeCSS(styleName) {
var tg = document.getElementById("realgridCSS");
if (tg) {
tg.href=('./' + styleName);
}
}