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

Can't reselect first item...

4 Answers 73 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
dstj
Top achievements
Rank 1
dstj asked on 25 Mar 2008, 08:09 PM
Hi,

There seems to be a problem with Prometheus' RadComboBox. Reselecting the first item in the list is not possible if you select another item...

You can reproduced the problem with your own online demo (Version Q3 2007 released 02/25/2008) :
http://www.telerik.com/DEMOS/ASPNET/Prometheus/Combobox/Examples/Functionality/MultiColumnCombo/DefaultCS.aspx

To reproduce :
- Using the mouse, select for example "Antonio Moreno Taquería; México D.F.; Owner".
- You can't reselect the first item "Alfreds Futterkiste; Berlin; Sales Representative". You can only select item 2 and up...

- You can do it using the keyboard, but then you'll be unable to reselect the previous item (Antonio Moreno Taquería; México D.F.; Owner) with the mouse...

Obviously, this is a big big problem for us as you can no doubt imagine.

Thanks for your help,

Dominic.

4 Answers, 1 is accepted

Sort by
0
Accepted
Rosi
Telerik team
answered on 26 Mar 2008, 08:39 AM
Hi dstj,

I understand what the problem is.

The reason for it is that all your items have equal values. I suggest you set them to different values. For an example you can edit method of our example as follows:
protected void RadComboBox1_ItemDataBound(object sender, RadComboBoxItemEventArgs e)  
        {  
            e.Item.Text = ((DataRowView)e.Item.DataItem)["CompanyName"].ToString() + "; " + ((DataRowView)e.Item.DataItem)["City"].ToString() + "; " + ((DataRowView)e.Item.DataItem)["ContactTitle"].ToString();  
            e.Item.Value = ((DataRowView)e.Item.DataItem)["CompanyName"].ToString() + "; " + ((DataRowView)e.Item.DataItem)["City"].ToString() + "; " + ((DataRowView)e.Item.DataItem)["ContactTitle"].ToString();  
        } 

Thus, every item will have the same value as its text.

This should help. Give it a try and let us known how this goes.

Regards,
Rosi
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Jean-Francois
Top achievements
Rank 1
answered on 26 Mar 2008, 12:53 PM
Hi Rosi,

your solution work fine for me.

thanks
J-Francois
0
dstj
Top achievements
Rank 1
answered on 26 Mar 2008, 01:26 PM
Thank you for the information. Might I suggest fixing your online demo and adding a little note about this? ;)
0
Veselin Vasilev
Telerik team
answered on 26 Mar 2008, 03:52 PM
Hi dstj,

We fixed the demo and it will be on the site after the next update.

Greetings,
Veskoni
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
ComboBox
Asked by
dstj
Top achievements
Rank 1
Answers by
Rosi
Telerik team
Jean-Francois
Top achievements
Rank 1
dstj
Top achievements
Rank 1
Veselin Vasilev
Telerik team
Share this question
or