コード例 #1
0
        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();
        }
コード例 #2
0
 protected void RadComboBoxUserGroup_OnSelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e)
 {
     LoadUserPosition(e.Value == string.Empty ? 0 : Convert.ToInt32(e.Value));
     RadComboBoxUserPosition.Focus();
 }