We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exception gets thrown when using search on TreeSelect component.
Use <TitleTemplate> fragment instead of Title attribute on <TreeNode> element to reproduce the issue.
<TitleTemplate>
Title
<TreeNode>
<TreeSelect TItem="string" TItemValue="string" Style="width:100%;" @bind-Values="values" DropdownStyle="max-height:400px;overflow:auto;" Placeholder="Please select" AllowClear Multiple TreeDefaultExpandAll EnableSearch MatchedStyle="font-weight: bold"> <TreeNode TItem="string" Key="parent 1" Title="parent 1"> <TreeNode TItem="string" Key="parent 1-0" Title="parent 1-0"> <TreeNode TItem="string" Key="leaf1" Title="my leaf" /> <TreeNode TItem="string" Key="leaf2" Title="your leaf" /> </TreeNode> <TreeNode TItem="string" Key="parent 1-1" Title="parent 1-1"> <TreeNode TItem="string" Key="leaf3"> <TitleTemplate> <b Style="color:#08c;">leaf3</b> </TitleTemplate> </TreeNode> </TreeNode> </TreeNode> </TreeSelect>
object reference not set to an instance of an object
in Where.cs
Where.cs
The text was updated successfully, but these errors were encountered:
One workaround if you want to use <TitleTemplate> is to add Title as well.
<TreeNode TItem="string" Key="leaf3" Title="leaf3"> <TitleTemplate> <b Style="color:#08c;">leaf3</b> </TitleTemplate> </TreeNode>
Unfortunatelly, this is not possible if generating using TreeData, making the TreeData feature UNUSABLE.
TreeData
Sorry, something went wrong.
The problem is not present in 0.18.3
Thanks for contacting us @LukaMajcenic , set the Title parameter is the right way for searching the node with TitleTemplate.
Did you want the TreeData also support TitleTemplate?
I'm not sure that would solve anything. The whole point of TreeData is to generate tree without the need for <TreeNode>.
@pankey888 Maybe we can add a SearchExpression for custom searching.
pankey888
No branches or pull requests
Describe the bug
Exception gets thrown when using search on TreeSelect component.
Steps to reproduce (please include code)
Use
<TitleTemplate>
fragment instead ofTitle
attribute on<TreeNode>
element to reproduce the issue.Exceptions (if any)
in
Where.cs
Further technical details
The text was updated successfully, but these errors were encountered: