This is a migrated thread and some comments may be shown as answers.

Items.Count

1 Answer 106 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Kjell
Top achievements
Rank 1
Iron
Kjell asked on 17 Aug 2016, 09:52 AM

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

Using ItemsRequested to DataBind RadComboBox and DataBound to Footer

 

1 Answer, 1 is accepted

Sort by
0
Ivan Danchev
Telerik team
answered on 18 Aug 2016, 12:20 PM
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.
Tags
ComboBox
Asked by
Kjell
Top achievements
Rank 1
Iron
Answers by
Ivan Danchev
Telerik team
Share this question
or