pre-selecting drop down list item

Hello, In the previous version of Syncfusion I was able to select an item for a PdfLoadedListFieldItem like this.

i.e. item.SelectedIndex = 3;

but after the latest update to syncfusion, SelectedIndex does not expect an int anymore. It now expects an int[] (int array). Is this an error or was this intended. If it is correct, how can I preselect a single item from the drop down list?




1 Reply

PK Pradeep Kumar R Syncfusion Team May 30, 2011 11:40 AM UTC

Hi Theo,

Thank you for your interest in Syncfusion Products.

It is not an error and it is intended to use multiple selection of items. You can preselect an item by using integer array.

For example:

int[] index= new int [1];
index[0] = 1;
listField.SelectedIndex = index;

Please refer to the below link for more details Sample586529092.zip

Please let me know if you have any questions.

Thanks
Pradeep


Loader.
Up arrow icon