Can ListPicker show empty record?

2 posts, 0 answers
  1. Vladimír
    Vladimír avatar
    3 posts
    Member since:
    Aug 2011

    Posted 14 Oct 2011 Link to this post

    Hi telerik, 

    i have problem with ListPicker control. I have collection of banks which are bind to ListPicker ItemSource. If i have SelectedItem null i need show empty record. How can i resolve this problem?

    Thanks for reply.
    Vladimir
  2. Georgi
    Admin
    Georgi avatar
    296 posts

    Posted 18 Oct 2011 Link to this post

    Hi Vladimír,

    Thank you for contacting us.

    The control is not designed to support empty values (records). Instead, you can have a special "Empty" item - e.g. at index 0 and whenever an empty value should be selected to specify that special item. For example:

    if (this.shouldSelectEmptyValue)
    {
        this.radListPicker1.SelectedIndex = 0;
    }
    else
    {
        // perform the actual selection
    }

    I hope this information is useful. Let me know if I can assist you in some other way.

    All the best,
    Georgi
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. DevCraft banner
Back to Top