Jump to content

UnimNestedList Collapse method does not work


Pink-El

Recommended Posts

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
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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