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

RadGrid w/o EditForm

4 Answers 64 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Murilo
Top achievements
Rank 1
Murilo asked on 07 Jul 2011, 02:13 PM
Hi, is there a way to remove editform for certain grids? We would appreciate if the arrow keys could still be present in that grids, thanks.

4 Answers, 1 is accepted

Sort by
0
Murilo
Top achievements
Rank 1
answered on 07 Jul 2011, 02:26 PM
I manage to remove the EditForm by setting this property to the radgrid:

<MasterTableView  EditFormSettings-EditFormType="Template">

But i dont think this is the better approach to make as it still shows the ajaxpanel and is doing some kind of process to show it.

Thanks
0
Murilo
Top achievements
Rank 1
answered on 12 Jul 2011, 02:41 PM
Hi, i would appreciate an answer in this case as the testers are experiencing heavily issues with this.

0
Mira
Telerik team
answered on 12 Jul 2011, 04:25 PM
Hello Murilo,

If you want to disable the editing of the grid, I suggest that you handle the ItemCommand event in the following way:
void RadGrid1_ItemCommand(object sender, GridCommandEventArgs e)
{
    if (e.CommandName == RadGrid.EditCommandName)
    {
        e.Canceled = true;
    }
}

If this is not the desired functionality, please elaborate more on your scenario and on what you want to achieve.

Best wishes,
Mira
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Murilo
Top achievements
Rank 1
answered on 12 Jul 2011, 05:01 PM
i think the solution you gave will work properly as i will implement it in a class and inherit it in my view forms.


Thank you.
Tags
Grid
Asked by
Murilo
Top achievements
Rank 1
Answers by
Murilo
Top achievements
Rank 1
Mira
Telerik team
Share this question
or