Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.
The NodeTextTemplate property allows you to specify a template for the text of all TreeView nodes. Use the template’s context parameter to access an ITreeViewNodeInfo object that stores information about a node (text, level, bound data item, and so on).
The following example specifies node label text in the NodeTextTemplate:
usingSystem;
usingSystem.Collections.Generic;
publicclassComponentSet {
Lazy<List<ComponentSet>> componentSets = new Lazy<List<ComponentSet>>();
publicComponentSet(string title, string description = "", List<ComponentSet> componentSets = null) {
Title = title;
Description = description;
if (componentSets != null)
ComponentSets.AddRange(componentSets);
}
publicstring Title { get; set; }
publicstring Description { get; set; }
public List<ComponentSet> ComponentSets { get { return componentSets.Value; } }
}
usingSystem.Collections.Generic;
publicclassComponentSets {
privatestaticreadonlyList<ComponentSet> componentSets = new List<ComponentSet>() {
new ComponentSet("Components", componentSets:
new List<ComponentSet>() {
new ComponentSet("Data Grid", "The DevExpress Data Grid for Blazor allows you to display and manage data in a tabular format."),
new ComponentSet("Pivot Grid", "The DevExpress Pivot Grid for Blazor allows you to display and analyze multi-dimensional data from an underlying data source."),
new ComponentSet("Charts", "DevExpress Charts for Blazor help you transform data to its most appropriate, concise, and readable visual representation."),
new ComponentSet("Scheduler", "The DevExpress Scheduler for Blazor allows you to create, display, and edit scheduled appointments in a calendar format."),
new ComponentSet("Data Editors", "DevExpress Data Editors for Blazor include components that can be used as standalone editors or within the Data Grid edit form."),
}
)
};
publicstatic List<ComponentSet> Data { get { return componentSets; } }
}
You can also use the NodeTextTemplate to apply custom highlighting to filtered nodes. Refer to our GitHub example for implementation details: Implement Custom Filter.
The NodeTemplate property allows you to modify content for all nodes.