OnClientClose|ClientCallBackFunction not firing as working as Expected after Telerik Upgrade

0 Answers 36 Views
Window
Sachita
Top achievements
Rank 1
Iron
Iron
Iron
Sachita asked on 05 Apr 2022, 06:05 AM | edited on 05 Apr 2022, 06:06 AM

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);
            }
        }
    };

Sachita
Top achievements
Rank 1
Iron
Iron
Iron
commented on 08 Jun 2022, 06:49 AM

Any updates please?

No answers yet. Maybe you can help?

Tags
Window
Asked by
Sachita
Top achievements
Rank 1
Iron
Iron
Iron
Share this question
or