function
GetRadWindow() {
var oWindow = null;
if (window.radWindow) oWindow = window.radWindow; //Will work in Moz in all cases, including clasic dialog
else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow; //IE (and Moz as well)
return oWindow;
}
function CloseWnd() {
GetRadWindow().close();
}
This is turn calls the
$find("<%= RadAjaxManager1.ClientID %>").ajaxRequest();
on the Orgchart - and refreshes the chart.
However if I am only left with 2 nodes and I try to remove the child node, ajaxrequest() is not called!
If I refresh the Panel using some other mechanism, I can see that the child node is removed.
Can anyone suggest what could be causing this problem? Why is ajaxRequest() not called in some situations.
<
telerik:RadButton
ID
=
"btnFind"
runat
=
"server"
Text
=
"Find Visits"
style
=
"margin:7px;"
UseSubmitBehavior
=
"false"
OnClientClicked
=
"FindClickedHandler_VFC"
>
<
Icon
PrimaryIconUrl
=
"~/global/images/icons/search.png"
/>
</
telerik:RadButton
>
function
FindClickedHandler_VFC(sender, eventArgs) {
var
validated = Page_ClientValidate(
'val'
);
if
(!validated) {
return
;
}
else
{
sender.set_enabled(
false
);
if
(sender.get_text() ==
"Search"
) sender.set_text(
"Searching..."
);
}
}
Problem Event Name: CLR20r3
Problem Signature 01: devenv.exe
Problem Signature 02: 11.0.50727.1
Problem Signature 03: 5011ecaa
Problem Signature 04: PresentationFramework
Problem Signature 05: 4.0.30319.17929
Problem Signature 06: 4ffa7956
Problem Signature 07: 959
Problem Signature 08: 165
Problem Signature 09: System.Exception
OS Version: 6.1.7601.2.1.0.256.4
Locale ID: 1033
Additional Information 1: 0a9e
Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
Additional Information 3: 0a9e
Additional Information 4: 0a9e372d3b4ad19135b953a78882e789
Telerik, do you have any suggestions?
Community, have any of you run into this?
If I can track down exactly which installation is causing the problem, I'll update this thread.
Thanks, Greg
function
warnIfTooLong(start, end, sender, args) {
var
appointment = args.get_appointment();
var
finalTime =
new
Date(start);
var
maxDuration = 90;
finalTime.setMinutes(finalTime.getMinutes() + maxDuration);
if
(end > finalTime) {
alert(
"You cannot reserve a court for that duration."
);
args.set_cancel(
true
);
}
}
function
onAppointmentResizeEnd(sender, args) {
var
start = args.get_appointment().get_start();
var
end = args.get_newTime();
warnIfTooLong(start, end, sender, args);
}