• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# RadComboBoxItemsRequestedEventArgs类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中RadComboBoxItemsRequestedEventArgs的典型用法代码示例。如果您正苦于以下问题:C# RadComboBoxItemsRequestedEventArgs类的具体用法?C# RadComboBoxItemsRequestedEventArgs怎么用?C# RadComboBoxItemsRequestedEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



RadComboBoxItemsRequestedEventArgs类属于命名空间,在下文中一共展示了RadComboBoxItemsRequestedEventArgs类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: atiRadComboBoxSearchMessageInbox_ItemsRequested

        protected void atiRadComboBoxSearchMessageInbox_ItemsRequested(object sender, RadComboBoxItemsRequestedEventArgs e)
        {
            // TODO: we need to search "reply" text and add those messages to the results.
            RadComboBox atiRadComboBoxSearchMessageInbox = (RadComboBox)sender;
            atiRadComboBoxSearchMessageInbox.Items.Clear();
            const int TAKE = 5;
            aqufitEntities entities = new aqufitEntities();
            int itemOffset = e.NumberOfItems;
            IQueryable<Message> messagesQuery = entities.MessageRecipiants.Where( m => m.UserSettingsKey == this.UserSettings.Id ).Select( m => m.Message ).OrderBy(m => m.DateTime);
            int length = messagesQuery.Count();
            messagesQuery = string.IsNullOrEmpty(e.Text) ? messagesQuery.Where(m => m.UserSetting.Id != this.UserSettings.Id).Skip(itemOffset).Take(TAKE) : messagesQuery.Where(m => m.UserSetting.Id != this.UserSettings.Id && m.Subject.ToLower().Contains(e.Text) || m.Text.ToLower().Contains(e.Text)).Skip(itemOffset).Take(TAKE);

            Message[] messages = messagesQuery.ToArray();

            foreach (Message m in messages)
            {
                RadComboBoxItem item = new RadComboBoxItem(m.Subject);
                item.Value = "" + m.Id;
               // item.ImageUrl = ResolveUrl("~/DesktopModules/ATI_Base/services/images/profile.aspx") + "?u=" + g.UserKey + "&p=" + g.PortalKey;
                atiRadComboBoxSearchMessageInbox.Items.Add(item);
            }
            int endOffset = Math.Min(itemOffset + TAKE + 1, length);
            e.EndOfItems = endOffset == length;
            e.Message = (length <= 0) ? "No matches" : String.Format("Items <b>1</b>-<b>{0}</b> of {1}", endOffset, length);
        }
开发者ID:huaminglee,项目名称:FlexFWD,代码行数:25,代码来源:ViewATI_Messages.ascx.cs


示例2: list_ItemsRequested

 private void list_ItemsRequested(object o, RadComboBoxItemsRequestedEventArgs e)
 {
     ((RadComboBox)o).DataTextField = this.DataField;
     ((RadComboBox)o).DataValueField = this.DataField;
     ((RadComboBox)o).DataSource = BLL.Users.DataSource();
     ((RadComboBox)o).DataBind();
 }
开发者ID:zgying,项目名称:CRMWeiXin,代码行数:7,代码来源:CustomFilteringColumn.cs


示例3: atiRadComboBoxSearchFollower_ItemsRequested

        protected void atiRadComboBoxSearchFollower_ItemsRequested(object sender, RadComboBoxItemsRequestedEventArgs e)
        {
            /*
            RadComboBox atiRadComboSearchFriends = (RadComboBox)sender;
            atiRadComboSearchFriends.Items.Clear();
            const int TAKE = 5;
            aqufitEntities entities = new aqufitEntities();
            long[] friendIds = entities.UserFriends.Where(f => (f.SrcUserSettingKey == this.ProfileSettings.Id) && f.Relationship == (int)Affine.Utils.ConstsUtil.Relationships.FOLLOW).Select(f => f.SrcUserSettingKey == this.ProfileSettings.Id ? f.DestUserSettingKey : f.SrcUserSettingKey).ToArray();
            int itemOffset = e.NumberOfItems;
            IQueryable<User> friends = entities.UserSettings.OfType<User>().Where(Affine.Utils.Linq.LinqUtils.BuildContainsExpression<User, long>(w => w.Id, friendIds)).OrderBy(w => w.UserName);
            int length = friends.Count();
            friends = string.IsNullOrEmpty(e.Text) ? friends.Skip(itemOffset).Take(TAKE) : friends.Where(w => w.UserName.ToLower().StartsWith(e.Text) || w.UserFirstName.ToLower().StartsWith(e.Text) || w.UserLastName.ToLower().StartsWith(e.Text)).Skip(itemOffset).Take(TAKE);

            User[] users = friends.ToArray();

            foreach (User u in users)
            {
                RadComboBoxItem item = new RadComboBoxItem(u.UserFirstName + " (" + u.UserFirstName + " " + u.UserLastName + ")");
                item.Value = "" + u.UserName;
                item.ImageUrl = ResolveUrl("~/DesktopModules/ATI_Base/services/images/profile.aspx") + "?u=" + u.UserKey + "&p=" + u.PortalKey;
                atiRadComboSearchFriends.Items.Add(item);
            }
            int endOffset = Math.Min(itemOffset + TAKE + 1, length);
            e.EndOfItems = endOffset == length;
            e.Message = (length <= 0) ? "No matches" : String.Format("Items <b>1</b>-<b>{0}</b> of {1}", endOffset, length);
             */
        }
开发者ID:huaminglee,项目名称:FlexFWD,代码行数:27,代码来源:ViewATI_Friends.ascx.cs


示例4: list_ItemsRequested

 private void list_ItemsRequested(object o, RadComboBoxItemsRequestedEventArgs e)
 {
     ((RadComboBox)o).DataTextField = DataField;
     ((RadComboBox)o).DataValueField = DataField;
     ((RadComboBox)o).DataSource = GetDataTable("SELECT DISTINCT " + UniqueName + " FROM Customers WHERE " + UniqueName + " LIKE '" + e.Text + "%'");
     ((RadComboBox)o).DataBind();
 }
开发者ID:KungfuCreatives,项目名称:P3WebApp,代码行数:7,代码来源:MyCustomFilteringColumn.cs


示例5: drpBoard_ItemsRequested

        protected void drpBoard_ItemsRequested(object o, RadComboBoxItemsRequestedEventArgs e)
        {
            DataSet ds = objglcode.fetchComboData("FETCH_ALL_GL_CODE_FOR_REPORT", e.Text);

            DataTable dt = ds.Tables[0];
            onitemrequest(drpBoard, dt, e.NumberOfItems);


        }
开发者ID:pareshf,项目名称:testthailand,代码行数:9,代码来源:LedgerReports.aspx.cs


示例6: OnDropdownCompany_ItemsRequested

    protected void OnDropdownCompany_ItemsRequested(object o, RadComboBoxItemsRequestedEventArgs e)
    {
        string companyName = e.Text;
        if (!string.IsNullOrEmpty(companyName))
        {
            List<Company> list = new CompanyRepository().FindByName(companyName);

            ddlCompany.DataSource = list;
            ddlCompany.DataBind();
        }
    }
开发者ID:netthanhhung,项目名称:Neos,代码行数:11,代码来源:ComCanActionPopup.aspx.cs


示例7: RadComboBox1_ItemsRequested1

 protected void RadComboBox1_ItemsRequested1(object sender, RadComboBoxItemsRequestedEventArgs e)
 {
     if (e.Text == "") return;
     RadComboBox combo = (RadComboBox)sender;
     var rs = from p in ctx.Patients
              where p.FullName.StartsWith(e.Text)
              select p;
     foreach (Patient pat in rs)
     {
         combo.Items.Add(new RadComboBoxItem(pat.FullName, pat.PersonId.ToString()));
     }
 }
开发者ID:ragare62,项目名称:AriClinic,代码行数:12,代码来源:Test.aspx.cs


示例8: OnDropdownCandidate_ItemsRequested

 protected void OnDropdownCandidate_ItemsRequested(object o, RadComboBoxItemsRequestedEventArgs e)
 {
     string name = e.Text;
     if (!string.IsNullOrEmpty(name))
     {
         if(name.Length >= 3)
         {
             List<Candidate> list = new CandidateRepository().SearchCandidatesOnName(name);
             ddlCandidate.DataTextField = "FullName";
             ddlCandidate.DataValueField = "CandidateId";
             ddlCandidate.DataSource = list;
             ddlCandidate.DataBind();
         }
     }
 }
开发者ID:netthanhhung,项目名称:Neos,代码行数:15,代码来源:ComCanActionPopup.aspx.cs


示例9: ddlSchoolType_ItemsRequested

        //private const string CompetencyTrackingReport = "Competency Tracking Report";
        //private const string CompetencyTrackingReport_NoSpaces = "CompetencyTrackingReport";

        #region search criteria event

        protected void ddlSchoolType_ItemsRequested(object sender, RadComboBoxItemsRequestedEventArgs e)
        {
            this.ddlSchoolType.DataSource = null;
            this.ddlSchoolType.DataBind();

            if (this.SessionObject != null && this.SessionObject.LoggedInUser != null)
            {
                var loggedInUser = this.SessionObject.LoggedInUser;
                if (loggedInUser.Roles != null && loggedInUser.Roles.Any())
                {
                    this.ddlSchoolType.DataSource = this.ViewModel.GetAllSchoolType(loggedInUser).Select(c => new { Text = string.Format("{0}", c.Name), Value = c.Name });
                    this.ddlSchoolType.DataBind();
                }
            }
        }
开发者ID:ezimaxtechnologies,项目名称:ASP.Net,代码行数:20,代码来源:ParentStudentPortalAdministrationReport.aspx.cs


示例10: RadComboBox2_ItemsRequested

        protected void RadComboBox2_ItemsRequested(object sender, RadComboBoxItemsRequestedEventArgs e)
        {
            DataTable data = Peerfx_DB.SPs.ViewUsersAllAdminDeposits(e.Text).GetDataSet().Tables[0];

            int itemOffset = e.NumberOfItems;
            int endOffset = Math.Min(itemOffset + 10, data.Rows.Count);
            e.EndOfItems = endOffset == data.Rows.Count;

            RadComboBox rdc = (RadComboBox)sender;
            for (int i = itemOffset; i < endOffset; i++)
            {
                 rdc.Items.Add(new RadComboBoxItem(data.Rows[i]["user_info_full"].ToString(), data.Rows[i]["user_key"].ToString()));
            }

            //e.Message = GetStatusMessage(endOffset, data.Rows.Count);
        }
开发者ID:Lornestar,项目名称:pfx,代码行数:16,代码来源:Admin_Deposits.aspx.cs


示例11: cboTitular_OnItemsRequested

        protected void cboTitular_OnItemsRequested(object sender, RadComboBoxItemsRequestedEventArgs e)
        {
            using (var servico = FabricaGenerica.GetInstancia().CrieObjeto<IServicoDeTitular>())
            {
                cboTitular.Items.Clear();

                foreach (var titular in servico.ObtenhaPorNomeComoFiltro(e.Text, 50))
                {
                    var item = new RadComboBoxItem(titular.Pessoa.Nome, titular.Pessoa.ID.ToString());
                    item.Attributes.Add("DataDoCadastro", titular.DataDoCadastro.Value.ToString("dd/MM/yyyy"));
                    item.Attributes.Add("InformacoesAdicionais", titular.InformacoesAdicionais);
                    cboTitular.Items.Add(item);
                    item.DataBind();
                }
            }
        }
开发者ID:ViniciusConsultor,项目名称:petsys,代码行数:16,代码来源:ctrlTitular.ascx.cs


示例12: cboNCL_OnItemsRequested

        protected void cboNCL_OnItemsRequested(object sender, RadComboBoxItemsRequestedEventArgs e)
        {
            var ncls = NCL.ObtenhaPorCodigoComoFiltro(e.Text);

            if (ncls.Count > 0)
            {
                foreach (var ncl in ncls)
                {
                    var item = new RadComboBoxItem(ncl.Codigo, ncl.Codigo);

                    item.Attributes.Add("Descricao", ncl.Descricao);
                    item.Attributes.Add("Natureza", ncl.NaturezaDeMarca.Nome);

                    cboNCL.Items.Add(item);
                    item.DataBind();
                }
            }
        }
开发者ID:ViniciusConsultor,项目名称:petsys,代码行数:18,代码来源:ctrlNCL.ascx.cs


示例13: cboProcedimentosInternos_ItemsRequested

        protected void cboProcedimentosInternos_ItemsRequested(object sender, RadComboBoxItemsRequestedEventArgs e)
        {
            IList<ITipoDeProcedimentoInterno> listaProcedimentosInternos = new List<ITipoDeProcedimentoInterno>();

            using (var servico = FabricaGenerica.GetInstancia().CrieObjeto<IServicoDeTipoDeProcedimentoInterno>())
            {
                listaProcedimentosInternos = servico.obtenhaTipoProcedimentoInternoPelaDescricao(e.Text);
            }

            if (listaProcedimentosInternos.Count > 0)
            {
                foreach (var procedimentoInterno in listaProcedimentosInternos)
                {
                    var item = new RadComboBoxItem(procedimentoInterno.Descricao, procedimentoInterno.Id.Value.ToString());

                    item.Attributes.Add("ID", procedimentoInterno.Id.ToString());

                    cboTipoDeProcedimentosInternos.Items.Add(item);
                    item.DataBind();
                }
            }
        }
开发者ID:ViniciusConsultor,项目名称:petsys,代码行数:22,代码来源:cdTipoDeProcedimentoInterno.aspx.cs


示例14: atiRadComboBoxSearchRoutes_ItemsRequested

        protected void atiRadComboBoxSearchRoutes_ItemsRequested(object sender, RadComboBoxItemsRequestedEventArgs e)
        {
            RadComboBox atiRadComboSearchWorkouts = (RadComboBox)sender;
            atiRadComboSearchWorkouts.Items.Clear();
            const int TAKE = 5;
            aqufitEntities entities = new aqufitEntities();
            int itemOffset = e.NumberOfItems;
            IQueryable<MapRoute> routes = entities.User2MapRouteFav.Where(r => r.UserSettingsKey == UserSettings.Id).Select(w => w.MapRoute);
            routes = routes.OrderBy(r => r.Name);
            int length = routes.Count();
            routes = string.IsNullOrEmpty(e.Text) ? routes.Skip(itemOffset).Take(TAKE) : routes.Where(r => r.Name.ToLower().StartsWith(e.Text)).Skip(itemOffset).Take(TAKE);

            MapRoute[] routeArray = routes.ToArray();

            foreach (MapRoute r in routeArray)
            {
                RadComboBoxItem item = new RadComboBoxItem(r.Name);
                item.Value = "" + r.Id;
                atiRadComboSearchWorkouts.Items.Add(item);
            }
            int endOffset = Math.Min(itemOffset + TAKE + 1, length);
            e.EndOfItems = endOffset == length;
            e.Message = (length <= 0) ? "No matches" : String.Format("Items <b>1</b>-<b>{0}</b> of {1}", endOffset, length);
        }
开发者ID:huaminglee,项目名称:FlexFWD,代码行数:24,代码来源:ViewATI_Routes.ascx.cs


示例15: GetAllInvoiceTypes_Selecting

 protected void GetAllInvoiceTypes_Selecting(object sender, RadComboBoxItemsRequestedEventArgs e)
 {
     DataClasses1DataContext dbContext = new DataClasses1DataContext();
     RadComboBox rcbInvoiceType = ((RadComboBox)sender);
     rcbInvoiceType.Items.Clear();
     var types = from tp in dbContext.InvoiceTypes
                 select new { Key = tp.ID, Value = tp.InvoiceTypeName };
     rcbInvoiceType.DataSource = types;
     rcbInvoiceType.DataBind();
 }
开发者ID:HedinRakot,项目名称:KVS,代码行数:10,代码来源:LargeCustomerDetails.ascx.cs


示例16: rdcAppointmentType_ItemsRequested

 protected void rdcAppointmentType_ItemsRequested(object sender, RadComboBoxItemsRequestedEventArgs e)
 {
     if (e.Text == "")
         return;
     RadComboBox combo = (RadComboBox)sender;
     combo.Items.Clear();
     var rs = from apt in ctx.AppointmentTypes
              where apt.Name.StartsWith(e.Text)
              select apt;
     foreach (AppointmentType apt in rs)
     {
         combo.Items.Add(new RadComboBoxItem(apt.Name, apt.AppointmentTypeId.ToString()));
     }
 }
开发者ID:ragare62,项目名称:AriClinic,代码行数:14,代码来源:OphVisitForm.aspx.cs


示例17: rdcExamination_ItemsRequested

 protected void rdcExamination_ItemsRequested(object sender, RadComboBoxItemsRequestedEventArgs e)
 {
     if (e.Text == "") return;
     RadComboBox combo = (RadComboBox)sender;
     combo.Items.Clear();
     var rs = from d in ctx.Examinations
              where d.Name.StartsWith(e.Text)
                    && d.ExaminationType.Code == "biometry"
              select d;
     foreach (Examination dia in rs)
     {
         combo.Items.Add(new RadComboBoxItem(dia.Name, dia.ExaminationId.ToString()));
     }
 }
开发者ID:ragare62,项目名称:AriClinic,代码行数:14,代码来源:BiometryForm.aspx.cs


示例18: rdcProfessional_ItemsRequested

 protected void rdcProfessional_ItemsRequested(object sender, RadComboBoxItemsRequestedEventArgs e)
 {
     if (e.Text == "")
         return;
     RadComboBox combo = (RadComboBox)sender;
     combo.Items.Clear();
     var rs = from p in ctx.Professionals
              where p.ComercialName.StartsWith(e.Text)
              select p;
     foreach (Professional professional in rs)
     {
         if (!professional.Inactive)
         combo.Items.Add(new RadComboBoxItem(professional.ComercialName, professional.PersonId.ToString()));
     }
 }
开发者ID:ragare62,项目名称:AriClinic,代码行数:15,代码来源:OphVisitForm.aspx.cs


示例19: rdcVisitReason_ItemsRequested

 protected void rdcVisitReason_ItemsRequested(object sender, RadComboBoxItemsRequestedEventArgs e)
 {
     if (e.Text == "")
         return;
     RadComboBox combo = (RadComboBox)sender;
     combo.Items.Clear();
     var rs = from d in ctx.VisitReasons
              where d.Name.StartsWith(e.Text)
              select d;
     foreach (VisitReason dia in rs)
     {
         combo.Items.Add(new RadComboBoxItem(dia.Name, dia.VisitReasonId.ToString()));
     }
 }
开发者ID:ragare62,项目名称:AriClinic,代码行数:14,代码来源:OphVisitForm.aspx.cs


示例20: OnItemsRequested

 protected virtual void OnItemsRequested(object o, RadComboBoxItemsRequestedEventArgs e)
 {
     this.InitDDLInternal();
 }
开发者ID:ivladyka,项目名称:Ekran,代码行数:4,代码来源:ChoiceControlBase.cs



注:本文中的RadComboBoxItemsRequestedEventArgs类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# RadComboBoxSelectedIndexChangedEventArgs类代码示例发布时间:2022-05-24
下一篇:
C# RadComboBoxItemEventArgs类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap