Exemple #1
0
 public static DropDownListBuilder SetReferenceSettings(this DropDownListBuilder ddlb, ReferenceList name)
 {
     ddlb.SetReferenceSettings()
     .DataSource(source =>
     {
         source.Custom().Type("aspnetmvc-ajax")
         .Transport(transport =>
         {
             transport.Read(read =>
             {
                 read.Action("GetReference", "Reference", new { name = name });
             });
         })
         .Schema(schema =>
         {
             schema.Data("Data").Total("Total");
         });
     });
     return(ddlb);
 }