Current filter:
                                You should refresh the page.
                                Support Center
                                0
                                  • Hi,

                                    I have an AspxGridView, an AspxCalendar and another component from another company on a page.
                                    On each pageIndex change, I would like to intercept, on the client side, this specific event.
                                    I know there is actually no handler for that.

                                    I need to intercept this event using javascript because I want to synchronize the AspxCalendar and the other component's, depending on the first row of the new pageIndex chosen.

                                    I am not asking you to code this for me, but I'm asking you if there is a way to get the first row of the new page index in javascript ?

                                    Do you have any suggestions/workaround for that ? Are you planning to add this client side handler soon ?

                                    Thanks,
                                    Maxime

                                0

                                Hi,

                                To get the current PageIndex, handle the server BeforeGetCallbackResult event and save the PageIndex into the JSProperties. Then, on the client, in the EndCallback event handler you can use the value stored in the JSProperties. I've created a simple project that demonstrates this approach. Please see the attached file.

                                Thanks,
                                Eugene

                                Q139500.zip
                                0

                                Thanks for the quick solution. Everything works fine!

                                Maxime

                                0

                                Resolved

                                0

                                Note : it is also possible to use a BeginCallback handler to know which callback event was called.

                                C#
                                TheGrid.ClientSideEvents.BeginCallback = "function(s, e) { OnGridBeginCallback(s,e); }";

                                Javascript
                                function OnGridBeginCallback(s,e)
                                {
                                        callBackEvent = e.command;
                                }

                                var callBackEvent = "";
                                    function OnGridEndCallback(grid, e)
                                    {
                                        switch(callBackEvent)
                                        {
                                            case "PAGERONCLICK":
                                            ...

                                The only drawback is that the callback events names could change in the futur.

                                All other callback events are here :
                                command Property

                                0

                                Hi Maxime,

                                I'm happy to hear that you have found another solution. Thank you for informing us of that.
                                Please do not hesitate to contact us if you find an issue in our product or run into a problem when using it.

                                Thanks,
                                Michael.

                                To start a chat you should create a support ticket


                                If you need additional product information, write to us at info@devexpress.com or call us at +1 (818) 844-3383

                                FOLLOW US

                                DevExpress engineers feature-complete Presentation Controls, IDE Productivity Tools, Business Application Frameworks, and Reporting Systems for Visual Studio, along with high-performance HTML JS Mobile Frameworks for developers targeting iOS, Android and Windows Phone. Whether using WPF, Silverlight, ASP.NET, WinForms, HTML5 or Windows 8, DevExpress tools help you build and deliver your best in the shortest time possible.

                                Copyright © 1998-2014 Developer Express Inc.
                                All trademarks or registered trademarks are property of their respective owners