memoferprof Posted January 31, 2014 Posted January 31, 2014 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: 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!
Sherzod Posted February 1, 2014 Posted February 1, 2014 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. 2
uniguibbs Posted February 4, 2014 Posted February 4, 2014 you can remove uniradiogroup, then new a new uniradiogroup . and set the position := old uniradiogroup's position.
memoferprof Posted February 4, 2014 Author Posted February 4, 2014 wow awesome! thank you Delphi Developer Now I will to try understand your excelent code. Thank you so much!!
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now