Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6540837
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T11:01:47+00:00 2026-05-25T11:01:47+00:00

I have a Dojo DataGrid with several fields. I’m currently setting the query to

  • 0

I have a Dojo DataGrid with several fields. I’m currently setting the query to search one field at a time, like so:

grid.setQuery( {name:"Bob"}, {ignoreCase:true} );

However I would like the query to search all the fields at once. For example say I have three fields titled “name”, “friend”, “family”. Let’s say I only want the rows that contain “Bob” in any of the three fields to show in the grid. How would I got about doing that without three separate queries?

Any help is appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T11:01:48+00:00Added an answer on May 25, 2026 at 11:01 am

    Is your store an ItemFileReadStore or a QueryReadStore?

    If ItemFileReadStore you may be able to utilize the AndOrReadStore
    http://dojotoolkit.org/reference-guide/dojox/data/AndOrReadStore.html

    Otherwise, my best suggestion for a limited fetch store would be to adjust your back-end code to support filtering options such that when the store makes a POST(or GET), you parse out an array of fields that you want to search against, and the result set is returned accordingly.

    You’d see something like

    start 0
    count 25
    columnsToQuery : ["name","friend","family"]  //or perhaps a CSV string will do
    columnOperator : "AND"
    columnValue : "Bob"
    

    You’d have to adjust the paradigm as per your business needs, but as long as the server can properly return the result set based on the filtering inputs this approach will work.

    The call to generate such a request would be

    grid.setQuery({
      columnsToQuery : ["name","friend","family"],
      columnOperator : "AND",
      columnValue : "Bob"
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Dojo Datagrid in one of my pages (which contains more content)
I have a Dojo Grid that I'm filtering with a query that's set in
I have a dojo.datagrid in one of my pages. Datagrid and its store(by calling
I have a dojo datagrid which cells I will like to change at will
I have problem in DOJO with DataGrid. I refresh my grid on every 1
I'd like to have a dojo grid which connects to a server url which
I have a onsubmit dojo/method within a custom templated widget like so: try {
How to receive an Image via dojo.xhr ? I have a datagrid , and
I have a DataGrid that has items in it. When you right-click on one
I'm creating a dojox.grid.DataGrid in dojo 1.6 with the following notation: <table dojoType=dojox.grid.DataGrid> <thead>

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.