This question is locked. New answers and comments are not allowed.
Hi,
I'm new to using the grid, and I'd appreciate some feedback and pointers on how (if possible) to do the following:
1) Add a view button link to the grid which will launch the details, either in a new page, or ideally, show the details in a panel (e.g. a partial view) above the grid.
2) Have an "add/edit" button which will do the same thing, e.g. expand an "Add/Edit" panel, and on "Save", minimize the panel and refresh the grid below.
The examples I've seen so far have all the in-form details directly inside the grid, which is not really what I want. My grid only shows a small subset of the fields, so my details/edit views contain far more details, and in fact, can be fairly complex with additional controls/pickers. (Also, I personally I don't like the "master-detail" hierarchy in grids).
Q: Do I use custom details and editor templates? (are these partial views?)
Q: Do these render inside the grid?
Q: How do I get them to render outside of the grid? (e.g. as a panel above the grid)... Or more basically, what if I wanted to launch a new
Action Method (passing in the row id) to a new page?
Q: If I can't get it to render outside of the grid, what should I do? Do I use client-side events (e.g. OnEdit) and do my magic in the OnEdit function? Any code samples on this? At this point, I guess once I get the row Id out from the OnEdit event, I'm not really using the Telerik Grid anymore.
Thank you,
Ray
I'm new to using the grid, and I'd appreciate some feedback and pointers on how (if possible) to do the following:
1) Add a view button link to the grid which will launch the details, either in a new page, or ideally, show the details in a panel (e.g. a partial view) above the grid.
2) Have an "add/edit" button which will do the same thing, e.g. expand an "Add/Edit" panel, and on "Save", minimize the panel and refresh the grid below.
The examples I've seen so far have all the in-form details directly inside the grid, which is not really what I want. My grid only shows a small subset of the fields, so my details/edit views contain far more details, and in fact, can be fairly complex with additional controls/pickers. (Also, I personally I don't like the "master-detail" hierarchy in grids).
Q: Do I use custom details and editor templates? (are these partial views?)
Q: Do these render inside the grid?
Q: How do I get them to render outside of the grid? (e.g. as a panel above the grid)... Or more basically, what if I wanted to launch a new
Action Method (passing in the row id) to a new page?
Q: If I can't get it to render outside of the grid, what should I do? Do I use client-side events (e.g. OnEdit) and do my magic in the OnEdit function? Any code samples on this? At this point, I guess once I get the row Id out from the OnEdit event, I'm not really using the Telerik Grid anymore.
Thank you,
Ray