gaponte69
gaponte69

Reputation: 1407

aspxcombobox populating on the fly

Aspxcombobox populating on the fly works fine with IE, but with others browsers, when using arrow keys for navigation, the second depended control, always has value for the first next and not for the current, so I have a bit of delay ...

Upvotes: 0

Views: 5661

Answers (2)

gaponte69
gaponte69

Reputation: 1407

To David,

Yeah it's similar to cascading DropDowns in Asp.NET webforms. Some code using callback event on the second combobox (even other control is not problem-should be similar issue):

protected void cmbCity_Callback(object source, DevExpress.Web.ASPxClasses.CallbackEventArgsBase e)
    {
    int CountryID = Convert.ToInt32(cmbCountry.SelectedIndex.ToString());

    taLocationOPP.FillByCountry(dsOPP_Tracking.tblLocation, CountryID);
    cmbCity.DataSource = dsOPP_Tracking.Tables["tblLocation"];
    cmbCity.ValueField = "iLocationId";
    cmbCity.TextField = "strLocation";
    cmbCity.DataBind();
    cmbCity.SelectedIndex = 0;


}

P.S.

cmbCountry is parent combobox...

normally I get required result, but with some delay in firefox for example..etc etc...as it's described in the posted question...

Thanks for your efforts :)

Upvotes: 1

Gary L Cox Jr
Gary L Cox Jr

Reputation: 690

Is this what you are trying to accomplish?

http://demos.devexpress.com/ASPxEditorsDemos/ASPxComboBox/ClientAPI.aspx

Upvotes: 0

Related Questions