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.

How to set selected value of PdfLoadedComboBoxField

Thread ID:

Created:

Updated:

Platform:

Replies:

107898 Mar 21,2013 02:43 PM Mar 2,2018 03:28 PM ASP.NET Web Forms (Classic) 2
loading
Tags: PDF
Jeff Gilbert
Asked On March 21, 2013 02:43 PM

I am using the Pdf component in Asp.net to programatically fill out the newly released I-9 form.
The Syncfusion Documentation says that the selectedIndex field of the PdfLoadedComboBoxField is an int, and that the selectedValue is a string.  However when I examine them in the debugger i find that the selectedIndex is int[1] and the selectedValue is a string[0].  so when I try this:
    myPdfLoadedComboBoxField.SelectedValue = 3;
I get the error:
    Cannot implicitly convert type 'int' to 'int[]'
I have also tried the following without success:
    fld.SelectedIndex[0] =7;
    fld.SelectedIndex = new int[1];
    fld.SelectedValue = "CA"
    fld.SelectedValue = new string[1]{"CA"}
Ideas?
Thanks,
Jeff

Jeff Gilbert
Replied On March 21, 2013 04:18 PM

Figured it out.  This worked:
    (Field as PdfLoadedComboBoxField).SelectedValue = new string[] {Value};

Praveenkumar H [Syncfusion]
Replied On April 1, 2013 03:09 AM

Hi Jeff,

Thank you for using Syncfusion products,

We are happy to hear that you have found the solution  to set selected value of PdfLoadedComboBoxField.

To know more information about the Pdf forms please visit the below link.


Please let us know if you have any concern,

With regards,
Praveen


CONFIRMATION

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.

;