private void ddlCompany_SelectedIndexChanged(object sender, Telerik.WinControls.UI.Data.PositionChangedEventArgs e) { if (IsLoaded == false) { return; } if (ddlCompany.SelectedValue.ToIntorNull() != null) { ComboFunctions.FillCompanyDepartmentCombo(ddlDepartment, c => c.CompanyId == ddlCompany.SelectedValue.ToInt()); } }
private void FillDepartmentCombo(int companyId) { ComboFunctions.FillCompanyDepartmentCombo(ddlDepartment, c => c.CompanyId == companyId); }