Getting Hardcoded Description from a DB value

2 posts, 0 answers
  1. Skethel
    Skethel avatar
    1 posts
    Member since:
    Aug 2017

    Posted 15 Aug 2017 Link to this post

    Hello everyone.

    Currently I'm developing an application for my parents busines and I came to a problem which I can not solve.I am trying to show in the RadCombobox a description (External, Internal) depending on the value I get from SQL (1 or 2). I've try different solutions but I don't know if I am doing something wrong because I am not able to show it.


  2. Dilyan Traykov
    Dilyan Traykov avatar
    699 posts

    Posted 18 Aug 2017 Link to this post

    Hello Skethel,

    Could you please clarify where exactly you want to display the description and if its value should be based on the control's selected item or if it should be displayed for each item in the popup?

    For example, if you want the description to appear in a tooltip or above the control based on the selected item, you should modify the default control template as per your requirement.

    If you want a description for each individual item in the control's popup, you can set its ItemTemplate property to a DataTemplate of your choice. Here's an example:

            <TextBlock Text="{Binding Name}" ToolTip="{Binding Description}" />

    I hope you find these suggestions helpful. If that is not the case, however, please provide more details on your exact requirements and I will gladly assist you further.

    Dilyan Traykov
    Progress Telerik
    Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Back to Top