protected void LoadUserPosition(int userGroupId) { var cUserPosition = new CUserPosition(); RadComboBoxUserPosition.Text = string.Empty; RadComboBoxUserPosition.DataSource = cUserPosition.GetUserPositionList(userGroupId); RadComboBoxUserPosition.DataTextField = "Name"; RadComboBoxUserPosition.DataValueField = "Value"; RadComboBoxUserPosition.DataBind(); }
protected void RadComboBoxUserGroup_OnSelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e) { LoadUserPosition(e.Value == string.Empty ? 0 : Convert.ToInt32(e.Value)); RadComboBoxUserPosition.Focus(); }