How do I hide the expand-collapse button ?
I have a TreeGridCheckBoxColumn and for some rows I want to hide the checkbox, how to do that ?
How to add spacing between Top most level rows only ? Children rows shouldn't have any spacing
How to scroll to a specific source object ?
How to style a columns' top level cells ?
|
How do I hide the expand-collapse button ? |
You can hide the expand/collapse button by including custom template for TreeGridExpander as shown below.
Code example :
Please refer the sample from the provided link.
| ||
|
I have a TreeGridCheckBoxColumn and for some rows I want to hide the checkbox, how to do that ? |
You can achieve this by creating TreeGridTemplateColumn with CellTemplateSelector instead of using TreeGridCheckBoxColumn.
Xaml :
CS :
Please refer the sample from the provided link.
| ||
|
How to add spacing between Top most level rows only ? Children rows shouldn't have any spacing |
We regret to let you know that we are unclear about this requirement. If possible, please revert to us more details about this requirement with an image illustration. It will be helpful for us to understand the exact requirement and to provide a prompt solution. | ||
|
How to scroll to a specific source object ? |
You can scroll programmatically to particular cell using the ScrollInView method by passing row and column index.
UG references :
| ||
|
How to style a columns' top level cells ? |
We are little unclear about top level cells you have mentioned. However, we suspect your requirement is to apply style for the cells based on some conditions. Please refer the below given help documentation to apply conditionally styles for the cells and rows in SfTreeGrid.
UG reference :
|
Please check the red marks, I want to remove this gap