Is it possible to create Grid without With() variable? if yes then how?

Is it possible to create Grid without With() variable? if yes then how?

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer

    It's especially possible if you don't need to page or sort.  If your grid shows the same info in the same order the whole time a single user is using the form, you don't need to use the with for anything.

    The whole purpose of the with() is simply to allow the grid to be restructured when you update the pagingInfo, either by changing which column you sort by, changing the direction you're sorting from ascending to decending or vice versa, or loading the next page of data. If your users aren't doing any of those things on your grid you don't need the with.

    If you want users to be able to load completely new info onto the grid, you might just submit the form and loop users back into the same interface, using the PM to get the new data.  This has the benefit of only reloading the data every time the user submits as opposed to every time the user interacts with anything at all.  Or you could use the saveInto of the grid component itself to update the data as suggested by lucasj, thank you by the way.  Your own individual needs should determine the best course of action.

Reply
  • 0
    Certified Lead Developer

    It's especially possible if you don't need to page or sort.  If your grid shows the same info in the same order the whole time a single user is using the form, you don't need to use the with for anything.

    The whole purpose of the with() is simply to allow the grid to be restructured when you update the pagingInfo, either by changing which column you sort by, changing the direction you're sorting from ascending to decending or vice versa, or loading the next page of data. If your users aren't doing any of those things on your grid you don't need the with.

    If you want users to be able to load completely new info onto the grid, you might just submit the form and loop users back into the same interface, using the PM to get the new data.  This has the benefit of only reloading the data every time the user submits as opposed to every time the user interacts with anything at all.  Or you could use the saveInto of the grid component itself to update the data as suggested by lucasj, thank you by the way.  Your own individual needs should determine the best course of action.

Children