We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

pre-selecting drop down list item

Thread ID:





99547 May 26,2011 10:40 AM May 30,2011 07:40 AM ASP.NET Web Forms (Classic) 1
Tags: PDF
Asked On May 26, 2011 10:40 AM

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?

Pradeep Kumar R [Syncfusion]
Replied On May 30, 2011 07:40 AM

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.



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.