Hello,
I have InPlace editing enabled and I'm using an Edit ItemTemplate in order to create validation on some of the fields using drop-down lists.
My question is how can I set the selected value on the drop-down list to be the value of the item before it was in edit mode?
The drop-down list populated correctly but by default displays the first item in the list.
It seems as though there should be SelectedValue property for the DropDownList but there isn't.
Any help is greatly appreciated.
- Joe
UOM is the name of my DataField
I have InPlace editing enabled and I'm using an Edit ItemTemplate in order to create validation on some of the fields using drop-down lists.
My question is how can I set the selected value on the drop-down list to be the value of the item before it was in edit mode?
The drop-down list populated correctly but by default displays the first item in the list.
It seems as though there should be SelectedValue property for the DropDownList but there isn't.
Any help is greatly appreciated.
- Joe
UOM is the name of my DataField
| <telerik:GridTemplateColumn UniqueName="UnitOfMeasureNative" Display="true" ItemStyle-HorizontalAlign="Center" |
| HeaderText="UOM (Native)"> |
| <ItemTemplate> |
| <asp:Label runat="server" ID="lblUnitOfMeasureNative" Text='<%# Eval("UOM") %>'> |
| </asp:Label> |
| </ItemTemplate> |
| <EditItemTemplate> |
| <asp:DropDownList runat="server" ID="ddlUOMNative" |
| DataTextField="Abbreviation" |
| DataValueField="ID" |
| DataSource='<%# Pace.Ecolink.Data.Factory.UOMFactory.GetUOMList() %>'> |
| </asp:DropDownList> |
| </EditItemTemplate> |
| </telerik:GridTemplateColumn> |