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.

Autocomplete Dropdown''s SelectedItem property

Thread ID:

Created:

Updated:

Platform:

Replies:

79880 Mar 3,2009 06:03 AM Mar 4,2009 11:09 AM Windows Forms 1
loading
Tags: GridControl
Subrata Das
Asked On March 3, 2009 06:03 AM

Hi,
In my project I have used one autocomplete control named "cmbRelationship".The functionality of this control is that on change of its selected item the below mentioned handler gets called.In this handler I check whether the SelectedItem is null or not and if its not null,I call another method which populates another dropdown.Now issue is that if I change the selection of "cmbRelationship" with the mouse in the below mentioned handler "cmbRelationship.SelectedItem" shows some value and there by I can call the LoadBODetails method but if I expand the auto complete dropdown and type something and then pick up the first/second selection and with down arrow and hit enter,cmbRelationship.SelectedItem property shows null in the below event handler which I did not expect.

private void cmbRelationship_AutoCompleteControl_AutoCompleteItemSelected(object sender, Syncfusion.Windows.Forms.Tools.AutoCompleteItemEventArgs args)
{
try
{
boRetrieve = false;
if (firstTime)
{
if(cmbRelationship.SelectedItem != null)
LoadBODetails(((Syncfusion.Windows.Forms.Tools.AutoCompleteItem)(cmbRelationship.SelectedItem)).ItemArray[0].ToString());
}
}
catch (Exception e2)
{
MessageBox.Show("Please Select Beneficial Owner","Message");
}
}

Can anybody please look into this issue asap?

Thanks & Regards,
Subrata Das


Rajadurai C [Syncfusion]
Replied On March 4, 2009 11:09 AM

Hi Subrata,

Thanks for your interest in Syncfusion products.

To get the selected value in cell, please try to set the selected value from the autocompletedropdown as cellvalue in dropdownclosing event.

Please let me know if this helps. If not, please provide a minimal sample showing issue with the used property settings.

Regards,
Rajadurai


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.

;