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

RadComboBox refreshes preventing SelectedItem

2 Answers 67 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Steve Keefe
Top achievements
Rank 1
Steve Keefe asked on 19 Mar 2009, 06:24 PM
I have a vb.net 20.0 WebPage.
I'm using Telerik.Web.UI  version 2008.3.1314.20

The RadGrid on the page  contains a RadComboBox SEE DECLARATIVE CODE BELOW
I click the Add in the CommandItemDisplay, to add a new record. The RadCombo displays the right data.
After I select an item and mouse down on the insert, it resets the  RadComboBox. The item I
selected is no longer selected. Anyone know how to correct this for a RadComboBox in an EditItem Template?

Thanx
Steve


<

Columns>

 

 

<telerik:GridTemplateColumn DataField="USERNAME" HeaderText="USERNAME" UniqueName="USERNAME">

 

 

<EditItemTemplate>

 

 

<telerik:RadComboBox ID="rdUSERNAME" runat="server" DataSourceID="ODSUsers"

 

 

DataTextField="USERNAME"

 

 

DataValueField="USERID" OnSelectedIndexChanged="rdUSERNAME_SelectedIndexChanged">

 

 

<CollapseAnimation Duration="200" Type="OutQuint" />

 

 

</telerik:RadComboBox>

 

 

 

</EditItemTemplate>

 

 

<ItemTemplate>

 

 

<asp:Label ID="USERNAMELabel" runat="server" Text='<%# Eval("USERNAME") %>'></asp:Label>

 

 

</ItemTemplate>

 

 

</telerik:GridTemplateColumn>

 

 

</Columns>

 

 

</telerik:GridTableView>

 



2 Answers, 1 is accepted

Sort by
0
Accepted
Yavor
Telerik team
answered on 24 Mar 2009, 08:19 AM
Hi Steve,

I tested the setup which you mentioned, and the control behaved as expected. Attached to this message, you will find the code, which I used for testing. Take a look at it and let me know if this is the expected behavior, or if I am leaving something out.

Sincerely yours,
Yavor
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
0
Steve Keefe
Top achievements
Rank 1
answered on 25 Mar 2009, 04:13 PM
Thanx for the quick response Yavor.


The RadComboBox had AutoPostback = True...when I took that off, it worked fine...

Steve
Tags
ComboBox
Asked by
Steve Keefe
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Steve Keefe
Top achievements
Rank 1
Share this question
or