does the treeview findByText method support wildcards?
For example:
searchText = "Qrtly0422"
item = treeview.findByText(searchText)
dataItem = treeview.dataItem(item)
nodeText = dataItem.text
I can find the exact node, no problem, but if I try searchText = "422" it fails to find a result but doesn't throw any errors
I noticed the datasource filter can take an operator ie: treeview.dataSource.filter({ field: "text", operator: "contains", value: nodeText })
so I tried to pass that structure to the findByText method but item will equal 0 and then the rest of the code fails with null errors.
item = treeview.findByText({ field: "text", operator: "contains", value: searchText })
Thanks.
For example:
searchText = "Qrtly0422"
item = treeview.findByText(searchText)
dataItem = treeview.dataItem(item)
nodeText = dataItem.text
I can find the exact node, no problem, but if I try searchText = "422" it fails to find a result but doesn't throw any errors
I noticed the datasource filter can take an operator ie: treeview.dataSource.filter({ field: "text", operator: "contains", value: nodeText })
so I tried to pass that structure to the findByText method but item will equal 0 and then the rest of the code fails with null errors.
item = treeview.findByText({ field: "text", operator: "contains", value: searchText })
Thanks.