79550887

Date: 2025-04-02 14:22:41
Score: 0.5
Natty:
Report link

@Tiny Wang

You can reproduce it with following code in a form.

 @(Html.Kendo().DropDownListFor(c => c.reg)
     .Filter(FilterType.Contains)
     .OptionLabel("Please select a region...")
     .DataTextField("RegName")
     .DataValueField("RegID")
     .Events( e=>e.Change("onRegionChange"))
     .DataSource(source =>
     {
         source.Read(read =>
         {
             read.Action("GetRegions", "Location");
         });
     })
     )

 @Html.HiddenFor(m => m.LocationId)
 @(
     Html.Kendo().DropDownListFor(c => Location)
         .Filter(FilterType.Contains)
         .OptionLabel("Please select an office...")
         .DataTextField("OfficeName")
         .DataValueField("OfficeId")
         .Events(e => e.Change("changeDefLocation"))
         .AutoBind(true)
         .DataSource(source =>
         {
             source.Read(read =>
             {
             read.Action("GetLocations", "Location").Data("additionalInfo");
             });
     })
     )


@(Html.Kendo().MultiSelectFor(m => m.OtherLocation)
    .DataTextField("OfficeName")
    .DataValueField("OfficeId")
    .DataSource(dataSource =>
    dataSource.Read(x => x.Action("GetLocationss", "Location").Data("sdaAndLocinfo"))
    .ServerFiltering(false)
    )
    .Events( x=>x.Change("OnOfficeChange"))
    .AutoBind(true)
    )
     
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @Tiny
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Gulumal