Hi Team,
I have an issue with OnClientClose and OnClientShow.
Its not firing when we call it from js file as mentioned in OnClientClose and OnClientShow.
Can anyone help me how to resolve this issue?
<telerik:RadWindowManager
id="WindowManager" runat="server"
OnClientClose = "Test.Extensions.Search.queryBuilderDialog.onSubmit" (Replaced ClientCallBackFunction as OnClientClose)
OnClientShow = "Test.Extensions.Search.queryBuilderDialog.onShow">
<windows>
<telerik:RadWindow id="TestWindow"
Left="250px"
Modal="true"
Runat="server"
Behaviors="Move,Resize,Close">
</telerik:RadWindow>
</windows>
</telerik:RadWindowManager>
Code of a Querydebug.JS file:
Test.Extensions.Search.BuildQueryDialog.prototype = {
//Properties
queryBuilderDialog: null,
this.queryBuilderDialog = new Test.Extensions.Search.BuildQueryDialog();
radWindow: null,
windowUrl: "",
//Methods
show: function (fieldId, isEdit) {
var scrollX = document.documentElement.scrollLeft || document.body.scrollLeft,
scrollY = document.documentElement.scrollTop || document.body.scrollTop,
viewPortWidth = $D.getClientWidth(),
viewPortHeight = $D.getClientHeight(),
elementWidth = 600,
elementHeight = 400,
x = (viewPortWidth / 2) - (elementWidth / 2) + scrollX,
y = (viewPortHeight / 2) - (elementHeight / 2) + scrollY;
this.radWindow = Test.Utilities.WindowUtil.getRADWindow("TestWindow");
if (this.windowUrl === "")
this.windowUrl = this.radWindow.GetUrl();
var separator = (this.windowUrl.indexOf("?") == -1) ? "?" : "&";
var url = this.windowUrl + separator + "id=" + fieldId + "&isedit=" + isEdit;
this.radWindow.SetUrl(url);
this.radWindow.Show();
this.radWindow.MoveTo(x, y);
this.radWindow.SetSize(elementWidth, elementHeight);
},
//Event Handlers
onShow: function (radWindow) {
var currentCondition = Test.Extensions.Search.queryBuilder.getCurrentCondition();
//Set the argument object to the radWindow
radWindow.Argument = { conditionXml: $XML.SerializeXmlNode(currentCondition.toXml()) };
},
onClose: function (radWindow) { },
onSubmit: function (radWindow, returnValue) {
if (returnValue && returnValue.conditionXml) {
var currentCondition = Test.Extensions.Search.queryBuilder.getCurrentCondition();
currentCondition.fromXml(returnValue.conditionXml);
}
}
};
Any updates please?