andyhill Posted April 8 Posted April 8 I have a UniGUI Standalone application, where we create the Grid / GridEditor (Description ComboBox) at runtime - ALL GOOD. When the Editor is triggered on an empty cell (second image), selection and closeup (first image) - ALL WORKS AS EXPECTED. When the cell is re-edited by entering into the cell (third image [without the ComboBox Dropping Down]) it shows the html text instead of the rendered text ? I should mention we want the ability to select from the ComboBox (which in turn auto fetch's the sell Amount) and if necessary overwrite the Description text. In this way we can pre-select the item then add "On Back Order" to the Description "3-in-1 Leg Massager (On Back Order)". OR manually add item Description along with the Amount that is not in the CombBox "Must Have Belt" Amount $50. Have I missed something ? Please advise - Thanks in advance. Quote
Sherzod Posted April 9 Posted April 9 Hello Andy, It looks like you're embedding HTML formatting directly into the field value. This approach usually leads to issues like the one you're seeing, because the editor uses the raw value. If the coloring is always assigned manually, you might want to consider introducing a simple condition (e.g. a status or flag) and applying the formatting in the column renderer instead. Quote
andyhill Posted April 9 Author Posted April 9 Thanks for the tip Sherzod, can I have a working example please ? Quote
andyhill Posted April 11 Author Posted April 11 Sherzod, What I would like to do is add a "Mode" variable (short int) to the Combobox Item (it would have been good if the Delphi Tag was implemented as I could have used that). i:= cbItems.Items.Add('something'); cbItems.Items[i].Mode:= 1; Then have an onPaintItem procedure where the Mode determines the font colour, eg. Mode 0 Black, Mode 1 Blue, Mode 2 Red etc. Can you please show how to do this with working code - Thanks - Andy Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.