質問

I havetwo fields in my class First Name & Last Name. Currently I am displaying as two column in Kendo-Grid. But now I want it to be display like follow:

Name
-------------
Parker, Peter  //i.e. LastName,FirstName

I don't know how to do. Pls help.

役に立ちましたか?

解決

(Assuming you're using asp.net MVC server-side)
Simply add a new property to your model:

public string CombinedNames {
    get { return Lastname + ", " + FirstName; }
}

And use that property as a column in Kendo Grid.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top