Hi
I have a RadColorPicker which is located within the edit FormTemplate of a Grid, the problem however is that i cant bind it directly to the data, so iam trying to update the RadColorPicker with the color when an edit is started.
This is what i tried.
I have a RadColorPicker which is located within the edit FormTemplate of a Grid, the problem however is that i cant bind it directly to the data, so iam trying to update the RadColorPicker with the color when an edit is started.
This is what i tried.
| void RadGrid_Ingredient_ItemCommand(object source, GridCommandEventArgs e) |
| { |
| GridEditableItem editedItem = e.Item as GridEditableItem; |
| (editedItem.FindControl("RadColorPicker1") as RadColorPicker).SelectedColor = e.Item.BackColor; |
| } |
Doesnt work.