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

แชร์
ฝัง
  • เผยแพร่เมื่อ 12 พ.ย. 2024

ความคิดเห็น • 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

  • @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!!

    • @CodAffection
      @CodAffection  6 ปีที่แล้ว

      Thanks for your kind words.

  • @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.

  • @dude-ox2em
    @dude-ox2em 3 ปีที่แล้ว

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

  • @mdaminulislam6315
    @mdaminulislam6315 2 ปีที่แล้ว

    Excellent Tutorial

  • @Itsamitkban
    @Itsamitkban 4 ปีที่แล้ว

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

  • @malakohidaisuki4963
    @malakohidaisuki4963 ปีที่แล้ว

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

  • @maharudranagthane7332
    @maharudranagthane7332 3 ปีที่แล้ว

    Works like wonders for me !

  • @skilledcraftntechnology9179
    @skilledcraftntechnology9179 5 ปีที่แล้ว

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

  • @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

  • @nguyenthuongtinh130
    @nguyenthuongtinh130 3 ปีที่แล้ว

    Thank you so much !

  • @sajusamuel195
    @sajusamuel195 5 ปีที่แล้ว +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

  • @oasisoflife8454
    @oasisoflife8454 3 ปีที่แล้ว

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

  • @joaochagas916
    @joaochagas916 2 ปีที่แล้ว

    THANKS

  • @thedamagedealer
    @thedamagedealer 4 ปีที่แล้ว +1

    we can this in two lines with choosen

  • @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

  • @sandykristel4848
    @sandykristel4848 4 ปีที่แล้ว

    Thank you so much! This helped me a lot!

  • @mohamed1982
    @mohamed1982 3 ปีที่แล้ว

    This is really useful

  • @cocgameplan4892
    @cocgameplan4892 3 ปีที่แล้ว

    How to get values back in edit page?

  • @zainnabi786
    @zainnabi786 4 ปีที่แล้ว

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

  • @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)

  • @alaanagah9425
    @alaanagah9425 6 ปีที่แล้ว

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

  • @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

  • @fakirrabih2860
    @fakirrabih2860 7 ปีที่แล้ว

    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

  • @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 : th-cam.com/video/S5dzfuh3t8U/w-d-xo.html
      Please check that.

  • @hussnainsajid9974
    @hussnainsajid9974 4 ปีที่แล้ว +1

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

    • @MarcoMenino7
      @MarcoMenino7 4 ปีที่แล้ว

      You solved the problem?

  • @markbriantaytayon9993
    @markbriantaytayon9993 7 ปีที่แล้ว

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

  • @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.

  • @Nword2000
    @Nword2000 5 ปีที่แล้ว

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

  • @MASTER191285
    @MASTER191285 5 ปีที่แล้ว

    Thank you very much! it's works

    • @CodAffection
      @CodAffection  5 ปีที่แล้ว

      Glad you found the video helpful.

  • @sylvestermahinay3135
    @sylvestermahinay3135 5 ปีที่แล้ว

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

  • @Toon-Binge
    @Toon-Binge 6 ปีที่แล้ว

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

  • @ruzgarmuhendisi6173
    @ruzgarmuhendisi6173 5 ปีที่แล้ว

    thank you, it is a very very good,

  • @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

  • @tangozopo4578
    @tangozopo4578 6 ปีที่แล้ว

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

  • @LBEXP
    @LBEXP 7 ปีที่แล้ว

    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?

    • @CodAffection
      @CodAffection  7 ปีที่แล้ว

      try with break point, find exact source of error .

    • @piubhosale5608
      @piubhosale5608 6 ปีที่แล้ว

      Check your connection to database

    • @akankshadeshpande8976
      @akankshadeshpande8976 3 ปีที่แล้ว

      Same error... can anyone help?

  • @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?

  • @ehsanxwxti14
    @ehsanxwxti14 2 ปีที่แล้ว

    wow