This question is locked. New answers and comments are not allowed.
Hi All,
Great work on the MVC grid extensions (and I'm sure on the rest of your extensions)!
This is a common use case that I haven't found an example or documentation for.
When showing a list of entities in an editable grid, it is desirable to show some basic properties, but hide heavier properties until the user enters edit mode. For example, for the Customer entity, I want to simply show the Name, Phone, and Email columns in an ajax grid.
When the user clicks Edit on a row, I'd like to load the additional properties (Address, Description, Memo, etc.) and make them editable in the modal edit window.
The requirements are that the additional properties are NOT shown in the list view of the grid... and these values should NOT be loaded until Edit is clicked.
When setting up the grid, I imagine there needs to be an extra Ajax().BeforeEdit() call, where the controller will return the full details of the Customer entity:
.DataBinding(dataBinding => {
dataBinding.Ajax()
.Select("_SelectAjaxEditing", "Customer")
.Insert("_InsertAjaxEditing", "Customer")
.Update("_SaveAjaxEditing", "Customer")
.Delete("_DeleteAjaxEditing", "Customer");
.BeforeEdit("_BeforeAjaxEditing", "Customer"); // Something like this
})
Is this possible?
Great work on the MVC grid extensions (and I'm sure on the rest of your extensions)!
This is a common use case that I haven't found an example or documentation for.
When showing a list of entities in an editable grid, it is desirable to show some basic properties, but hide heavier properties until the user enters edit mode. For example, for the Customer entity, I want to simply show the Name, Phone, and Email columns in an ajax grid.
When the user clicks Edit on a row, I'd like to load the additional properties (Address, Description, Memo, etc.) and make them editable in the modal edit window.
The requirements are that the additional properties are NOT shown in the list view of the grid... and these values should NOT be loaded until Edit is clicked.
When setting up the grid, I imagine there needs to be an extra Ajax().BeforeEdit() call, where the controller will return the full details of the Customer entity:
.DataBinding(dataBinding => {
dataBinding.Ajax()
.Select("_SelectAjaxEditing", "Customer")
.Insert("_InsertAjaxEditing", "Customer")
.Update("_SaveAjaxEditing", "Customer")
.Delete("_DeleteAjaxEditing", "Customer");
.BeforeEdit("_BeforeAjaxEditing", "Customer"); // Something like this
})
Is this possible?