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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

pre-selecting drop down list item

Thread ID:





99547 May 26,2011 02:40 PM UTC May 30,2011 11:40 AM UTC ASP.NET Web Forms (Classic) 1
Tags: PDF
Asked On May 26, 2011 02:40 PM UTC

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 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.



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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon