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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

dropdowncombo cannot set Text property after selecting

Thread ID:

Created:

Updated:

Platform:

Replies:

14178 May 20,2004 02:14 AM UTC May 21,2004 07:43 PM UTC WinForms 4
loading
Tags: Tools
Luis Guerra
Asked On May 20, 2004 02:14 AM UTC

a dropdowncombo with a multicolumn grid (grTrans) as the popupcontrol. in the event grTrans_click a try to set the dropdowncombo.text=grTrans.selectedvalue and close the popup. The dropdowncombo.text is always blank. Refuses to be set Same problem with basedropdown // get a dataset DataSet ds=PDA.GetDataSet("Select TransId,CustId,TransType from tblSoTransHeader order by 1","Orders"); this.grTrans.DataSource=ds.Tables[0]; this.grTrans.ValueMember="Transid"; this.grTrans.DisplayMember="Transid"; this.grTrans.MultiColumn=true; private void grTrans_Click(object sender, System.EventArgs e) { string a; if ( grTrans.SelectedValue != null ) { a=grTrans.SelectedValue.ToString(); this.textBox1.Text=a; // it works this.cbobase1.Text=a; // it sets the text this.comboDropDown1.PopupContainer.HidePopup(); //this.comboDropDown1.PopupControl = null; this.comboDropDown1.Text=a; // the text is not set } } I am trying to implement a multicolumn combo that shows the matching displaymeber as you type and that show the multicolum as you open it and sets the text as you click in a row. This functionality is out of the box in Infragistics without a line of code. I tried both basecombo and dropdown combo and the combo.text property does not work reliably in the basecombo (some times you can set it and some times you cannot set it) .In the dropdowncombo you cannot set the tex property if you have a sycnfusion gridlist as the popup control (needed to have th multicolumn).

Administrator [Syncfusion]
Replied On May 20, 2004 08:09 PM UTC

Hi, Please take a look at the ComboBoxBaseGridDemo sample present in the directory ...\Syncfusion\Essential Suite\2.0.5.1\Grid\Samples\Quick Start\ComboBoxBaseGridDemo, and let me know if this meets your requirements. We appreciate your interest in Syncfusion products. Regards, Guru Patwal Syncfusion, Inc.

Administrator [Syncfusion]
Replied On May 20, 2004 09:22 PM UTC

>a dropdowncombo with a multicolumn grid (grTrans) as the popupcontrol. >in the event grTrans_click a try to set the dropdowncombo.text=grTrans.selectedvalue and close the popup. >The dropdowncombo.text is always blank. Refuses to be set >Same problem with basedropdown > >// get a dataset >DataSet ds=PDA.GetDataSet("Select TransId,CustId,TransType from tblSoTransHeader order by 1","Orders"); > this.grTrans.DataSource=ds.Tables[0]; > this.grTrans.ValueMember="Transid"; > this.grTrans.DisplayMember="Transid"; > this.grTrans.MultiColumn=true; > >private void grTrans_Click(object sender, System.EventArgs e) > { > string a; >if ( grTrans.SelectedValue != null ) > { > a=grTrans.SelectedValue.ToString(); > this.textBox1.Text=a; // it works > this.cbobase1.Text=a; // it sets the text > this.comboDropDown1.PopupContainer.HidePopup(); > //this.comboDropDown1.PopupControl = null; > this.comboDropDown1.Text=a; // the text is not set > } > > } > >I am trying to implement a multicolumn combo that shows the matching displaymeber as you type and that show the multicolum as you open it and sets the text as you click in a row. This functionality is out of the box in Infragistics without a line of code. >I tried both basecombo and dropdown combo and the combo.text property does not work reliably in the basecombo (some times you can set it and some times you cannot set it) .In the dropdowncombo you cannot set the tex property if you have a sycnfusion gridlist as the popup control (needed to have th multicolumn).

Luis Guerra
Replied On May 20, 2004 09:27 PM UTC

Sorry Guru, Your example is not the same. It does not use your GridList control. I need the GridList to have multicolumns. Once you use the GridList in the listcontrol property of the combo, the text cannot be set reliably. It only gets set if you are clicking on the last visible row of the Grid. You have the same problem with the combobox.text not being set if you use the dropdowncombo. It looks as if the text gets set for a moment and then disappears.

Administrator [Syncfusion]
Replied On May 21, 2004 07:43 PM UTC

Hi Luis, Thanks for the update, and the clarification. I understand your requirements better now. We do have a MultiColumnComboBox control (yet to be released) which uses a GridListControl (which can bind to data virtually) in its dropdown. Please open an incident in DirectTrac in this regard, and I will update you there with more information. We appreciate your cooperation. Regards, Guru Patwal Syncfusion, Inc.

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.

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

;