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

SelectedIndexChange Doesn't Fire

7 Answers 100 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Kavya
Top achievements
Rank 2
Kavya asked on 14 Oct 2008, 08:50 PM
Hi

I have checked the forum but didn't find any Solution
I have 2 ComboBox in which MarkFirstMatch is true  and Allowcustom Text is fasle.
 
When i select an item from 1st Combox it doesn't fire SelectedIndex

So please let me know if there is a fix for this .Did download new Version

Thanks
Kavya

7 Answers, 1 is accepted

Sort by
0
Rosi
Telerik team
answered on 15 Oct 2008, 05:03 AM
Hello Kavya ,

I suggest you set the AutoPostBack property of the first RadComboBox to true. This should helps.


Regards,
Rosi
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Kavya
Top achievements
Rank 2
answered on 15 Oct 2008, 01:37 PM
Hi

My Bad didn't explain it properly
I already have AutoPostBack ='True' and SelectIndex is firing for all the Elements except first Item.

If i select First Item without selecting any other its doesn't fire SelectedIndex.

Kavya
0
Rosi
Telerik team
answered on 15 Oct 2008, 02:09 PM
Hi Kavya ,

That is the default behavior if you haven't set the AllowCustomText property to true. The the first item is selected by default and this is the reason for the described behavior. I suggest you set the AllowCustomText property to true and let us know how this goes.


Greetings,
Rosi
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Kavya
Top achievements
Rank 2
answered on 15 Oct 2008, 08:09 PM
Hello Rosi

Still didn't work .

Acually now i am using ItemRequested and 

EnableLoadOnDemand

="True" but do let me know what will be other option for
my previous Thread

Kavya

 

0
Rosi
Telerik team
answered on 16 Oct 2008, 06:40 AM
Hi Kavya ,

Could you please paste here the aspx definition of the control and the way you attach the SelectedIndexChanged event?

This will help us understand the problem better and provide you with a solution..

Also could you specify the version of the control that you use?

Regards,
Rosi
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Kavya
Top achievements
Rank 2
answered on 16 Oct 2008, 01:59 PM
Hi Rosi

Below is the Control

 

<radc:RadComboBox id="Radcombobox2" runat="server" Width="200px" Height="115px"

 

 

DataTextField="Text" DataValueField="Code" DataSourceID="SqlDataSource2" Skin="Brick" SkinsPath="~/RadControls/ComboBox/Skins"

 

 

AllowCustomText = "true"

 

 

 

MarkFirstMatch="True" AutoPostBack="True" OnItemDataBound="RadComboBox2_ItemDataBound" OnDataBound="RadComboBox2_DataBound">

 

 

 

</radC:RadComboBox>

OnSelectedIndexChanged i am getting the e.text value
First item you can see it in the ComboBox i cannot select it i have to seelct another item and then select first item to get the Value

The Version i am using is
2.6

 

0
Rosi
Telerik team
answered on 16 Oct 2008, 03:12 PM
Hello Kavya ,

This is the default behavior in the version that you use. The first item is choosen by default. I suggest you set

Radcombobox2.SelectedIndex = -1

in the Page_Load event handler. This should help.


Best wishes,
Rosi
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
ComboBox
Asked by
Kavya
Top achievements
Rank 2
Answers by
Rosi
Telerik team
Kavya
Top achievements
Rank 2
Share this question
or