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 this problem: I have a program which should fetch (let's say) 100 records
Consider this snippet of Jade: if(#{episode[question.name][field]}) #{episode[question.name][field]} I want to check if the value
Consider a scenario in which two applications have to share data among them. I
Consider the below two methods to delete a Set of Employees with the name
Consider these two function definitions: void foo() { } void foo(void) { } Is
Consider an indexed MySQL table with 7 columns, being constantly queried and written to.
Consider these two functions: 'Overload 1 <Extension()> Function ComputeReturnValue(Of TSource, TResult)(ByVal source As TSource,
Consider the following script for outputting some XML code: var xmlAsString = '<?xml version=1.0?><person><name
Consider two forms: form1 and form2 form1 calls form2 : form2 frm = new
Consider the following two enums: enum MyEnum1 { Value1 = 1, Value2 = 2,

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.