Jump to content

Recommended Posts

Posted

Hello everybody

 

I am here trying to solve a problem with UniRadioGroup, I have a to select one option on UniRadioGroup later I have to clear this UniRadioGroup, but I Cant clear it, this is my example on this image:

problema1.jpg

I think that I can clean my UniRadioGroup with:

RadioEspacio.ItemIndex := -1;

But this dont work it.

Please help me, how can clear my RadioEspacio (1) like UniRadioGroup "Lugar de Publicacion" (2)

 

other memeber of this forum say it:

 uniguibbs : you can see the dynamic demo . the keypoint is insertcontrol and removecontrol.

 

and saw the dynamic demo, but this dont have anything about to clear UniRadioGroup.

 

thank you!

 

 

 

Posted
Hi memoferprof.

 

Try



uses ... UniGUIApplication ... ;





procedure TMainForm.radioGroupClearCheckedClick(Sender: TObject);
begin
//radioGroupClearChecked
UniSession.AddJS('if (Ext.get(' + UniRadioGroup1.JSName + '.items.getAt(0).getChecked()).elements[0]) {Ext.get(' + UniRadioGroup1.JSName + '.items.getAt(0).getChecked()).elements[0].setValue(false)};');
end;



Best regards.

  • Upvote 2

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...