|
public void ChangeCountry(Syncfusion.Blazor.DropDowns.ChangeEventArgs<string, Countries> args)
{ // First combobox component change handler
this.EnableStateDropDown = !string.IsNullOrEmpty(args.Value); // Enable the second combobox component based on value selection
this.EnableCitytDropDown = false; // Disable the combobox component.
this.StateQuery = new Query().Where(new WhereFilter() { Field = "CountryId", Operator = "equal", value = args.Value, IgnoreCase = false, IgnoreAccent = false }); // Fetch the data which contryID is same from two ComboBox this.StateValue = null; // To make the Second combobox value as null
this.CityValue = null; // To make the Third combobox value as null
}
public void ChangeState(Syncfusion.Blazor.DropDowns.ChangeEventArgs<string, State> args)
{ // Second combobox component change handler
this.EnableCitytDropDown = !string.IsNullOrEmpty(args.Value);// Enable the thrid combobox component based on value selection
this.CityQuery = new Query().Where(new WhereFilter() { Field = "StateId", Operator = "equal", value = args.Value, IgnoreCase = false, IgnoreAccent = false });// Fetch the data which StateId is same from two ComboBox this.StateValue = null; // To make the Second combobox value as null
this.CityValue = null; // To make the Third combobox value as null
} |