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

Is there a way to hide the cancel icon when editing a row?

2 Answers 25 Views
Grid
This is a migrated thread and some comments may be shown as answers.
W
Top achievements
Rank 1
W asked on 04 Feb 2009, 11:11 AM
Hi All,

My client doesn't want the 'Cancel' icon appearing when a user is editing a row in the grid. Is there a way to hide this?

Thanks.

2 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 04 Feb 2009, 11:27 AM
Hello Imran,

A possible approach is illustrated below:
protected void RadGrid1_ItemCreated(object sender, GridItemEventArgs e) 
    if (e.Item is GridEditableItem && e.Item.IsInEditMode) 
        e.Item.FindControl("CancelButton").Visible = false

Let us know whether this helps.

Regards,
Daniel
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
W
Top achievements
Rank 1
answered on 04 Feb 2009, 12:36 PM
Thanks again Daniel! Works perfectly!
Tags
Grid
Asked by
W
Top achievements
Rank 1
Answers by
Daniel
Telerik team
W
Top achievements
Rank 1
Share this question
or