Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Intial Filter/Criteria on grid

    First of all, I'm three days into this toolset, and it's amazing, thank you for all the support!

    I have a grid on a hidden tab. The grid ALWAYS has the same filtered data from the datasource. I could pass the criteria in a filterData call and set the autoFetch to false, however I would rather somehow initialize the grid with the right criteria and set autoFetch to true so nothing will happen until the tab is selected.

    How do you set initial criteria in the grid while using autoFetch: true?

    #2
    By using listGrid.initialCriteria of course.

    Comment


      #3
      Duh...Okay this is a case where there's just too much functionality, I completely glazed over initialCriteria in the API. Thanks for the quick response!!

      Comment


        #4
        We're 9 months in, and *still* continue to be amazed. We are creating an entire suite of intranet apps, and have yet to come across a use case that isn't easily supported in these object's API's. There's nothing like the joy of finding the *exact* API call you're looking for, time and time again.

        My favorite this week:

        Setting TextItem.selectOnFocus and using Page.registerKey() to make keyboard shortcuts to commonly used fields on our DynamicForms. Want to change an order quantity to 4? Hit q4<return> and you're done, no mouse.

        Comment


          #5
          Cheers Pete, the whole team really appreciates the kudos.

          I don't suppose you'd let us put that quote up on the website? I think you really hit the nail on the head there.

          Nice feature by the way.

          Comment


            #6
            initialCriteria on DynamicForm

            Is there an equivalent way to specify initialCriteria on a DynamicForm?

            Comment


              #7
              Hi code08,

              It appears the same property (initialCriteria) actually works on forms too - we'll doc this.

              Comment


                #8
                Too cool, that's great!!

                Comment


                  #9
                  DynamicForm also supports autoFetchData which isn't documented. Using initialCriteria along with autoFetchData and autoDraw allows you to have a form on a tab that won't load/initialize until the tab is selected.

                  Comment

                  Working...
                  X