hi all,
I am working on the HTML5 tree control, how can i access the methods(C sharp) from the PCL for fetching the data. After fetching the data i need to bind to the tree control.
Please help me on this..
Thanks in advance..
Hello Madhukar,
I am just following up to check if you have any further questions regarding this scenario. If so, feel free to contact me again.
Thank you for posting in our community!
The approach used for fetching and binding data to igTree might vary accordingly to the type of project you are implementing. For instance, in MVC projects data could be passed by the model:
<%= Html.
Infragistics().
Tree().
ID("tree").
DataSource(this.Model).
SingleBranchExpand(true).
Bindings( bindings => {
bindings.
TextKey("Label").
ChildDataProperty("Products").
Bindings( bindings2 => {
bindings2.
TextKey("Name");
});
}).
DataBind().
Render()
%>
Data could be also accessed by referring URL in the dataSource field:
$("#tree").igTree({
dataSource: “Root/Url”
bindings: {
textKey: "RegionName",
valueKey: "ID",
childDataProperty: "Countries",
textKey: "CountryName",
valueKey: "ID"
}
In order to research this further could you provide me more details on your scenario? Any code snippets or a sample would be appreciated.
You might be interested in reading the following resources:
http://igniteui.com/tree/overview
http://help.infragistics.com/Doc/jQuery/2013.2/CLR4.0?page=igTree_Getting_Started.html
Look forward to hearing from you.