1. #1
    Sencha User
    Join Date
    Jan 2009
    Posts
    7
    Vote Rating
    0
    mtoddsmith is on a distinguished road

      0  

    Default Unanswered: Example of grid with multiple sort columns and ASP.NET MVC?

    Unanswered: Example of grid with multiple sort columns and ASP.NET MVC?


    Is there an example of how to use the grid with multiple sort columns and ASP.NET MVC?

    I'm stuck on the issue of mapping the sort query param to a view model of some kind:

    sort: [
    {property: 'id', direction: 'DES'}
    {property: 'name', direction: 'ASC}]

    public class Sort
    {
    public string Property { get; set; }
    public string Direction { get; set; }
    }

    public MyModel MyMethod(Sort[] sort) <= this bombs
    {
    }

  2. #2
    Sencha User
    Join Date
    Jan 2009
    Posts
    7
    Vote Rating
    0
    mtoddsmith is on a distinguished road

      0  

    Default


    I had to accept the sort input as a string and then convert it as such:

    public MyModel MyMethod(string sort)
    {
    var sorts = JsonConvert.DeserializeObject<List<Sort>> (sort);
    }

Tags for this Thread

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi