This is a migrated thread and some comments may be shown as answers.

Editing Grid via Popup mode (hide fields)

3 Answers 1495 Views
Grid
This is a migrated thread and some comments may be shown as answers.
AspenSquare
Top achievements
Rank 1
AspenSquare asked on 14 Nov 2012, 06:57 PM
I've enabled editing in the grid via the Popup mode. Is there a way to hide specific fields in my popup window?

I would like to hide my ID field seen in the attached image.

 

3 Answers, 1 is accepted

Sort by
0
AspenSquare
Top achievements
Rank 1
answered on 14 Nov 2012, 08:20 PM
Another question...

How can I change some of the field types in the editor? I would like a regular TextBoxFor for the Propery Code and the Square Feet (image is attached). Is that possible?

I would also like to change the Purchase date and Sale date to just DatePickerFor instead of the DateTimePickerFor.
0
AspenSquare
Top achievements
Rank 1
answered on 15 Nov 2012, 02:19 PM
Answered over at stackoverflow.

To hide a filed simply add this to the view model: [ScaffoldColumn(false)]

To change the types: [DataType(DataType.Date)] or[DataType(DataType.Text)]
0
Robert
Top achievements
Rank 1
answered on 30 Nov 2012, 01:07 PM
Alternatively, use an Editor Template.
Tags
Grid
Asked by
AspenSquare
Top achievements
Rank 1
Answers by
AspenSquare
Top achievements
Rank 1
Robert
Top achievements
Rank 1
Share this question
or