Can ListPicker show empty record?

Thread is closed for posting
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.
  2. Georgi
    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;
        // 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,
    the Telerik team

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

Back to Top