2 posts, 0 answers
  1. Kjell
    Kjell avatar
    212 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
    Ivan Danchev avatar
    1302 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.

    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