Asp.Net MVC - Searchable and Multi-select Drop DownList Using Chosen Plugin

Поделиться
HTML-код
  • Опубликовано: 10 сен 2024
  • 🍒 Related Videos
    Asp.Net Core MVC CRUD Operations: • Asp.Net Core MVC CRUD ...
    MVC Login & User Registration: • Asp.Net Core MVC & Ide...
    Convert MVC App to Single Page(jQuery Ajax): • jQuery Ajax CRUD in AS...
    Expense Tracker App in Asp.Net Core MVC: • Build an Expense Track...
    More MVC Tutorials: • Asp.Net Core MVC Tutorial
    Chosen Plugin Official Website: harvesthq.gith...
    📂 GitHub Repository
    ► goo.gl/bshbEo
    💖 Channel Support
    ➤ Paypal: bit.ly/3L36ut4
    ➤ UPI App: geni.us/ScanQR...
    ➤ Amazon: geni.us/Amazon...
    💌 For Business Inquiries
    ➤ codaffection@gmail.com
    🚶‍♂️ Follow us
    Facebook : / codaffection
    Discord : / discord
    Twitter : / codaffection
    ---
    Asp.Net MVC - Searchable and Multi-select Drop DownList Using Chosen Plugin
    In this video, we will create searchable and multi-select drop down in asp.net MVC using chosen plugin
    Content.
    1. Create Normal Html Dropdown in asp.net MVC using HTML.dropdownlistfor.
    2. Convert normal dropdown to searchable dropdown using chosen plugin
    3. Create Html Multi-Select Drop Down in asp.net MVC using Html.ListBoxFor and MultiList Class.
    4. Convert Multi-Selec6t Drop Down into chosen multi-select dropdown.
    #AspNetMvc #CodAffection

Комментарии • 57

  • @CodAffection
    @CodAffection  7 лет назад

    goo.gl/bPcyXW : Buy me a Coffee
    bit.ly/36IA1cH : AspNet Core MVC CRUD Operations
    bit.ly/3Pn2S7y : Expense Tracker App in AspNet Core MVC
    bit.ly/2yEPlpB : Convert MVC App to Single Page(jQuery Ajax)
    bit.ly/403lUVC : MVC Login & User Registration
    bit.ly/39B6xdh : Image Upload in AspNet Core MVC
    bit.ly/30fPDMg : More MVC Tutorials

  • @dude-ox2em
    @dude-ox2em 3 года назад

    You are legend dude. Hats off to your Knowledge. May God bless u

  • @2223jason
    @2223jason 6 лет назад +1

    Great video of how to do a somewhat complicated thing! Thank you for putting this on youtube for anyone to watch and learn from!! I struggled at first, but this works!!

  • @UMARZONE
    @UMARZONE 6 лет назад +1

    I have implement use of Select2 instead of chosen and was badly stuck with multiple select list implementation in my application. Thanks you really saved my time and helped me a lot. Thanks and excellent tutorial. I have subscribed to your channel.

    • @CodAffection
      @CodAffection  6 лет назад

      Thanks for your kind words. I appreciate that.

  • @Itsamitkban
    @Itsamitkban 4 года назад

    Thank you so much. Very well explained. It was very helpful. Hats off.

  • @skilledcraftntechnology9179
    @skilledcraftntechnology9179 4 года назад

    Amazing. Very succinct and exactly what I've been looking for, for weeks!

  • @hussnainsajid9974
    @hussnainsajid9974 3 года назад +1

    didn't work for me I don't even get any error but nothing changed too...

  • @mdaminulislam6315
    @mdaminulislam6315 Год назад

    Excellent Tutorial

  • @sachin_kakade
    @sachin_kakade 4 года назад

    when clicked on the save button while using Multiple drop down feature, it is not storing the selected values in an array and posting back to controller, i can see only null values being passed instead to the array, Please help!
    also can I have checkbox for multi-select, and I also want to display values when selected as comma separated values instead of multiple buttons displayed inside the drop down field

  • @sajusamuel195
    @sajusamuel195 4 года назад +1

    This video was really helpful , thank you for uploading the same.

  • @milestonetrucks9588
    @milestonetrucks9588 2 года назад

    Why can I use [HttpPOST] but not [NotMapped] as Node Mapper ? NotMapped could not be found

  • @malakohidaisuki4963
    @malakohidaisuki4963 Год назад

    Hi, how to allow user to type non-existing value so that we can add thw value on the fly?

  • @hylazpanda
    @hylazpanda 2 года назад

    what if i dont want to show id on the sql what if i want to show string values what should i do

  • @maharudranagthane7332
    @maharudranagthane7332 3 года назад

    Works like wonders for me !

  • @2023AllInOneEntertainment
    @2023AllInOneEntertainment 5 лет назад +1

    Hi sir
    After adding MultiSelectList, I am getting error "The parameter 'expression' must evaluate to an IEnumerable when multiple selection is allowed".

    • @2023AllInOneEntertainment
      @2023AllInOneEntertainment 5 лет назад

      @Html.ListBoxFor(model => model.USER_ID, new MultiSelectList(Model.UserCollection, "USER_ID", "DISPLAY_NAME"), new { id = "multiSelectDropDown", multiple="multiple" })
      My code

  • @meghamisra5622
    @meghamisra5622 5 лет назад

    how can i do this with database table. I have sql query and dont know how to use in Linq. in this query if i select department then related workstation populate in the second drop down with check boxes.
    SELECT DISTINCT Department.Name, Workstations.Name from Department
    inner join Workstations on Department.ID = Workstations.DepartmentID
    AND Department.id = ( CASE WHEN Department.id IN (5) THEN Workstations.DepartmentID End)

  • @TVMaryam
    @TVMaryam 4 года назад

    at 10:55 I'm getting the following errors : "CS1031: "The name "Html" does not exist in the current context". The same applies for "Model".
    I've been stuck for some time and been looking for solution with no result.

    • @wumwum1763
      @wumwum1763 4 года назад +1

      I also got the same problem as you, but i managed to fix it by turn off the visual studio and turn it on again, and don't open the page.

  • @joaochagas916
    @joaochagas916 2 года назад

    THANKS

  • @sandykristel4848
    @sandykristel4848 4 года назад

    Thank you so much! This helped me a lot!

  • @nguyenthuongtinh130
    @nguyenthuongtinh130 3 года назад

    Thank you so much !

  • @oasisoflife8454
    @oasisoflife8454 3 года назад

    How to get the Selected Value text as separated by comma. Plz help

  • @alaanagah9425
    @alaanagah9425 6 лет назад

    Thank you very much, It's very useful ..

  • @mohamed1982
    @mohamed1982 3 года назад

    This is really useful

  • @thedamagedealer
    @thedamagedealer 4 года назад +1

    we can this in two lines with choosen

  • @zielikfighter8590
    @zielikfighter8590 3 года назад

    Hi, what if the project is in .Net5 and it doesn't have ADO.NET Entity Data Model, is there an alternative?

    • @CodAffection
      @CodAffection  3 года назад

      .NET 5 CRUD is discussed here : ruclips.net/video/S5dzfuh3t8U/видео.html
      Please check that.

  • @Toon-Binge
    @Toon-Binge 6 лет назад

    after refreshing the database the new property that you add are gone every time when i refresh the database

  • @Nword2000
    @Nword2000 5 лет назад

    There no such a thing as DBModel for me, any help ?

  • @fakirrabih2860
    @fakirrabih2860 6 лет назад

    Thank you this is very helpful and informative, however how to implement the plugin in chat c# code using SignalR we want to get AspNetUser and Groups please help.

  • @assemcodechannel
    @assemcodechannel 4 года назад

    Please can You Explain How to Show SelectedEmployeesIDs as a Names not a Values in the View Page ???? thanks a lot

  • @MASTER191285
    @MASTER191285 5 лет назад

    Thank you very much! it's works

  • @cocgameplan4892
    @cocgameplan4892 2 года назад

    How to get values back in edit page?

  • @markbriantaytayon9993
    @markbriantaytayon9993 6 лет назад

    may i know how to change chosen dropdown height?? thank you

  • @ruzgarmuhendisi6173
    @ruzgarmuhendisi6173 5 лет назад

    thank you, it is a very very good,

  • @ehsanxwxti14
    @ehsanxwxti14 Год назад

    wow

  • @sylvestermahinay3135
    @sylvestermahinay3135 5 лет назад

    Thanks bro... But I have a problem when I use it on the modal view

  • @tangozopo4578
    @tangozopo4578 5 лет назад

    How do we search using datepicker in mvc?? Anyone with a link or can codeAffection do another video.

  • @zainnabi786
    @zainnabi786 3 года назад

    How do I implement in .net core...thank you

  • @LBEXP
    @LBEXP 6 лет назад

    Hello,
    I did everything what you've shown in your video, but I've got a error like Object reference not set to an instance of an object.
    Object reference not set to an instance of an object. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
    Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
    Source Error:
    Line 14: Select Employee
    Line 15: @*Normal DropDown*@
    Line 16: @Html.DropDownListFor(model => model.SelectedEmployeeIDs, new SelectList(Model.EmployeeCollection, "EmployeeID", "Name"), new { id = "normalDropDown"})
    Line 17:
    Line 18:
    Source File: E:\VS_ASP_APPS\ChoseninMvc\ChoseninMvc\Views\Employee\AddOrEdit.cshtml Line: 16
    Can you please help me fixed this errors?

  • @iyliamajid730
    @iyliamajid730 4 года назад

    Does anyone get the same problem as me ?
    System.ArgumentNullException: 'Value cannot be null.
    Parameter name: items'

    • @Selvakumar-ti3gu
      @Selvakumar-ti3gu 4 года назад

      Check on the values from list and then check the Nullable Condition

    • @akankshadeshpande8976
      @akankshadeshpande8976 3 года назад

      hey is it solved?? and if yes then can you share the solution?

  • @meghamisra5622
    @meghamisra5622 5 лет назад

    Can I combined two tables in one multi selected drop down? I need to use this for one of my project.

    • @CodAffection
      @CodAffection  5 лет назад

      yes, just join them into one collection first.

    • @meghamisra5622
      @meghamisra5622 5 лет назад

      @@CodAffection Thanks for your reply. how can I write this query in Linq
      (SELECT concat ( Employee.Name , ' - ' , Department.Name) As SUBDEP
      FROM Workstations
      JOIN Employee ON Employee.ID = Department.ID
      )
      both table do not have connection