We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 7906
    • 10 Posts
    I have created a snippet (actually a pair of snippets) that integrates the latest version of jQgrid into modx. These 2 snippets provide complete database functionality via the CRUD icons available on the grid. I am posting it as a beta version, but so far, it seems very reliable.

    Download here ajaxReports. I have done my best to provide very detailed install and setup instructions. Installation

    Any feedback and suggestions are appreciated.

    View and experiment with Demo
      • 29076
      • 615 Posts
      This looks great, and I will give it a try. Does it work in the backend as well? smiley
        I think, thererfor I am! But what I am, and why...?
        • 7906
        • 10 Posts
        Yes, this works on the backend as well. That is the purpose of 2 snippets...a frontend snippet that builds the grid and a backend snippet to handle all ajax requests to the database on the backend. Both snippets use a common chunk that defines the column model.
          • 29076
          • 615 Posts
          Quote from: dougf at Dec 01, 2009, 06:50 AM

          ...a frontend snippet that builds the grid and a backend snippet to handle all ajax requests to the database on the backend and a backend snippet to handle all ajax requests to the database on the backend.
          Ok, great! Next question: I need to see the datagrid as well in the backend/manager. Is that possible?

          I will try it this evening, so I’ll find it out, but it’s just great to know in front. smiley

          Thanks.
            I think, thererfor I am! But what I am, and why...?
            • 7906
            • 10 Posts
            Quote from: Sylvaticus at Dec 01, 2009, 06:58 AM

            Ok, great! Next question: I need to see the datagrid as well in the backend/manager. Is that possible?

            Sylvaticus,

            This set of snippets works in the ’backend’ in the sense that it handles ajax requests to the backend database. I am not sure how to integrate it into the backend/manager. FYI, if you read the intro text at http://westfork.net/ajaxreports you will see that it DOES NOT work when logged into the manager and QM tool is embedded into the same page as the jqgrid javascript query. Obviously, there is a jquery conflict, since both QM and jqgrid are jquery tools.

            I am not a javascript expert (most of my experience is with database development). Hopefully, a javascript expert that needs this to work while QM is running can help provide a solution.

            Doug
              • 1343 ☆ A M B ☆
              • 2,213 Posts
              I might have missed it, but do you have a demo setup or do I need to install my own copy to try it out?

                Patrick | Server Wrangler
                About Me: Website | Tweets |  MODX Hosting
                • 7906
                • 10 Posts
                Quote from: AMDbuilder at Dec 01, 2009, 10:12 AM

                I might have missed it, but do you have a demo setup or do I need to install my own copy to try it out?


                I forgot to mention it....yes I did set up a demo at http://westfork.net/reports. Feel free to add/delete/insert records (using the icons at the bottom of the grid). This is all dummy data.

                Doug