Bug? Combo not drawing well...

6 posts, 1 answers
  1. Celeste
    Celeste avatar
    34 posts
    Member since:
    May 2009

    Posted 20 Jan 2010 Link to this post

    Hi:

    I am using template for RadComboBox with height = 20, and then I've setted 12 items to RadComboBox. When combo is displayed, it´s not drawing well, it seems to be cutted.
    I am using 20091208 binaries. I don´t know if there´s an issue with my template or it's because with my template, items locate in a smaller space and 12 items can´t be drawn well...

    I attach sample at this url(I can't submit a support ticket): RadComboBug?

    I hope you can help me.
    Celeste.
  2. Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 20 Jan 2010 Link to this post

    Hi Celeste,

    RadComboBox has MinHeight=22 set in its default template. To workaround the problem you need to set both Height and MinHeight to the value you need.

    You cannot submit support tickets because your trial period has expired. If you have purchased RadControls from another account, you will need to ask the owner of the account to make you a licensed developer:
    http://www.telerik.com/account/licensed-developers.aspx

    Greetings,
    Valeri Hristov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. Celeste
    Celeste avatar
    34 posts
    Member since:
    May 2009

    Posted 26 Jan 2010 Link to this post

    Yes, in project I've sent, you can see that I have set height and minheight to 20.
    That´s not the issue, if it was, it should seen always wrong. In this case, it happens when combo has 12 items.
    I hope you have seen image I've sent you.

    I will open a support ticket to attach my project.

    Thanks.

    Celeste.
  4. Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 27 Jan 2010 Link to this post

    Hello Celeste,

    The Firewall prevented me from downloading your project the first time. But now I managed to get and run it.

    First I would like to strongly recommend to avoid the usage of ImplicitStyleManager - at least because this class will not be supported in the future versions of Silverlight. Second, after removing the calls to ImplicitStyleManager and setting a style on RadComboBox, the problem disappeared. Please, find attached the modified sample project.

    Greetings,
    Valeri Hristov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  5. Celeste
    Celeste avatar
    34 posts
    Member since:
    May 2009

    Posted 28 Jan 2010 Link to this post

    Thanks Valery for your quick answer, it was very helpful.
    But now I would like to know how can I apply a theme to my application without ISM?

    Celeste.
  6. Answer
    Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 28 Jan 2010 Link to this post

    Hi Celeste,

    Unfortunately there are no good options if you use Silverlight 3. I played a bit more with your project again and fortunately managed to fix the ScrollViewer problem by adding a x:Key="ScrollBarStyle" on the style for the ScrollBar. Then I replaced theming:ImplicitStyleManager.ApplyMode="Auto" attached property on the two ScrollBars inside the ScrollViewer template with Style="{StaticResource ScrollBarStyle}". Search for "VAL:" in BaseResources.xaml for my comments.

    Sincerely yours,
    Valeri Hristov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top