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

RadGrid Add Custom Row after databind

1 Answer 135 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Big
Top achievements
Rank 1
Big asked on 13 Jun 2012, 08:21 PM
I have an entity with values and bind it to a RadGrid that uses GridBoundColumn for all columns.

everything comes back great.

i need to add a custom row.   in that custom row the first cell needs to have a colspan of 3  then the rest can follow in order.

Below is the simple bind I do and it brings back the detail rows from the entity.

How can add a new row........

colspan the cells I want within that row

apply a total from the column i want from the GridBoundColumn within that custom row cell.

                grdInfo.Setup(false, true, true);
                grdInfo.ClientSettings.Selecting.AllowRowSelect = true;
                grdInfo.DataSource = Solution.Detail;
                grdInfo.DataBind();

Thanks In advance

1 Answer, 1 is accepted

Sort by
0
Radoslav
Telerik team
answered on 18 Jun 2012, 08:54 AM
Hello Big,

Unfortunately the RadGrid does not support the desired functionality. The RadGrid is a databound control meaning that it can display only what it is bound to. In other words - you need to add a new row to the grid datasource first and then to rebind the control. After that the RadGrid will create the corresponding row automatically and the new row will be shown.

I hope this helps.

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