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

Filter dropdownlist selection values on the client side

1 Answer 686 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Bob
Top achievements
Rank 1
Bob asked on 20 Nov 2012, 10:05 PM
I wonder if it is possible to filter the selections of a drop down list on the client side. I need to do this dynamically since the DDL is used in a grid.

Basically, the idea is to remove hide items in the drop down that have been selected in the other rows of the grid. There is a small data set here, so I don't want to do a read each time.

I don't see any event that fires prior to dropdown either.

So, what event fires prior to dropdown? Also, can I prevent dropdown if some condition is meet?

thanks...

1 Answer, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 21 Nov 2012, 01:08 PM
Hello Bob,

 
I will suggest you check this jsFiddle demo, which shows how to filter a dropdownlist on some condition.

Could you please clarify what "So, what event fires prior to dropdown?" and "can I prevent dropdown if some condition is meet?" means?

You can check the supported events of the DropDownList here.


Regards,

Georgi Krustev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
DropDownList
Asked by
Bob
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Share this question
or