Click or drag to resize
KaxTreeViewWebServiceSettings Property
Gets the settings for the web service used to populate nodes when ExpandMode set to TreeNodeExpandMode.WebService.

Namespace: Kettic.AspNet.Controls
Assembly: Kettic.AspNet.Controls (in Kettic.AspNet.Controls.dll) Version: 2014.4.1129.0 (2014.04.1129.0)
Syntax
[PersistenceModeAttribute(PersistenceMode.InnerProperty)]
public WebServiceSettings WebServiceSettings { get; }

Property Value

Type: WebServiceSettings
An WebServiceSettings that represents the web service used for populating nodes.
Remarks

Use the WebServiceSettings property to configure the web service used to populate nodes on demand. You must specify both Path and Method to fully describe the service.

You can use the LoadingStatusTemplate property to create a loading template.

In order to use the integrated support, the web service should have the following signature:

C#
[ScriptService]
public class WebServiceName : WebService
{
    [WebMethod]
    public KaxTreeNodeData[] WebServiceMethodName(KaxTreeNodeData item, object context)
    {
        // We cannot use a dictionary as a parameter, because it is only supported by script services.
        // The context object should be cast to a dictionary at runtime.
        IDictionary<string, object> contextDictionary = (IDictionary<string, object>) context;

        //...
    }
}

See Also