Hi
Iam creating a FormTemplate. And i have alot of textfields and number fields which are easily bound using the Bind("") method.
However i have some fields that are not databound and i have a color picker which cant seem to be databound (my color value may be null)
I also have a ComboBox where the selected value may no longer exist.
I think i need to manually insert the values when an Edit is started and ended. However how should i do this ?
Currently i use
I have added an example of a Bound RadTextBox and an unbound colorpicker.
Iam creating a FormTemplate. And i have alot of textfields and number fields which are easily bound using the Bind("") method.
However i have some fields that are not databound and i have a color picker which cant seem to be databound (my color value may be null)
I also have a ComboBox where the selected value may no longer exist.
I think i need to manually insert the values when an Edit is started and ended. However how should i do this ?
Currently i use
e.Item.OwnerTableView.ExtractValuesFromItem(newValues, editedItem);
Which works very well however i cant access none databound items using this, can i ?I have added an example of a Bound RadTextBox and an unbound colorpicker.
| <tr> |
| <td> |
| Kommentar</td> |
| <td> |
| <telerik:RadTextBox ID="RadTextBox6" Runat="server" |
| Width="125px" Text='<%#Bind("ingredient_comment") %>'> |
| </telerik:RadTextBox> |
| </td> |
| </tr> |
| <tr> |
| <td> |
| Farve</td> |
| <td> |
| <telerik:RadColorPicker ID="RadColorPicker1" Runat="server" |
| CurrentColorText="(Nuværende farve er {0})" NoColorText="Ingen farve" |
| PickColorText="Vælg farve" Preset="Standard" ShowIcon="True" SelectedColor='<%#Bind("ingredient_color") %>'> |
| </telerik:RadColorPicker> |
| </td> |
| </tr> |