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

Put All RadGrid Items in Edit Mode except AutoGeneratedDeleteColumn

1 Answer 48 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Alejandro
Top achievements
Rank 1
Alejandro asked on 08 Nov 2013, 01:48 PM
Hi,

Can you help me in how to Put All Items in Edit Mode but AutoGeneratedDeleteColumn and insert template in a radgrid with MasterTableView editmode="batch".

I am using the following code to put all items in edit mode but the AutoGeneratedDeleteColumn does not work (I can´t see it) and when I try to insert new items have the same behavior(I can´t see the columns).


private void RadGrid1_PreRender(object sender, System.EventArgs e)
{
    if (!IsPostBack)
    {
        foreach (GridItem item in RadGrid1.MasterTableView.Items)
        {
            if (item is GridEditableItem)
            {
                GridEditableItem editableItem = item as GridDataItem;
                editableItem.Edit = true;
            }
        }
        RadGrid1.Rebind();
    }
}



Thanks

1 Answer, 1 is accepted

Sort by
0
Kostadin
Telerik team
answered on 13 Nov 2013, 08:39 AM
Hi Alejandro,

I am afraid that you could not put all items in edit mode when you are using a batch editing. The approach which you have provided is suitable for InPlace edit mode. The reason is that batch editing enables inline client-side editing, whether the InPlace edit mode enables inline server-side editing.

Regards,
Kostadin
Telerik
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 the blog feed now.
Tags
Grid
Asked by
Alejandro
Top achievements
Rank 1
Answers by
Kostadin
Telerik team
Share this question
or