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

Telerik RadGrid Edit Form Template

3 Answers 152 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Agustin
Top achievements
Rank 1
Agustin asked on 29 Mar 2011, 04:54 PM
In the project I'm currently working we are trying to reduce the number of server calls we have to do to bind the grid since the data is coming from wcf service which implies some overhead on the overall operation.
Currently for displaying some of the information we are using the Edit Form with a template that only contains read-only fields. Is it possible to make the grid send the HTML code to the client and use a column to expand/collapse the form similar to what is shown in the Grid/Mixed Hierarchy Loading sample?
Thanks in advance for any answer.

3 Answers, 1 is accepted

Sort by
0
Mira
Telerik team
answered on 01 Apr 2011, 12:51 PM
Hello Agustin,

In order to implement the desired functionality, I recommend that you use the approach from the Client-side Insert/Update/Delete demo.

I hope this helps.

Kind regards,
Mira
the Telerik team
0
Agustin
Top achievements
Rank 1
answered on 01 Apr 2011, 02:41 PM
Mira thanks for your reply but that approach doesn't fit the needs of the project. The design that was accepted by the client implies having the detailed information of a record as row bellow. To achieve this and be consistent with that design we used the edit form template approach by making all the fields read-only.
While waiting for a response to this question I found that populating the EditIndexes collection with all the corresponding values the edit form was rendered on the client and I was thinking on using some javascript/jQuery to make those rows visible/hidden. The other problem I'm facing with that approach is that the alternating rows are not marked as such causing that all the rows look in the same way. Any suggestions? Is this approach fine? Is there any better way to do it?

Thanks in advance
0
Mira
Telerik team
answered on 06 Apr 2011, 09:52 AM
Hello Agustin,

When the RadGrid is bound client-side, no subsequent trips are made to the server and the default editors cannot be rendered. The most straightforward option to work-around this is to use an external edit form as I already have mentioned.

Please examine this help topic to see the specifics of the client-side binding of the grid.

Kind regards,
Mira
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Grid
Asked by
Agustin
Top achievements
Rank 1
Answers by
Mira
Telerik team
Agustin
Top achievements
Rank 1
Share this question
or