Murali P

Murali P

  • 1.5k
  • 212
  • 21.8k

Regarding dropdownlist

May 14 2024 10:20 AM

hi ,

page having 2 dropdownlist.

i have to collect dropdownlist1 value and pass that value as param to 2nddropdownlist and sent that value to controller to fetch the details

these are kendo dropdownlists.

@(Html.Kendo().DropDownList()
    .Name("ddlDropDown2")
    .OptionLabel("Select")
    .AutoWidth(true)
    .AutoBind(false)
    .DataTextField("Key")
    .DataValueField("Value")
    .DataSource(source =>
    {
        source.Read(read =>
        {
            read.Action("GetDetails", "Common");
        });
    })
    .Enable(true)
    )

need help


Answers (2)