give customised format to the worklink or to the argument

Thread is closed for posting
2 posts, 0 answers
  1. bibhudatta Mangaraj
    bibhudatta Mangaraj avatar
    8 posts
    Member since:
    Jan 2010

    Posted 19 Jan 2010 Link to this post

    How to get multiple values of the argument passed from customised dialog box in default.aspx page?

    Thank you.
  2. Dobromir
    Dobromir avatar
    1633 posts

    Posted 20 Jan 2010 Link to this post

    Hi Bibhudatta,

    The arguments passed to the main page through RadWindow's close() method are the arguments used by the callback function of the custom dialog. This is an Object type parameter and it can be passed in any valid format. For example, you can pass an array with multiple values to be used for different scenarios in the callback function, e.g.:
    /*Code snippet from the function that closes the custom dialog*/
    var closeArguments = new Array();
    closeArguments[closeArguments.length] = EnableLightBox.checked ? getRadWindow().ClientParameters : getRadWindow().ClientParameters.childNodes[0];
    getRadWindow().close(closeArguments); //use the close function of the getRadWindow to close the dialog and pass the arguments from the dialog to the callback function on the main page.

    /* Callback function used by showExternalDialog() method*/
    var myCallbackFunction = function(sender, args) {
        var elemToReplace = elem.parentNode.tagName == "A" ? elem.parentNode : elem;
        elemToReplace.parentNode.replaceChild(args[0], elemToReplace);
    Please note the usage of args property inside the callback function - it is a standard array.

    Sincerely yours,
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top