[CLOSED] textchanged not triggered

Closed
0
0

I created a usercontrol which I use in a custom combobox. This usercontrol is composed of a textbox and a checklistbox. I use the textbox to filter the content of the checklistbox using the textchanged event. The problem is that the event is only triggered when I close the combobox. Can you tell me how to trigger the text changed event?

  • You must to post comments
0
0

Hi Benjamin,

Can you please try with the latest build and verify the issue is fixed? https://www.wisej.com/builds

Best,

Levie

  • You must to post comments
0
0

Hi,

Install new development build and it does not work. Text changed is fired only when dropdown is closing.

Benjamin

  • Benjamin Guenard
    To reproduce issue, put search textbox inside a panel in below example
  • You must to post comments
0
0

Hi Benjamin,

fixed in the latest Wisej development build.

Best regards
Frank

  • You must to post comments
0
0

Adding this to the CustomUserControl should help the focus issue a bit more for your case:

private void ComboBoxWithTextBox_Load(object sender, EventArgs e)
{
this.textBox1.Focusable = true;
this.textBox1.Focus();
}

Nevertheless, it’s still an issue and we’re working on a solution for it, thanks for reporting!

Best,

Levie

  • You must to post comments
0
0

Hi Benjamin,

Can you try the sample I have attached?

Is this the issue you’re describing?

If not, it would be helpful to attach a sample so we can replicate the issue as it is on your machine!

Best,

Levie

  • Benjamin Guenard
    Sample working fine. In my case textbox is inside a panel. If i put the textbox in a panel, text_changed event is no longer triggered
  • You must to post comments
0
0

As a temporary workaround, add this code to the page with the UserComboBox control:

 

private void Page1_Load(object sender, EventArgs e)
{
    this.myDropDownControl.Focusable = true;
}

 

Let me know if this works for you!

Best,

Levie

  • Benjamin Guenard
    Hi Levie, it doesn’t work. Regards, Benjamin
  • You must to post comments
0
0

Hi Benjamin,

I was able to replicate the issue and it appears to be an issue with how the TextBox gets focus. I’ve logged the issue as #2178.  We’ll let you know when it’s fixed!

https://wisej.com/issues/

Best,

Levie

  • You must to post comments
Showing 7 results