Uploaded image for project: 'In-Portal CMS'
  1. In-Portal CMS
  2. INP-363

Converting Admin Grids to Ajax

    XMLWordPrintable

    Details

    • Type: Feature Request
    • Status: New
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 5.0.1
    • Fix Version/s: None
    • Component/s: Admin Interfaces

      Description

      1. Add "custom_blocks_template" parameter to "grid" block. The value of
      this parameter is template path, where all custom cell blocks, that are used
      in this grid are defined.

      2. Move contents of current "grid" block to new template (will be one
      template, used on all grids) and name it "incs/ajax_grid.tpl" for example.

      3. Replace current "grid" block content with container <div> element and
      include of "incs/ajax_grid.tpl" template (this prevents additional ajax
      query on initial grid load).

      4. Each grid action will actually get "incs/ajax_grid.tpl" template
      contents (via ajax) and pass all "grid" block parameters (from template) to
      that template in url (around 7 parameters at most).

      This approach requires only one action to be taken to convert all customized
      (user-made) grids to work: move all user-defined grid blocks to separate
      template and specify it's name in "grid"'s block parameter.

      We need to do extra programming to be able to update static template parts
      (ones, that doesn't come from ajax), like search query from ajax respoce
      (something like that already happens in catalog). Also catalog/advanced view
      has quite different implementation, that also need to be converted, but we
      can do it later of course, because it doesn't intersect with proposed idea's
      implementation.

      Also need to move all code, that works with grid from end template (like setting dependent buttons and so on) to new jQuery event, like onAfterGridLoad and do it all there, but this is nothing comparing to the benefits we will get of converting to ajax all grids.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                alex Alex
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated: