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! Quote
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 Quote
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. Quote
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!! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.