Query 1:
How can I expand/collapse nodes of SfTreeGrid using keyboard? |
You can achieve your requirement by using Up and Down arrow key for expanding and collapsing the node in treeGrid.
Code Snippet:
| |
Query 2:
How to set focus programmatically to a TextBox which is in templated SfTreeGrid cell so I can start typing without clicking? |
You can achieve your requirement by using Left and Right arrow key to navigate the focus to previous column or next column in treeGrid.
Code Snippet:
| |
Query 3:
How can I change the default behavior of Up/Down arrows, when stepped into Combobox column? I would like Up/Down to change combobox selected item instead of move to the Prev/Next row. At the same time I want Left/Right to move focus to Prev/Next column.
| ||
Query 4:
When moving with keyboard in template column, in some cases the focus stuck to a cell and needs a mouse click to exit from that cell. Do you know what is the reason and how to prevent that?
|
You can achieve your requirement by navigating template column to another column by using Tab and Shift+Tab key.
Code Snippet:
|
The cell is not visible where pressing Down key, the currentcell value are null in CurrentCellActivate event ? |
We have considered as a defect and the fix will be included in Vol 2 main release which is scheduled to be rolled out by the end of April.
| |
To open the dropdown of combobox column by pressing enter key and navigate selected the item by Up and Down keys. ? |
You can achieve your requirement by using Enter key to open the dropdown in combobox column. Please refer the below code snippet and attached sample.
Code Snippet:
|
Hi Ivalio,
We have checked this “the cell is not visible where pressing Down key, the currentcell value are null in CurrentCellActivate event” in our source. This isn’t an issue, if the row is not in view, we can’t get the data column. So the current cell value will be null. You can resolved this problem by using dispatcher as shown like below code,
Code Snippet:
this.treeGrid.CurrentCellActivated += TreeGrid_CurrentCellActivated;
private void TreeGrid_CurrentCellActivated(object sender, CurrentCellActivatedEventArgs e) { this.Dispatcher.BeginInvoke(new Action(() => { if (this.treeGrid.SelectionController.CurrentCellManager.CurrentCell != null) { } }), DispatcherPriority.ApplicationIdle);
} |
Sample: http://www.syncfusion.com/downloads/support/forum/129425/ze/SfTreeGrid_Demo-1154339773
Please let us know if you have any query.
Regards,
Muthukumar K
Hi Ivalio,
Thanks for the update.
We have analyzed your query and we don’t have the support for CurrentCellValidating event in TreeGridTemplateColumn. Because it is possible to extend the functionality of TreeGridColumns with your own editor by using CellTemplate and EditTemplate of TreeGridTemplateColumn and so unable to identify which UI Elements needs to be focused. Could you please refer the below link,
You can achieve your requirement by using custom renderer. For more details, you can refer the below link,
Please let us know if you have any query.
Regards,Muthukumar K