Hi,
Expand-property in a TIWCGJQDynaTreeNode does not work. It's always false. What can I do?
Thank you.
Best regards
Frank.
2.0.0.3489
JQDynaTree
- Added: new methods ExecNodeCommand and "jsNodeCommand"
{$IFDEF NODEF}{$REGION 'CGDevTools - Documentation'}{$ENDIF}
/// <summary>
/// Method to execute the command.
/// <note type="note">
/// Only commands:
/// <list type="bullet">
/// <item>
/// dtnActivate
/// </item>
/// <item>
/// dtnDeactivate
/// </item>
/// <item>
/// dtnExpand
/// </item>
/// <item>
/// dtnFocus
/// </item>
/// <item>
/// dtnMakeVisible
/// </item>
/// <item>
/// dtnSelect
/// </item>
/// <item>
/// dtnToggleExpand
/// </item>
/// <item>
/// dtnToggleSelect
/// </item>
/// </list>
/// can be called directly on event (e.g: OnClick).
/// </note>
/// <note type="note">
/// The commands that are not included in the previous note, can only
/// be used in BrowserParams.
/// </note>
/// </summary>
{$IFDEF NODEF}{$ENDREGION}{$ENDIF}
procedure ExecNodeCommand(ACommand: TIWCGJQDynaTreeNodeCommands; const AParams: string = '');
{$IFDEF NODEF}{$REGION 'CGDevTools - Documentation'}{$ENDIF}
/// <summary>
/// Method return javascript code for command.
/// </summary>
{$IFDEF NODEF}{$ENDREGION}{$ENDIF}
function jsNodeCommand(ACommand: TIWCGJQDynaTreeNodeCommands; const AParams: string = ''): string;
with IWCGJQButton1.JQButtonOptions.OnClick.BrowserParams.Add do
begin
ServerName:= 'isextanded';
BrowserScript:= IWCGJQDynaTree1.Nodes.Items[1].jsNodeCommand(dtnIsExpanded);
end;
procedure TIWForm5.IWCGJQButton1JQButtonOptionsClick(Sender: TObject; AParams: TStringList);
begin
WebApplication.ShowMessage(AParams.Values['isextanded']);
end;
JQDynaTree
- Fixed: Invalid typecast on children nodes (owner)