Cascading combobox not refreshing after selection of first

0
0

Hi, I made a Wisej Form to capture an Address. The Form has two comboboxes of country and state and when I select a valid country, I get the list of states and set as DataSource of comboBoxStates:

private void comboBoxCountry_SelectionChangeCommitted(object sender, System.EventArgs e)
{
if (!comboBoxCountry.SelectedIndex.Equals(-1))
{
List listStates = DAL.GetStates((int)comboBoxCountry.SelectedValue);
comboBoxStates.DataSource = listStates;
comboBoxStates.SelectedIndex = -1;
}
else
{
comboBoxStates.DataSource = null;
comboBoxStates.Items.Clear();
}
}

Running on development works but when I put on production doesn’t. I already tried add Application.Update(this); or change SelectionChangeCommitted event with SelectedIndexChanged but it’s the same.

  • You must to post comments
0
0

Hi, I’m on Wisej 3.1.6 and the same version on the server. Websockets are installed. Small repro is attached, Thank you

  • You must to post comments
0
0

Hi Roberto,

The code should basically work the some on the server as in localhost.
Can you please put up a small repro case for us?
Are you running the same Wisej.NET versions on both? Do both have websockets installed?

Best regards
Frank

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.