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

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...