Good day to all,
For a project I'm working on I've got 3 treeviews with checkbox items, each inside a different dropdownbutton, acting as filters for my data. Once the user makes his selections he'll press a button that will apply the filters. Each Tree has a root node, to allow the user to select all items.
Now, I've got a small problem, if the user doesn't interact with the dropdownbuttons, let's say he just presses the button without even clicking on any dropdown, then, in codebehind the treeviews' checkeditem collection will be null. I've tried working around it in many ways but haven't found a solution...
At first I had them all in comboboxes, I changed to dropdownbuttons thinking it would solve the situation, but it remains. If the user expands the dropdown, even if he doesn't interact with the treeview itself,then the checkditem collection will contain the items.
Is there something i can do to fix this?
Kevin
For a project I'm working on I've got 3 treeviews with checkbox items, each inside a different dropdownbutton, acting as filters for my data. Once the user makes his selections he'll press a button that will apply the filters. Each Tree has a root node, to allow the user to select all items.
Now, I've got a small problem, if the user doesn't interact with the dropdownbuttons, let's say he just presses the button without even clicking on any dropdown, then, in codebehind the treeviews' checkeditem collection will be null. I've tried working around it in many ways but haven't found a solution...
At first I had them all in comboboxes, I changed to dropdownbuttons thinking it would solve the situation, but it remains. If the user expands the dropdown, even if he doesn't interact with the treeview itself,then the checkditem collection will contain the items.
Is there something i can do to fix this?
Kevin