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

Insert Empty Row after every group of rows

3 Answers 287 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Farhan
Top achievements
Rank 1
Farhan asked on 05 Mar 2012, 06:05 PM
Hi,
   I am using an Object Data source to bind Radgrid on my page to a List<OrderDTO>   . This is a list of Order DTO (classes) that is each order for customers that I get from the business Layer, I want to insert a blank row in the grid after every date, so the orders for each day are visually seperated and easier to read for the user in the grid. I am not sure how to do this can someone let me know whats the best way to achieve this? If possible please provide sample code for a simple example, your helps appreciated thanks

3 Answers, 1 is accepted

Sort by
0
Radoslav
Telerik team
answered on 08 Mar 2012, 11:04 AM
Hello Farhan,

Unfortunately the RadGrid does not support the desired functionality. The RadGrid is a databound control meaning that is can display only what it is bound to. In other words - you need to add a new row to the grid datasource and rebind the control in order to be able to show a new row in it then the RadGrid will create the corresponding row automatically. Additionally in your case you could try using the group footer item, which is shown after each group:
 http://demos.telerik.com/aspnet-ajax/grid/examples/groupby/groupfooter/defaultcs.aspx

Please give it try and let me know if it helps you. Looking forward for your reply.

Greetings,
Radoslav
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
Farhan
Top achievements
Rank 1
answered on 09 Mar 2012, 03:39 PM
Hi Radoslav can you send the link again the one you posted is not working and I get  a

"Oops...It seems there was a problem with our server."    

message when i click on it

0
Radoslav
Telerik team
answered on 13 Mar 2012, 10:14 AM
Hello Farhan,

I am sending you the link again:
http://demos.telerik.com/aspnet-ajax/grid/examples/groupby/groupfooter/defaultcs.aspx

Please check it out and let me know if it helps you.

Greetings,
Radoslav
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
Farhan
Top achievements
Rank 1
Answers by
Radoslav
Telerik team
Farhan
Top achievements
Rank 1
Share this question
or