RadListDataItem loses alignment and image

2 posts, 0 answers
  1. Noé
    Noé avatar
    13 posts
    Member since:
    Apr 2011

    Posted 31 Jul 2013 Link to this post

    Hi,

    i have a RadDropDownList programmatically filled as

    radDropDownListTempo.AutoSizeItems = true;
     
    radDropDownListTempo.Items.Add(new RadListDataItem() { Text = "Item 1", Tag = "1", Selected = true, TextAlignment = ContentAlignment.MiddleCenter, Image = global::.....Resources.Clock32, ImageAlignment =ContentAlignment.MiddleLeft});
     
    radDropDownListTempo.Items.Add(new RadListDataItem() { Text = "Item 2", Tag = "7", Selected = false, TextAlignment = ContentAlignment.MiddleCenter, Image = global::.....ResourcesClock32, ImageAlignment = ContentAlignment.MiddleLeft});
     
    radDropDownListTempo.Items.Add(new RadListDataItem() { Text = "Item 3", Tag = "-1", Selected = false, TextAlignment = ContentAlignment.MiddleCenter, Image = global::.....Resources.Clock32, ImageAlignment =ContentAlignment.MiddleLeft});
     
    radDropDownListTempo.Items.Add(new RadListDataItem() { Text = "Item 4", Tag = "-2", Selected = false, TextAlignment = ContentAlignment.MiddleCenter, Image = global::.....Resources.Clock32, ImageAlignment =ContentAlignment.MiddleLeft});
     
    radDropDownListTempo.Items.Add(new RadListDataItem() { Text = "Item 5", Tag = "-3", Selected = false, TextAlignment = ContentAlignment.MiddleCenter, Image = global::....Resources.Clock32, ImageAlignment = ContentAlignment.MiddleLeft});
     
    radDropDownListTempo.DropDownMinSize = new Size(0, (this.radDropDownListTempo.Items.Count * 32) + 2);
    radDropDownListTempo.Enabled = true;

    this are the images of the initial state and after the the popup opened.
    i have searched the entire properties in the design options and can't figure what's is wrong.

    what i am missing here ?

  2. Dess
    Admin
    Dess avatar
    1609 posts

    Posted 02 Aug 2013 Link to this post

    Hello Noé,

    Please note that in order to continue receiving support from Telerik representative, you need to provide us with the requested information in the "hiding a time slot, SchedulerNavigator element date, scroll issue, etc"  thread, which you have opened. This can be found in your Telerik account.

    Once you provide us with this information, please let us know that you have pending threads and we will address them accordingly.

    Regards,
    Desislava
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top