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

Cascading dropdownlist tutorial not working

5 Answers 326 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Alicia
Top achievements
Rank 1
Alicia asked on 20 May 2013, 07:06 PM
Hi,

I'm new to HTML 5.  I started with the cascading dropdownlist with ASP.NET MVC example and the .cshtml and .cs files.  However, the first dropdownlist is not populating.  I watched the steps in the debugger but it is not hitting the script.  What am I missing?  How do I associate the .cs file with the .cshtml.  I made some minor change in the .cs file to display hard coded data but the methods are not being called.

Any help would be greatly appreciated.

5 Answers, 1 is accepted

Sort by
0
Dimiter Madjarov
Telerik team
answered on 21 May 2013, 09:10 AM
Hello Alicia,


I am not sure what exactly is causing the issue in the current implementation. Please take a look at the following documentation page, which demonstrates how to get started with the Kendo UI DropDownList for ASP.NET MVC. The demo about cascading DropDownLists may also be helpful.

If you are still experiencing any issues, please send me a small sample project, so I could inspect it locally and assist you further. I am looking forward to hearing from you.

 

All the best,
Dimiter Madjarov
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Alicia
Top achievements
Rank 1
answered on 21 May 2013, 08:54 PM
Thanks for getting back to me.  I was able to populate the first dropdownlist but now I can't get the second one to work.  I'm sending you the project so that you can take a look at it.  Any help would be greatly appreciated.

Alicia
0
Alicia
Top achievements
Rank 1
answered on 22 May 2013, 07:28 PM
I still can't figure this out:

.DataSource(source => source.Read(read => read.Action("GetCascadeOrders", "College")
                                                            .Data("filterOrders"))
                                          .ServerFiltering(true))

It's not hitting the method.   I have a Controller called CollegeController with the exact code from the cascading dropdownlist example.  What am I missing?

Alicia
0
Alicia
Top achievements
Rank 1
answered on 22 May 2013, 07:36 PM
I just figured it out.  The controller needed to be the controller that returned the view.  

Alicia
0
Dimiter Madjarov
Telerik team
answered on 23 May 2013, 10:32 AM
Hi Alicia,


I am glad that you managed to solve the issue. Do not hesitate to contact us if you need further assistance.
 

Have a great day! 

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