Cascading dropdownlist tutorial not working

6 posts, 0 answers
  1. Alicia
    Alicia avatar
    6 posts
    Member since:
    Apr 2013

    Posted 20 May 2013 Link to this post

    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.
  2. Dimiter Madjarov
    Admin
    Dimiter Madjarov avatar
    2156 posts

    Posted 21 May 2013 Link to this post

    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!
  3. UI for ASP.NET MVC is VS 2017 Ready
  4. Alicia
    Alicia avatar
    6 posts
    Member since:
    Apr 2013

    Posted 21 May 2013 Link to this post

    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
  5. Alicia
    Alicia avatar
    6 posts
    Member since:
    Apr 2013

    Posted 22 May 2013 Link to this post

    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
  6. Alicia
    Alicia avatar
    6 posts
    Member since:
    Apr 2013

    Posted 22 May 2013 Link to this post

    I just figured it out.  The controller needed to be the controller that returned the view.  

    Alicia
  7. Dimiter Madjarov
    Admin
    Dimiter Madjarov avatar
    2156 posts

    Posted 23 May 2013 Link to this post

    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!
Back to Top
UI for ASP.NET MVC is VS 2017 Ready