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

RadGrid new row insertion

1 Answer 51 Views
Grid
This is a migrated thread and some comments may be shown as answers.
rajani
Top achievements
Rank 1
rajani asked on 22 Sep 2010, 07:34 AM
Hi,

In a radgrid, when i click on a row, a new row should be appended(preferably client side) ,

and for a subset of rows how can i show 1st as merged column for these subset of rows similar as in excel file.

how can i achive the above senarios.

Thanks in advance.

1 Answer, 1 is accepted

Sort by
0
Marin
Telerik team
answered on 27 Sep 2010, 11:46 AM
Hi rajani,

On your first question: I assume you want to make an insert operation. The easiest way to do this on client-side is to handle the desired event (in your case OnRowClick) and set the grid in insert mode like this:

function RowClick(sender, eventArgs)
{
$find("<%= RadGrid1.MasterTableView.ClientID %>").showInsertItem();
}

And in the markup for the grid:
<ClientSettings>
    <ClientEvents OnRowClick="RowClick"  />
</ClientSettings>

However have in mind that this roundtrips to the server and requires an additional databing.

On your second question: You can have a merged column but for all the rows in the grid (using a GridTemplateColumn in the header like this). This scenario is not supported for a subset of rows.

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