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

Radgrid with ObjectDatasource - Success or Failure message from business layer type

1 Answer 48 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Martin Arokiaswamy
Top achievements
Rank 1
Martin Arokiaswamy asked on 17 Dec 2008, 02:54 PM

Hi,

    Rad grid is used to update record on double click, It uses ObjectDataSource and has a TypeName which points to a business layer type, Update happens fine.  We have a validation in stored procedure, when stored procedure fails in updating, it returns a status updation failed, could you suggest me

1. how to get the status form business layer and present the status to user ?

2. Another observation update fails in IE6, but works in IE 7 and Firefox - Is there any Common fix for this issue.

Regards,
Martin

1 Answer, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 20 Dec 2008, 10:54 AM
Hello Martin,

I am pasting here the reply (along with the sample demo) my colleague Georgi provided in the support ticket you opened with regards to this subject:

To attain the functionality you are searching for you have to attach your ObjectDataSource.OnUpdated event. This event is fired after the ObjectDataSource's UpdateMethod is executed. From the event arguments passed in the handler you can get the returned value from the Update method. At this point you can make whatever you want with the returned value.

In my test web site project I used the value to set some custom message to RadGrid1.StatusBarSettings.LoadingText. For your convenience I have attached my example to this support ticket. We are not aware for existence of such problem in IE6.


Best regards,
Sebastian
the Telerik team

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