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

[Solved] How to Restrict Edit Modes in a Radgrid

2 Answers 90 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Satya Sahu
Top achievements
Rank 1
Satya Sahu asked on 18 Mar 2010, 06:02 AM
Hi Folks,

Can anyone tell me how can i restrict all the modes of Edit on a Radgrid.

As i have separate piece of code to be executed on the click of Edit.

Awaiting your reply.


Thanks
Satya

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 18 Mar 2010, 07:48 AM

Hello Satya,

You can use the following code snippet in order to prevent showing EditForm and use your code for edit button click.

CS:

 
    protected void RadGrid1_ItemCommand(object source, GridCommandEventArgs e)  
    {  
        if (e.CommandName == RadGrid.EditCommandName)  
        {  
            e.Canceled = true// Cancel the Edit event  
        }  
        // Your code goes here  
    } 

-Shinu.

0
Satya Sahu
Top achievements
Rank 1
answered on 18 Mar 2010, 07:51 AM

Thanks a lot Shinu.

Can you please look on the link below...i have some issues on Filter.

http://www.telerik.com/community/forums/aspnet-ajax/grid/columnfilter-not-filtering.aspx
Tags
Grid
Asked by
Satya Sahu
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Satya Sahu
Top achievements
Rank 1
Share this question
or