This is a migrated thread and some comments may be shown as answers.

[Solved] RadComboBox in FormTemplate

1 Answer 162 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Telerikuser
Top achievements
Rank 1
Telerikuser asked on 17 Jun 2009, 09:08 PM

I am using FormTemplate to edit my records from the grid. I have a RadComboBox in which I am trying to set the SelectedValue for the edit record. I am getting this error " Selection out of range"

Below is the code I am using

 

 

<telerik:RadComboBox ID="ddlFixtureZone" runat="server" class="rightcolumn" EmptyMessage="Select" AppendDataBoundItems="true"

 

 

 

 

 

EnableLoadOnDemand="true" EnableVirtualScrolling="true" Width="400px" ShowMoreResultsBox="true" SelectedValue='<%# (Container as GridItem).OwnerTableView.IsItemInserted ? "" : Eval("MyID") %>'>

 

 

<WebServiceSettings Path="~/Services/MyServices.svc" Method="MyMethos" /></telerik:RadComboBox>

Any help is appreciated.

Thanks

 

1 Answer, 1 is accepted

Sort by
0
Veli
Telerik team
answered on 19 Jun 2009, 09:00 AM
Hi Subi,

When using Load on demand feature of RadComboBox, you cannot set an initial SelectedValue for your combo. The reason for this is that the combo does not contain any items before items are requrested when the user clicks on it. You can use the SelectedText property instead.

Greetings,
Veli
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Grid
Asked by
Telerikuser
Top achievements
Rank 1
Answers by
Veli
Telerik team
Share this question
or