Hello,
I'm building a MVC program.
In the view, I have a combo box:
<telerik:RadComboBox ID="RadComboBox1" runat="server"
DataSourceID="EntityDataSource1" DataTextField="data"
DataValueField="value">
</telerik:RadComboBox>
I can populate the combo box with a list of options provided by the database (through Entity).
Here is my question.
Say, in some situations, when the page is loaded, I want option 1 to be selected first; then in some other situations, when the page is loaded, I want a different option, say option 3, to be selected. And say, the situation will depend on a magic number I store in the session.
Is there anyway I can control which option to be selected when a page is loaded (without using ajax call after the page is loaded)?
Also, is there any small example to demonstrate how to control which item to be selected at the beginning, in MVC environment?
Many thanks!
I'm building a MVC program.
In the view, I have a combo box:
<telerik:RadComboBox ID="RadComboBox1" runat="server"
DataSourceID="EntityDataSource1" DataTextField="data"
DataValueField="value">
</telerik:RadComboBox>
I can populate the combo box with a list of options provided by the database (through Entity).
Here is my question.
Say, in some situations, when the page is loaded, I want option 1 to be selected first; then in some other situations, when the page is loaded, I want a different option, say option 3, to be selected. And say, the situation will depend on a magic number I store in the session.
Is there anyway I can control which option to be selected when a page is loaded (without using ajax call after the page is loaded)?
Also, is there any small example to demonstrate how to control which item to be selected at the beginning, in MVC environment?
Many thanks!