I have created a combo with xml.
When the combo is set to readonly I want to change the style. But when this happens I get the result in the attachment.
I can’t see the whole text anymore, and the background of that part of the text is set, although the whole combo should have colored.
This is the part of the code where the style for the combo is set:
We have many samples, there combo is created via XML. But all of them such identical.
We suggest you to make demo ONLY with your combo, excepting of using any other components.
Because we need to see your principle of action of the combo.
Attach you some xml files of the combo combo_xml.rar (2.93 KB)
Where are you setting the colors in the code?
And you change the example is such way that it isn’t loading XML anymore.
I need to set the style attribute in XML, because the whole application is working like that. All DHTMLX components are working fine with the color change on read-only. Only the combo is having problems.
Your example is working, but the style is not set by XML.
In this case I have to change over hundred .jsp files where combo’s are used.
In the example I gave you the whole combo including style was created in XML. This gives us a generic way to create a combo, so we have no need to change all our jsp files.
Isn’t there a posibility to set the background-color like this:
Form allows to define the “className” property for its items. This property is added to className of html element that reproduces Form item on a page. So, you can set a certain className for readonly “combo” item and define css rule that will be applied to Combo in such an item: