silverdollar
silverdollar

Reputation: 21

KendoUI grid edit popup, how to hide field in grid

I have a kendo ui grid and I only want to show a sub-set of fields in the grid. However, all fields on the entity should show in the popup editor. I would prefer not creating a custom editor but using the one that kendo provides by default. Is there a decorator I can attach to fields to make them hidden in the grid but visible in the popup editor?

Upvotes: 1

Views: 3712

Answers (1)

OnaBai
OnaBai

Reputation: 40887

Add to the column definition in the grid the attribute hidden and set it to true

columns   : [
    { field: "Id", width: 90, hidden: true },
    { field: "FirstName", width: 90, title: "First Name" },
    { field: "LastName", width: 90, title: "Last Name" },
    { field: "Title", width: 90, title: "Title", hidden: true },
    { field: "Age", width: 50 }
]

Upvotes: 8

Related Questions