Items.Count

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

    Posted 17 Aug 2016 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
    1209 posts

    Posted 18 Aug 2016 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.
Back to Top