This is a migrated thread and some comments may be shown as answers.

Can ListPicker show empty record?

1 Answer 49 Views
ListPicker
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Vladimír
Top achievements
Rank 1
Vladimír asked on 14 Oct 2011, 02:53 PM
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

1 Answer, 1 is accepted

Sort by
0
Georgi
Telerik team
answered on 18 Oct 2011, 10:06 AM
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 >>

Tags
ListPicker
Asked by
Vladimír
Top achievements
Rank 1
Answers by
Georgi
Telerik team
Share this question
or