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

Server side delete event

2 Answers 144 Views
Grid
This is a migrated thread and some comments may be shown as answers.
lkeel
Top achievements
Rank 1
lkeel asked on 13 Oct 2008, 03:54 PM
Hello all,

I am trying to get an event back to the server for deleting.  I have added a GridClientDeleteColumn to my radgrid.  Then I  added OnItemCommand, OnDeleteCommand, OnItemDeleted event handlers, but I am not getting any of these events when the delete is completed.

A work around that I found was using a GridButtonColumn and adding the confirm text to that, but the problem is that I wanted to have an image show for the delete and the GridButtonColumn doesn't seem  to be working with the ImageUrl property set.  Has anyone seen this before?

I would really appreciate it if someone could give me a resolution to either of these problems:

1) Why I can't get the server side event from the GridClientDeleteColumn?
2) Why the GridButtonColumn is not showing my image from the ImageUrl property?

Configuration:
ASP.NET 3.5
VS2008
Telerik.Web.UI.dll 2008.2.826.35

Thanks in advance,
Lee

2 Answers, 1 is accepted

Sort by
0
lkeel
Top achievements
Rank 1
answered on 13 Oct 2008, 07:13 PM
Update:

Ok.  I figured out why the image was not showing on my GridButtonColumn.  I found the ButtonType property and set that to image.  Sorry for the lack of knowledge there.  So the good news is that I have a workaround and can use the GridButtonColumn and force a refresh back to the grid, but it would be nice to be able to use the controls as intended.  So my remaining question still is:

How do I force a server side event from the GridClientDeleteColumn so that I can manage the deletion from my code?

Thanks in advance,
Lee

P.S. Update to configuraiton: I have updated the control to the latest version 2008.2.1001.35
0
Accepted
Vlad
Telerik team
answered on 14 Oct 2008, 05:48 AM
Hi Lee,

Generally GridClientDeleteColumn will delete rows only client-side and will persist these changes to the server on the first post-back/ajax request. If your scenario is different you can use GridButtonColumn with CommandName="Delete" which will perform immediate request to delete the row.

Best wishes,
Vlad
the Telerik team

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