Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

ASPxComboBox - How to change a color of text for certain items

$
0
0

This example illustrates how to customize a style for each item. Since the color is changed for an HTML element, it is necessary to synchronize this settings on each round-trip to the server. For this, handle the client-side combo box' Init and EndCallback event.

Note: the GetItemElement and GetItemRow methods are undocumented and can be changed without any notification with the next release.

Question Comments

Added By: Aris Vlotomas at: 5/12/2014 2:46:54 AM    

Hello,
I'm trying to use the following js code, without the for loop, but the listBox is null and the code is crashing.
var item1 = clientComboBox.listBox.GetItemElement(1).firstElementChild;

What can I do?
I just want to add/change styles for a specific item.

Thanks,
Aris

Added By: Larry (DevExpress Support) at: 5/12/2014 6:53:23 AM    

Hello Aris,

I have created a separate ticket on your behalf to process your inquiry more effectively:

ASPxComboBox - How to change a color of text for certain items (E4100 example)

Please refer to it for further correspondence.


Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>