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

The Archive Base Latest Questions

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

Consider a ListGrid with two columns: First Name, and Last Name. What if I

  • 0

Consider a ListGrid with two columns: First Name, and Last Name.

What if I want to search across both columns at once? E.g. give me the records for which First Name or Last Name contain ‘bob‘. (Filled in using a single TextItem search field.)

It ought to return:

Ann, Bobbings
Bob, Doe
Chris, McBob

Is this possible with using just Criteria, or AdvancedCriteria? (E.g. grid.setCriteria(mySearchCriteria);)

Or would I have to customize the setCriteria in ListGrid, or the filterData in DataSource?

  • 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-26T11:31:24+00:00Added an answer on May 26, 2026 at 11:31 am

    I have used this kind of implementation myself.

    textItem.addChangedHandler(new ChangedHandler() {
    
      @Override
      public void onChanged(ChangedEvent event) {
        String input = (String) event.getValue();
        AdvancedCriteria criteria = new AdvancedCriteria(OperatorId.OR, new Criterion[]{
          // ICONTAINS = ignores case
          new Criterion("firstName", OperatorId.ICONTAINS, input),
          new Criterion("lastName", OperatorId.ICONTAINS, input)
        });
    
        listGrid.filterData(criteria);
      }
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Consider two .net dlls. The first, application.dll contains the main business logic and data
Consider this dictionary format. {1:{'name':'chrome', 'author':'google', 'url':'http://www.google.com/' }, 2:{'name':'firefox','author':'mozilla','url':'http://www.mozilla.com/'}} I want to remove all
Consider the following Mechanize form object #<Mechanize::Form {name f1} {method POST} {action f.php} {fields
Consider my scenario of a model consisting of two aggregate roots, Customer and Order
Consider this very simple example, where I have template wrapper class for which are
Consider the following layout: There are 2 columns that have their min-width and max-width
Consider two forms: form1 and form2 form1 calls form2 : form2 frm = new
Consider the following two enums: enum MyEnum1 { Value1 = 1, Value2 = 2,
Consider a directory structure containing the following files: \1.3\Baseline\GeneratedScripts\One\FullInstall.cmd \1.3\Baseline\GeneratedScripts\Two\FullInstall.cmd \1.3\Baseline\GeneratedScripts\Three\FullInstall.cmd \1.3\Patches\Patch1\GeneratedScripts\One\FullInstall.cmd \1.3\Patches\Patch1\GeneratedScripts\Two\FullInstall.cmd \1.3\Patches\Patch1\GeneratedScripts\Three\FullInstall.cmd
Consider this simple example code: <form name=text id=frm1 method=post> <input type=checkbox name=name[] value=1000> Chk1<br>

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.