Odd bit of trouble with 'Ajaxified' splitter

3 posts, 0 answers
  1. Boris
    Boris avatar
    276 posts
    Member since:
    Oct 2012

    Posted 28 Apr 2014 Link to this post

    As some of you may recall, I've been having problems Ajaxifying controls within a RadSplitter.  It looks like I overlooked the simplest solution of all, wrap the entire RadSplitter in a RadAjaxPanel.  This seems to be working perfectly except for one odd quirk.

    In my original JavaScript driven screen, I had a fairly standard OnClientClicked JavaScript function designed to disable the save button after one click (to prevent the usual problem with multiple submissions).

     function disableSave(button, args) {             
                    if (Page_IsValid) {                 
                        button.set_enabled(false);
                    }
     }

    Once I wrapped the splitter in a RadAjaxPanel, I found that this function seemed to disable the server side OnClick function.  The button would click once and become disabled, but the OnClick event never fired.

    What am I seeing here?

  2. Dobromir
    Admin
    Dobromir avatar
    1633 posts

    Posted 29 Apr 2014 Link to this post

    Hello Boris,

    I would suggest you for this scenario to utilize RadButton's SingleClick property, please take a look at the following live demo:
    http://demos.telerik.com/aspnet-ajax/button/examples/singleclick/defaultcs.aspx

    Regards,
    Dobromir
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. Boris
    Boris avatar
    276 posts
    Member since:
    Oct 2012

    Posted 29 Apr 2014 in reply to Dobromir Link to this post

    I'm completely lost now. I did as you suggested and now my screen seems to be completely disabled.  It looks like my validator functions are failing.  (But you may have exposed a more fundamental problem.)  

    This is more relevant to my other thread.  http://www.telerik.com/forums/custom-validator-failure-within-a-radajaxpanel?actionMode=replyPost&postId=284db59d-d487-416d-a4b4-2c6cd92bef51

    I'm going to continue it there.  Thanks.
Back to Top