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

[Solved] Grid, delete row notification to user using javascript

1 Answer 119 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Gerard Eikelboom
Top achievements
Rank 1
Gerard Eikelboom asked on 22 Mar 2011, 01:30 PM
Hi,
If you bind your grid (Ajax client side) is it possible to give the user a notification after a certain action(eg delete)?
We use javasxript to notify a user (Growl).
So I do a bind in the end of my controller class to the grid, And it gets the updated data from server and shows it.
But how do i notify the user that it is sucessful? Using my standard message bus.
Here is a piece of my controller:
if (UserDefaultWebshop == UserWebshopID.UserWebShop_ID)
            {
                //do nothing let user know it's not possible.
            }
            else
            {
                //delete user webshop
                UserModel um = new UserModel();
                um.DeleteUserWebshop(User_Id, UserWebshopID.UserWebShop_ID);
            }
                              // rebind to grid with new updated data
            myViewModel = rvm.GetUserWebshops(User_Id);
            return View(new GridModel(myViewModel));
        }
We use this version from Telerik --> 2010 -3-1110 .....

Regards,
Gerard Eikelboom

1 Answer, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 23 Mar 2011, 07:57 AM
Hi Gerard Eikelboom,

 Currently there is no event raised after delete is finished apart from OnDataBound. The OnDelete event is raised before that. Perhaps you can use the OnDataBound event - if it is raised then the delete (or update) has been performed successfully.

Regards,
Atanas Korchev
the Telerik team
Tags
Grid
Asked by
Gerard Eikelboom
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Share this question
or