Can't reselect first item...

5 posts, 1 answers
  1. dstj
    dstj avatar
    82 posts
    Member since:
    Oct 2006

    Posted 25 Mar 2008 Link to this post

    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.
  2. Answer
    Rosi
    Admin
    Rosi avatar
    2527 posts

    Posted 26 Mar 2008 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Jean-Francois
    Jean-Francois avatar
    12 posts
    Member since:
    Mar 2008

    Posted 26 Mar 2008 Link to this post

    Hi Rosi,

    your solution work fine for me.

    thanks
    J-Francois
  5. dstj
    dstj avatar
    82 posts
    Member since:
    Oct 2006

    Posted 26 Mar 2008 Link to this post

    Thank you for the information. Might I suggest fixing your online demo and adding a little note about this? ;)
  6. Veselin Vasilev
    Admin
    Veselin Vasilev avatar
    2992 posts

    Posted 26 Mar 2008 Link to this post

    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
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017