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

Odd bit of trouble with 'Ajaxified' splitter

2 Answers 38 Views
Splitter
This is a migrated thread and some comments may be shown as answers.
Boris
Top achievements
Rank 1
Boris asked on 28 Apr 2014, 02:49 PM
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 Answers, 1 is accepted

Sort by
0
Dobromir
Telerik team
answered on 29 Apr 2014, 03:17 PM
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.

 
0
Boris
Top achievements
Rank 1
answered on 29 Apr 2014, 03:50 PM
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.
Tags
Splitter
Asked by
Boris
Top achievements
Rank 1
Answers by
Dobromir
Telerik team
Boris
Top achievements
Rank 1
Share this question
or