I have 3 dropDownList in my grid, all bind to Sql tables with SqlDatasource. The first one "Pnum" acts like I need, i.e. when a value is selected it stays there even when I re-open the record for modification. The other two "minutes" and "hours" behave in a different way, I mean every time I open the record for modification, the selected value is set to the first one in the db or nothing.
This is the good one:
These two give me the problem:
I do not see any difference that may cause such different behavior. Any hint on how to solve this problem? I mean, avoid that the value is changed when opening the record for modification.
This is the good one:
<EditFormSettings EditFormType="Template"><FormTemplate><table class="table">.........<telerik:RadDropDownList ID="RadDropDownList1" runat="server"DataSourceID="SqlDataSource2" DataTextField="Pnum" DataValueField="Pnum"SelectedValue='<%#Bind("Pnum") %>' Skin="Outlook" AutoPostBack="true"></telerik:RadDropDownList>These two give me the problem:
<telerik:RadDropDownList ID="RadDropDownList2" runat="server" DataSourceID="SqlDataSource3"DataTextField="minutes" DataValueField="minutes" SelectedValue='<%#Bind("minutes") %>'Skin="Outlook" AutoPostBack="true"></telerik:RadDropDownList><telerik:RadDropDownList ID="RadDropDownList3" runat="server" DataSourceID="SqlDataSource4"DataTextField="hours" AutoPostBack="false" DataValueField="hours"SelectedValue='<%#Bind("hours") %>' Skin="Outlook"></telerik:RadDropDownList>.......</table> </FormTemplate></EditFormSettings>I do not see any difference that may cause such different behavior. Any hint on how to solve this problem? I mean, avoid that the value is changed when opening the record for modification.