Hi,
I have a problem where when I sort the grid (by clicking on the column header) it will sort the items but not the custom controls inside it.
I have a custom textbox inside a grid
The CmsTextBox got and TextChanged event hooked up that will change the background colour of the textbox to blue if the value has changed.
This all works fine until I start sorting. Sorting works fine but it will not move the changed CmsTextBox with it. Looks like the grid is not moving the physical controls when sorting as the values do sort but control stay at the same position.
Example: Have 5 rows 1 to 5. Each row got one column with text box, they have values 1 to 5. If I change the value in row 4 to 4.5 this textbox will go blue. Then if I sort descending the sort will work fine but the blue textbox has not moved eg will still be on the row 4 instead of row 2.
Please see the attachment picture for illustration.
Thanx
Mike
I have a problem where when I sort the grid (by clicking on the column header) it will sort the items but not the custom controls inside it.
I have a custom textbox inside a grid
<
telerik:GridViewDataColumn
Header
=
"Notes"
Width
=
"*"
IsSortable
=
"True"
SortMemberPath
=
"Notes"
>
<
telerik:GridViewDataColumn.CellTemplate
>
<
DataTemplate
>
<
Controls:CmsTextBox
Text
=
"{Binding Notes, Mode=TwoWay}"
Height
=
"23"
/>
</
DataTemplate
>
</
telerik:GridViewDataColumn.CellTemplate
>
</
telerik:GridViewDataColumn
>
The CmsTextBox got and TextChanged event hooked up that will change the background colour of the textbox to blue if the value has changed.
This all works fine until I start sorting. Sorting works fine but it will not move the changed CmsTextBox with it. Looks like the grid is not moving the physical controls when sorting as the values do sort but control stay at the same position.
Example: Have 5 rows 1 to 5. Each row got one column with text box, they have values 1 to 5. If I change the value in row 4 to 4.5 this textbox will go blue. Then if I sort descending the sort will work fine but the blue textbox has not moved eg will still be on the row 4 instead of row 2.
Please see the attachment picture for illustration.
Thanx
Mike