fiogf49gjkf0d Hi, I had the same problem. You'll have to write that CSS-Code into the file:
\Model\Portal\SlxClient\SupportFiles\css\quickform.css
of your VFS or LFS. Just put it at the end. Then you'll have to open the SageStyles.jsb file with JSBuilder (it's freeware). Build the file (it's the rightmost button in the toolbar at the top) and build and deploy your portal via Application Architect. Doing this will make the class usable in your SLX environment. But I'm afraid that changing style scheme at run time won't work since it's a read only attribute.
One last thing: it seems to be important that you leave the space between the colon and the value, but you already did that (I didn't so it didn't work).
Edit: I found one way how to change the CSS-Class of a control at runtime:
Style style = new Style(); style.CssClass = "<yourCssClass>"; <yourLabel>.ApplyStyle(style);
Maybe there's a shorter and easier way, but this definitely works. |