You can easily map and apply the Html Attribute to TreeView items by using HtmlAttributes property in TreeViewModel class.
For applying the Html Attribute to the TreeView items, you have to configure some of the following properties in TreeView model.
Note: When LoadOnDemand is required, enable “LoadOnDemand” and assign “RequestMapper” value.
The value of HtmlAttributes should be in the following format,
Example: “style=background-color: red; font-weight: bold; height: 21px; “
Example: “style=background-color: red; font-weight: bold;, height= 21px, width=100px”
Sample Table Data:
Figure 1: Sample Table Data
Refer to the following code example for SQL Data Binding.
Refer to the following code example for TreeView SQL Data binding with LoadOnDemand.
This page will automatically be redirected to the sign-in page in 10 seconds.