Sabu's Lead Coder
Sabu's Lead Coder

Reputation: 175

Kendo UI MVC Server Wrappers; Grid; DataSource; Model Definition - Missing Methods?

When defining a DataSource Model for a Kendo MVC Grid DataSource, I only have two methods to setup the model:

model.Field(p => p.ContractId).Editable(false);

model.Field(p => p.ContractId).DefaultValue(0);

Where are all the other methods? I need to define the membertype as when I try and process the grid filters on the server side, (using Kendo.Mvc.FilterDescriptor) The 'MemberType' is null. Hopefully this is not another dead end with Server-Wrappers. The client side equivalent DataSource allows me to define data types......(number,date,string....)

Thanks -Sabu

Upvotes: 0

Views: 1351

Answers (2)

use an attribute on your prop

[Editbale(false)]

string MyProp

Upvotes: 0

Petur Subev
Petur Subev

Reputation: 20233

The type is extraced with reflection from your field

model.Field(p => p.ContractId)

I do not think it is the problem to your real issue.

Upvotes: 1

Related Questions