TwebRadioGroup - adding classes to items

I have a TWebRadioGroup and add the items in code. Is there a way to add different classes to different items?

i := RadioGroup.Items.Add('some text');
RadioGroup.ItemClasses[i] := 'my-custom-class';

Such direct interface is not there.
You can use something like

TJSHTMLElement(webradiogroup1.Controls[i].ElementHandle.firstChild.setAttributet('class','myclass');

1 Like

Just a slight correction for anyone looking at this

TJSHTMLElement(webradiogroup1.Controls[i].ElementHandle.firstChild).setAttributet('class','myclass');

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.