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

how to get number of items in a RadComboBox in normal web page?

2 Answers 228 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Khyati
Top achievements
Rank 1
Khyati asked on 19 Jul 2011, 08:48 AM
Hi there,

I am totally new in case of RadControls and at beginner level at the moment.
 I am just doing the first simple webpage i which I want to put a RadComboBox and with few items already in there.

When I run it I need to know at client side, how many items are there in a combo box and need to show the count in a msgbox or alert.

Can any one help me please... :D

Thank you in advance..

Khyati.

2 Answers, 1 is accepted

Sort by
0
Kalina
Telerik team
answered on 19 Jul 2011, 01:46 PM
Hi Khyati,

Please take a look at this help article. At the bottom of the page you will find an example how to get the number of the RadComboBox items at client-side using the RadComboBoxItemCollection get_count() property.

All the best,
Kalina
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Heera
Top achievements
Rank 1
answered on 26 Nov 2012, 07:10 AM
 var combo = $find("<%= Radcboactive.ClientID %>");
combo.get_items().get_count();
Tags
General Discussions
Asked by
Khyati
Top achievements
Rank 1
Answers by
Kalina
Telerik team
Heera
Top achievements
Rank 1
Share this question
or