Hi All,
I want remove Expander Indicator space from XamTreeGrid as we have requirement where we are binding XamTreeGrid with all Parent level records only and some time we are binding it with hierarchical data. I want to remove the space taken by Expander Indicator. Can someone suggest a way for this. Attached is the image marked with red box want to remove that marked space. It is WPF.
Thanks
Manoj Gupta.
Hi Team,
Can someone please update on this?
Thanks,
Hello Manoj,
I am looking into this requirement. We dont have anything built for that but i am discussing this matter with the team and would update you.
I discussed with the team so if your data isn't hierarchical -you can use the XamDataGrid, as it won't have that extra space. But that would require you to switch out the XamTreeGrid and XamDataGrid based on whether or not the data was hierarchical.
Another option would be to retemplate the default style. The default style file is ‘DataPresenterGeneric_Express.xaml’ which is placed in the DefaultStyles\DataPresenter folder ,I used snoop to find you would have to retemplate the expansion indicator and set visibility property to collapse instead of hidden.
So if you open the ‘DataPresenterGeneric_Express.xaml’ file ExpansionIndicator code is placed at 468.
Let me know if you have any question.