Pink-El Posted March 22, 2016 Posted March 22, 2016 Hello, if (UnimNestedList.Selected<>nil) then UnimNestedList.Selected.Collapse(True); Collapse method call Ajax error "_cnf_" not defined I need back to the previews level of the UnimNestedList. How to do it? Dmytro Quote
bugra Posted March 22, 2016 Posted March 22, 2016 Hi There is already a back button in UnimNestedList. If you go back to previews level that should work without writing any code. If you wanna do something when click back button try UnimNestedList's OnBackClick event. Quote
Pink-El Posted March 22, 2016 Author Posted March 22, 2016 Thank you. I know about back button. I need back by code if it`s possible. Selected property of the Node does not work. Do you know another way? Quote
Sherzod Posted March 22, 2016 Posted March 22, 2016 Hi, For now try, one of the possible of fast solutions: procedure TMainmForm.UnimButton1Click(Sender: TObject); begin if UnimNestedList1.Selected.Parent<>nil then UniSession.AddJS(UnimNestedList1.JSName + '.getBackButton().fireEvent("tap")'); end; or just: UniSession.AddJS(UnimNestedList1.JSName + '.getBackButton().fireEvent("tap")'); Best regards. Quote
Pink-El Posted March 22, 2016 Author Posted March 22, 2016 Hi, For now try, one of the possible of fast solutions: procedure TMainmForm.UnimButton1Click(Sender: TObject); begin if UnimNestedList1.Selected.Parent<>nil then UniSession.AddJS(UnimNestedList1.JSName + '.getBackButton().fireEvent("tap")'); end; or just: UniSession.AddJS(UnimNestedList1.JSName + '.getBackButton().fireEvent("tap")'); Best regards. amazing... it`s working! thank you 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.