Items.Count

2 posts, 0 answers
  1. Kjell
    Kjell avatar
    203 posts
    Member since:
    May 2011

    Posted 17 Aug Link to this post

    How check if RadComboBox1.Items.Count = 0 on PageLoad?

    Using ItemsRequested to DataBind RadComboBox and DataBound to Footer

     

  2. Ivan Danchev
    Admin
    Ivan Danchev avatar
    829 posts

    Posted 18 Aug Link to this post

    Hello Kjell,

    In Load on Demand scenarios, which yours seems to be since you are using the ItemsRequested event, the items are not available on the server, thus RadComboBox1.Items.Count will always return 0 in the Page_Load handler. You can review the following documentation article, which provides more details on the properties that can be used on the server when the ComboBox items are loaded on demand.

    Regards,
    Ivan Danchev
    Telerik by Progress
    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top