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

delete not working

1 Answer 72 Views
Grid
This is a migrated thread and some comments may be shown as answers.
mww
Top achievements
Rank 1
mww asked on 10 Apr 2009, 02:18 PM
I have a very strange problem with the delete function in my grid.  I have a delete column added to the end of each row like this

<

 

telerik:GridButtonColumn ConfirmText="Delete this artist type ?" ButtonType="ImageButton"

 

 

CommandName="DeleteArtistType" Text="Delete" UniqueName="DeleteArtistType" >

 

 

<HeaderStyle Width="20px" />

 

 

<ItemStyle HorizontalAlign="Center" />

 

 

</telerik:GridButtonColumn>

ive specified the delete method like this

 

ondeletecommand

 

="RadGridArtistTypes_DeleteCommand"

when I run the page, the grid is rendered but the image isnt displayed in the delete column (I have a red cross) and the delete method never gets called

Ive used exactly the same method in a different grid and it works ok !

The edit fucntion works ok though

 

<

 

telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn1">

 

 

 

 

 

<HeaderStyle Width="20px" />

This is driving me nuts, I really canbt see why it works in one grid but not in another, can anyone help ?

 

1 Answer, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 13 Apr 2009, 11:20 AM
Hi Mark,

You can refer the following help articles to get more details about deleting records in RadGrid.
Deleting records
Automatic DataSource operations
Insert/Update/Delete
Client-side delete

Additionally if you continue to experience difficulties, I will ask you to open a formal support ticket and send us a small working project with reproduced this erroneous  behavior. Thus I could do all my best to help you further in resolving it.

Kind regards,
Pavlina
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
mww
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Share this question
or