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

Passing additional info the RadConfirm Callback function

2 Answers 132 Views
Window
This is a migrated thread and some comments may be shown as answers.
Stuart Hemming
Top achievements
Rank 2
Stuart Hemming asked on 15 Oct 2010, 11:35 PM
I want the callback function that us executed after a call to radconfirm to have access to some additional information. 

I suspect I may be able to use the callerObj property for this, but it is only a guess.

Am I right?

If not I'll have to create a shed load of hidden inputs on the page (and that is sooooo last year).

I wouldn't mind an explanation of what callerObj is for though.

-- 
Stuart

2 Answers, 1 is accepted

Sort by
0
Accepted
Georgi Tunev
Telerik team
answered on 18 Oct 2010, 07:59 AM
Hi Stuart,

If I understand your scenario correctly, you want to have access to some object that you have access to in the function where radconfirm() is called, and you want to use these objects in the callback function as well, am I right? If this is so, you can simply use nested functions:

function callConfirm(obj)
{
    function callbackFn()
    {
        //your code here
    }
     
    radconfirm("sure?", callbackFn);
}

As for the callerObj object, I believe that this forum thread will help you reveal the mystery behind it :)


Greetings,
Georgi Tunev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Stuart Hemming
Top achievements
Rank 2
answered on 05 Nov 2010, 11:26 PM
Georgi,

Sorry it took me so long to reply; I got side-tracked.

Thanks for the info and the example. It's working a treat.

-- 
Stuart
Tags
Window
Asked by
Stuart Hemming
Top achievements
Rank 2
Answers by
Georgi Tunev
Telerik team
Stuart Hemming
Top achievements
Rank 2
Share this question
or