Jump to content

Recommended Posts

Posted

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.

Grid-Cell-ComboBox-CloseUp.jpg

Grid-Cell-ComboBox-Dropdown.jpg

Grid-Cell-ReEdit-No-ComboBoxTriggered.jpg

Posted

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.

Posted

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 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...