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

Radconfirm with __doPostBack in Firefox

4 Answers 167 Views
Window
This is a migrated thread and some comments may be shown as answers.
Nicolas Fahr
Top achievements
Rank 1
Nicolas Fahr asked on 06 Mar 2011, 01:15 PM
When using following client side code

convert: function() {
        var cb = function(arg) {
            if (arg) {
                __doPostBack('', '');
            }
        }
        originalRadConfirm("Question",
                cb, 200,
                200, null,
                "Headline");
},

the PostBack does not get triggered in Firefox after first selecting cancel and then reopining the window and calling confirm
IE and Opera are OK.

Any ideas?
Thanks

4 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 10 Mar 2011, 04:20 PM
Hi Nicolas,

Could you please post the full JavaScript code along with information on how you call the radconfirm dialog?


All the best,
Georgi Tunev
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Eric Villemure
Top achievements
Rank 1
answered on 13 Apr 2011, 02:42 PM
Hi, do you have any update on this?

I am trying to make this work in Firefox 3.6.16 but no postback occurs

function PopupConfirmDialog(eventtarget, eventargs, hiddenFieldId, msg) {
            $get(hiddenFieldId).value = false;
 
            radconfirm(msg, function (args) {
                if (args) {
                    $get(hiddenFieldId).value = args;
                    __doPostBack(eventtarget, eventargs);
                }
                else {
                    __doPostBack('', '');
                }
            });
        }


I can make it work with the browser's confirm function but since we need translations on the Yes No buttons and the beautiful Telerik skin we prefer using radconfirm.  Do you have any idea that could help me.  Thank you

function PopupConfirmDialog(eventtarget, eventargs, hiddenFieldId, msg) {
            $get(hiddenFieldId).value = false;
   
            if (confirm(msg)) {
                $get(hiddenFieldId).value = true;
                __doPostBack(eventtarget, eventargs);
            }
            else {
                __doPostBack('','');
            }
 
        }

0
Nicolas Fahr
Top achievements
Rank 1
answered on 13 Apr 2011, 02:58 PM
Unfortunately i cannot provide a full working sample at this time.
In my case, the radconfirm is called when the users clicks on a RadToolBarButton:

function rtbItemActions_ClientButtonClicking(sender, args) {
            var item = args.get_item();
            var commandName = item.get_commandName();
            switch (commandName) {
                case 'convert':
                    var invoiceControl = $find('<%= invoiceControl.ClientID %>');
                    args.set_cancel(true);
                    invoiceControl.convert();                    
                    break;
                ...
                   
        }
0
Marin Bratanov
Telerik team
answered on 14 Apr 2011, 03:17 PM

Hi Nicolas,

Please make sure that this JavaScript function exists in the page in the first place. If there are no controls that use it it will not be output by the ASP parser. You can make sure that it is available by forcing the ScriptManager to output it (see the following article: http://msdn.microsoft.com/en-us/library/system.web.ui.clientscriptmanager.getpostbackeventreference.aspx).

Without your actual code there is little we can do to investigate this issue.



All the best,
Marin
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Window
Asked by
Nicolas Fahr
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Eric Villemure
Top achievements
Rank 1
Nicolas Fahr
Top achievements
Rank 1
Marin Bratanov
Telerik team
Share this question
or