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

Edit Template with multiple rows

5 Answers 98 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Priya
Top achievements
Rank 1
Priya asked on 01 Aug 2012, 02:13 PM
Hi,

I have radgrid,for which I am using inbuilt edit functionality.
Edit Template contains some controls along with the Button. on click of this button,another set of same controls should be added in the edit template. Please refer edittemplate.png and edittemplate1.png 


Also after saving these detail from Edit template we need to display TWO record inside the RadGrid row.Please refer radgrid.png

5 Answers, 1 is accepted

Sort by
0
Kostadin
Telerik team
answered on 03 Aug 2012, 02:31 PM
Hi Priya,

I was not able to understand what exactly is the problem. Are you trying to achieve this scenario that you described or you have some issue with resolving with it? You can read more about custom edit forms in this help topic:
http://www.telerik.com/help/aspnet-ajax/grid-custom-edit-forms.html

Greetings,
Kostadin
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Priya
Top achievements
Rank 1
answered on 05 Aug 2012, 05:02 AM
Hi Telerik Team,
Thanks for reply.
The Scenario I have explained is the one we are trying to achieve.
Can you please explain,can we achieve this using Telerik RadGrid?
Also we have a second scenario,where after saving those TWO set of data from Edit Template we need to Display in grid as a child rows for main grid row.
Please refer the attachments.

0
Kostadin
Telerik team
answered on 08 Aug 2012, 12:19 PM
Hello Priya,

This scenario is not supported in RadGrid. What I can suggest you is to use editing with external form. In this case you cancel the default edit/insert command and load the edited/inserted data in the external form. You can take a look at this demo to see how to implement it.
ttp://demos.telerik.com/aspnet-ajax/ajax/examples/manager/dynamicajaxsettings/defaultcs.aspx?product=grid

Additionally you can check this demo for more information about how to create template edit form.
http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/templateformupdate/defaultcs.aspx

As for displaying the records you could use grouping thus you can show all records for each day together. You could find a demo about grouping here: http://demos.telerik.com/aspnet-ajax/grid/examples/groupby/expressions/defaultcs.aspx

Greetings,
Kostadin
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Ram
Top achievements
Rank 1
answered on 14 Aug 2012, 04:24 PM
I'm having the same requirement. Telerik grid to display child records. (or group the first and second columns).  any code samples please?
0
Kostadin
Telerik team
answered on 15 Aug 2012, 02:49 PM
Hello Ram,

As explained in my previous post you can group the items in the grid by some criteria. Take a look at this demo to see how GroupByExpressions can be used in Telerik RadGrid.

Greetings,
Kostadin
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Grid
Asked by
Priya
Top achievements
Rank 1
Answers by
Kostadin
Telerik team
Priya
Top achievements
Rank 1
Ram
Top achievements
Rank 1
Share this question
or