Marco Pavan Posted June 18, 2020 Posted June 18, 2020 Hi, ----- Var NewNode:TUniTreeNode; begin NewNode:=UnimNestedList1.Items.Add(nil,'some text'); NewNode.Text:='new text'; // AJAX EXCEPTION ------ this simple code always raise an Ajax exception " _snatr_ is not defined" (see attached) How can I add dynamically items to a UnimNestedeList? PS: UniGui Mobile 1.90 Help!!!! Marco
Sherzod Posted June 18, 2020 Posted June 18, 2020 1 hour ago, Marco Pavan said: this simple code always raise an Ajax exception " _snatr_ is not defined" (see attached) How can I add dynamically items to a UnimNestedeList? Hi, Can you please open a ticket in the support portal? Workaround: procedure TMainmForm.UnimFormCreate(Sender: TObject); begin UniSession.AddJS('_snatr_ = function(b,c,a,e){var d=b.getStore().getNodeById(c);if(d){d.set(a,e);d.commit()}}'); end; 1
Recommended Posts