Casecade dropdown in form

[FormScript("MyModule.Customer")]
[BasedOnRow(typeof(Entities.CustomerRow))]
public class CustomerForm
{
    public String CustomerID { get; set; }
    public String CustomeraName { get; set; }

    [LookupEditor(typeof(Entities.CountryRow))]
    public Int32? CountryId { get; set; }

    [LookupEditor(typeof(Entities.CityRow), 
        CascadeFrom = "CountryId", CascadeField = "CountryId")]
    public Int32? CityId { get; set; }

    [LookupEditor(typeof(Entities.DistrictRow), 
        CascadeFrom = "CityId", CascadeField = "CityId")]
    public Int32? DistrictId { get; set; }
}

Cascade in Quick search bar - change in column.cs file


namespace Serene.Northwind.Columns
{
    using Serenity.ComponentModel;
    using Serenity.Reporting;
    using System;
    using System.ComponentModel;

    [ColumnsScript("Northwind.Customer")]
    [BasedOnRow(typeof(Entities.CustomerRow))]
    public class CustomerColumns
    {
        [EditLink, DisplayName("Db.Shared.RecordId"), Width(100)]
        public String CustomerID { get; set; }
        [EditLink, Width(250)]
        public String CompanyName { get; set; }
        [Width(150)]
        public String ContactName { get; set; }
        [Width(150)]
        public String ContactTitle { get; set; }
        [Width(60)]
        public String Region { get; set; }
        [Width(100)]
        public String PostalCode { get; set; }

        [Width(130), LookupEditor(typeof(Scripts.CustomerCountryLookup)), QuickFilter]
        public String Country { get; set; }

        [Width(120), LookupEditor(typeof(Scripts.CustomerCityLookup))]
        [QuickFilter, QuickFilterOption("cascadeFrom", "Country")]
        public String City { get; set; }



        [Width(120)]
        public String Phone { get; set; }
        [Width(120)]
        public String Fax { get; set; }
        [Width(250), EmployeeListFormatter, CellDecorator(typeof(EmployeeListDecorator))]
        public String Representatives { get; set; }
    }
}

results matching ""

    No results matching ""