RadComboBox default item

4 posts, 0 answers
  1. Brian
    Brian avatar
    2 posts
    Member since:
    Jul 2014

    Posted 07 Jul 2014 Link to this post

    Hello all, my first post here.

    I am using the Telerik controls in my Silverlight application.  I have a combo box with items that have been bound to the control and that appears to be working fine.  When the UI is rendered I see a small square box on that control and when I click on that combo box the top value shown is blank with a checkbox next to it.  I would like the combo box to not have any small box on the control itself and I would like to only show checkboxes, when interacting with the control, that have values.

    I have posted my code below and attached a couple of photos to show the issue.

    <telerik:RadComboBox.ItemTemplate>
      <DataTemplate>
        <Checkbox IsChecked="{Binding}" Content="{Binding}" />
      </DataTemplate>
    </telerik:RadComboBox.ItemTemplate>



  2. Kalin
    Admin
    Kalin avatar
    1208 posts

    Posted 09 Jul 2014 Link to this post

    Hi Brian,

    What I can suggest you would be to also implement a SelectionBoxTemplate which will allow to display the selected item differently.

    Hope this helps.

    Regards,
    Kalin
    Telerik
     
    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
     
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Brian
    Brian avatar
    2 posts
    Member since:
    Jul 2014

    Posted 09 Jul 2014 Link to this post

    Thanks for the response Kalin.  The SelectionBoxTemplate is a useful example but not at all really what I am looking for.
  5. Kalin
    Admin
    Kalin avatar
    1208 posts

    Posted 11 Jul 2014 Link to this post

    Hello Brian,

    Could you please share some more details on the exact scenario? The SelectionBoxTemplate will allow you to hide the CheckBox from the SelectedItem. Or you need to sometimes show it (when the selected item has some particular value) and hide it sometimes?

    I'm looking forward to your reply.

    Regards,
    Kalin
    Telerik
     
    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
     
Back to Top