简体   繁体   中英

jqgrid change column sort parameter (sidx) value

I have a column in my grid named "FullName" when I click on it to sort it sends back to the server sidx:FullName.

What I would like is to be able to say " on this column on sort send back the value 'x' "

so in the above case I would click on column "FullName" and it would send to server sidx:LastName.

The reason for this is that I take that value and create a query based on it, however the property "FullName" is a generated value

public string FullNmae
    { 
       get{ return this.FirstName + " " + this.LastName; }
    } 

so "FullName" doesn't exist in my db. I need to search on the "LastName" property.

尝试设置index: LastName ,然后在对该列进行排序时应将其传递给帖子。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM