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

  • Home
  • SEARCH
  • 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 7440521
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T10:51:55+00:00 2026-05-29T10:51:55+00:00

I am trying to filter data in the dojo grid widget, however, I am

  • 0

I am trying to filter data in the dojo grid widget, however, I am having no luck.

Below I have posted the javascript I use to successfully create the grid, however, all data is shown. I have tried enclosing IsBaseLevel is quotes and false in quotes, I cannot seem to find the cure. As always, any help or suggestions are appreciated. If you need more information, please let me know.

Javascript (minus the function call from dojo.ready to a()):

var grid;

function a() {
    var store = new dojox.data.JsonRestStore({ target: "/Services/Security/SecurityArea/", idAttribute: "id", syncMode: true });
    var gridLayout = [
        { name: "Id", field: "Id" },
        { name: "Name", field: "Name" },
        { name: "Parent Id", field: "Parent", formatter: formatParent },
        { name: "Description", field: "Description"},
        { name: "IsBaseLevel", field: "IsBaseLevel"}];
    grid = new dojox.grid.DataGrid({
        store: store,
        structure: gridLayout
    }, document.createElement("div"));

    grid.placeAt(dojo.body(), "last");

    grid.startup();

    grid.filter({ IsBaseLevel: false });
}

function formatParent(data) {
    if (typeof data != "undefined" && data != null) {
        var menu = new dijit.DropDownMenu({ style: "display: none;" });
        menu.addChild(new dijit.MenuItem({
            label: "Test 1",
            iconClass: "dijitEditorIcon dijitEditorIconSave",
            onClick: function () { alert('save'); }
        }));
        menu.addChild(new dijit.MenuItem({
            label: "Test 1",
            iconClass: "dijitEditorIcon dijitEditorIconCut",
            onClick: function () { alert('cut'); }
        }));
        var button = new dijit.form.DropDownButton({
            label: "hello!",
            name: "programmatic2",
            dropDown: menu
        });
        return button;
    }
    else return null;
}

JSON Data

[
  {
    "UtcCreated": "\/Date(1327877500038-0600)\/",
    "UtcModified": "\/Date(1327877500038-0600)\/",
    "UtcDisabled": null,
    "CreatedBy": null,
    "ModifiedBy": null,
    "DisabledBy": null,
    "Id": 4,
    "Name": "/Home.aspx",
    "Description": "The primary user home",
    "IsBaseLevel": true,
    "Parent": null
  },
  {
    "UtcCreated": "\/Date(1327877500038-0600)\/",
    "UtcModified": "\/Date(1327877500038-0600)\/",
    "UtcDisabled": null,
    "CreatedBy": null,
    "ModifiedBy": null,
    "DisabledBy": null,
    "Id": 5,
    "Name": "Security.GetSecurityAreas",
    "Description": "Provides a list of security areas",
    "IsBaseLevel": true,
    "Parent": null
  },
  {
    "UtcCreated": "\/Date(1327877500038-0600)\/",
    "UtcModified": "\/Date(1327877500038-0600)\/",
    "UtcDisabled": null,
    "CreatedBy": null,
    "ModifiedBy": null,
    "DisabledBy": null,
    "Id": 6,
    "Name": "UI.GetDomObjects",
    "Description": "Gets all the DOM objects for the client",
    "IsBaseLevel": true,
    "Parent": null
  },
  {
    "UtcCreated": "\/Date(1327877500038-0600)\/",
    "UtcModified": "\/Date(1327877500038-0600)\/",
    "UtcDisabled": null,
    "CreatedBy": null,
    "ModifiedBy": null,
    "DisabledBy": null,
    "Id": 3,
    "Name": "Test Security Area",
    "Description": null,
    "IsBaseLevel": false,
    "Parent": {
      "UtcCreated": "\/Date(1327877500038-0600)\/",
      "UtcModified": "\/Date(1327877500038-0600)\/",
      "UtcDisabled": null,
      "CreatedBy": null,
      "ModifiedBy": null,
      "DisabledBy": null,
      "Id": 4,
      "Name": "/Home.aspx",
      "Description": "The primary user home",
      "IsBaseLevel": true,
      "Parent": null
    }
  }
]
  • 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-29T10:51:56+00:00Added an answer on May 29, 2026 at 10:51 am

    I found my issue. I expected the filter to be applied on the data once it was received at the client (browser). However, after examining the network, I saw that my service was being called with a ?IsBaseLevel=false querystring. Thus, your web service will need to properly support any flags you will be applying upon your data.

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

Sidebar

Related Questions

I'm trying to filter some XML in JavaScript using E4X and have some specific
I am trying to implement Ext.ux.grid.filter.ListFilter using a data store (rather than a hardcoded
I am trying to filter data by the EntityReference with no luck. Without the
I have a table that contains unfortuantely bad data and I'm trying to filter
I have an advancedDataGrid that is populated with XMLListCollection data. I'm trying to filter
I am trying to filter out unwanted data from an XML file. I have
I've got a dojox.grid.EnhancedGrid with a dojox.grid.enhanced.plugins.Filter and a dojo.store.Memory wrapped in a dojo.data.ObjectStore.
I'm trying to Integrate HTML Purifier http://htmlpurifier.org/ to filter my user submitted data but
I am having a brain meltdown trying to filter a fetchRequest. I'm able to
In jQueryMobile, I have written a data-role=listview component and I want to filter the

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.