We are trying to develop an RadGridView that has two possible styles/templates for each row and are toggled based on the edit status of any cell within the same row.
Two Row Styles
1) Normal/Initial Status
The row shows basic text-only details
Sample cell contents: "State - NY"
2) Cell-being-edited Status
When a cell is being edited, it will show labels, comboboxes, datepickers, etc depending on the data type
Sample cell contents: "State - [ComboBox with NY selected]"
(Only one row can be selected and one cell can be edited at any one time)
Behavior
All rows start out in status 1. If a cell is clicked on for editing, that cell and all other cells in that same row switch to status 2.
Roadblocks
We have tried using a DataTemplateSelector to do this logic, but we are having trouble with two aspects
a) What is the best property to key off of in the DataTemplateSelector.SelectTemplate function? What is best way to set the style of all cells based on the edit status of one cell?
b) How can we get DataTemplateSelector.SelectTemplate to evaluate both when a cell is edited and when editing is complete? We can get the cell to change to style 2 upon edit, but not back to style 1 one the edit is complete (CommitEdit or row loses focus)
Thanks for reading
Two Row Styles
1) Normal/Initial Status
The row shows basic text-only details
Sample cell contents: "State - NY"
2) Cell-being-edited Status
When a cell is being edited, it will show labels, comboboxes, datepickers, etc depending on the data type
Sample cell contents: "State - [ComboBox with NY selected]"
(Only one row can be selected and one cell can be edited at any one time)
Behavior
All rows start out in status 1. If a cell is clicked on for editing, that cell and all other cells in that same row switch to status 2.
Roadblocks
We have tried using a DataTemplateSelector to do this logic, but we are having trouble with two aspects
a) What is the best property to key off of in the DataTemplateSelector.SelectTemplate function? What is best way to set the style of all cells based on the edit status of one cell?
b) How can we get DataTemplateSelector.SelectTemplate to evaluate both when a cell is edited and when editing is complete? We can get the cell to change to style 2 upon edit, but not back to style 1 one the edit is complete (CommitEdit or row loses focus)
Thanks for reading