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 6828465
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T22:23:10+00:00 2026-05-26T22:23:10+00:00

I added the filtering plugin to my Dojox Enhanced Grid. Now I would like

  • 0

I added the filtering plugin to my Dojox Enhanced Grid. Now I would like to create my own constraint that filters the grid without user input. The normal grid.filter is deactivated if I use the filtering plugin.

Do subclasses like dojox.grid.enhanced.plugins.filter.BooleanExpr offer that functionality and what would the syntax for a simple filter (by ID for example) look like?

  • 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-26T22:23:11+00:00Added an answer on May 26, 2026 at 10:23 pm

    I had a similar problem and only managed to fix it by running the grid filter periodically in the background with the help of some jQuery. I believe this same method may work for what you’re trying to do. Here is some sample code:

    Add jQuery:

    <script src="http://code.jquery.com/jquery-latest.js"></script>
    

    Put this in the <head> of the page:

    <script type="text/javascript">
        $(document).ready(function() {
            function filterTheDataGrid() {
                if (dijit.byId("grid") != undefined) {
                    dijit.byId("grid").filter({color: "Red"});
                }
            }
        // Run filterTheDataGrid every 1000 milliseconds //
        // Lower 1000 for faster refreshing, maybe to 500 milliseconds //
        var refreshDataGrid = setInterval(function() { filterTheDataGrid(); }, 1000);
        }
    </script>
    

    and this:

    <script type="text/javascript">
        // Setup the layout for the data //
        var layoutItems = [[
            {
                field: "id",
                name: "ID",
                width: '5px',
                hidden: true
            },
            {
                field: "color",
                name: "Color",
                width: '80px'
            }
        ]];
    
        // Create an empty datastore //
        var storeData = {
            identifier: 'id',
            label: 'id',
            items: []
        }
        var store3 = new dojo.data.ItemFileWriteStore( {data : storeData} );
    </script>
    

    Put this in the <html> of the page:

    <div id="grid" dojoType="dojox.grid.DataGrid" jsId="grid5" store="store3" structure="layoutItems" query="{ type: '*' }" clientSort="true" rowsPerPage="40"></div>
    

    and this:

    <script type="text/javascript">
    function addItemToGrid(formdata) {
        // This function is called by a dialog box and gets form data passed to it //
        var jsonobj = eval("(" + dojo.toJson(formData, true) + ")");
    
        var myNewItem = {
            id: transactionItemID,
            color: jsonobj.color
        };
        // Insert the new item into the store:
        store3.newItem(myNewItem);
        store3.save({onComplete: savecomplete, onError: saveerror});
    }
    </script>
    

    Hope this helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a vaadin table where I use certain filters for filtering, just like
I have a Telerik grid in my asp.net mvc application that looks something like:
I added a function in my .vimrc that's just few search and replace commands.
I'm trying to use Maven to create an executable jar file that includes the
i have added filter to each of the columns in a grid panel. When
I am trying to count daily records for some model, but I would like
Although the item is successfully added to the database, I'm not sure that I'm
I need a drop down for filtering purpose in my MVC3 app. I would
I'm using Eclipse Indigo with m2e plugin, and I've added to the build section
We recently added Windows Filtering Platform capabilities to our driver. We managed to get

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.