[SOLVED] PropertyGrid close dropdown panel

Answered
0
0

Hello everyone! I added a custom editor with a drop-down panel that has a multi-line text box. But when I try to press Enter to go to a new line, the panel collapses. Can I invoke a collapse event on button click?

  • You must to post comments
Best Answer
0
0

Dmitry,

should be fixed now in our latest Wisej release (2.1.60).

Best regards
Frank

  • You must to post comments
0
0

Hi, everyone. Looks like problem still exists.

  • Luca (ITG)
    Yes, reopened the issue #2234.
  • You must to post comments
0
0

Hi Dmitry,

#2234 is fixed in our latest release (2.1.58).

Best regards
Frank

  • You must to post comments
0
0

Hi Dmitry,

We were actually able to replicate the issue and it’s been logged as issue #2234. The issue has been fixed and will be available in the next build!

Best,

Levie

  • You must to post comments
0
0

Multiline TextBox can  accept Enter or Tab by setting

  textBox1.AcceptsReturn = true;
  textBox1.AcceptsTab = true;

But… when in a custom combobox dropdown looks like the dropdown intercepts the Enter to close before the textarea. Will log as an issue.

Also, in your sample app you can set/get the value like this:

 var ctrl = new ButtonTextBox();
 ctrl.Value = Convert.ToString(value);
 service.DropDownControl(ctrl);
 value = ctrl.Value;

and you can close the dropdown without registering an additional event, although that works too:

 private void OK_Click(object sender, EventArgs e)
 {
    ((UserComboBox)this.Parent).DroppedDown = false;
 }

HTH

  • You must to post comments
Showing 5 results
Your Answer

Please first to submit.