Awesome search

Jul 1, 2014 at 7:38 AM
Maybe someone could explain me how does Awesome search works (like in Grid Demo?) I find javascript and some form, but can't manage to make it work for me(nothing happens). Maybe I am missing something?
Jul 1, 2014 at 9:23 AM
on this page

the grid has this
            .Parent("txtperson","person") /* binds to person */ 
            .Parent("txtfood","food") /* binds to food */
this way the grid is bound to parents and when the value of the parent changes the grid reloads (unless you have .LoadOnParentChange(false))
note txtperson is the id of the html element, and person is the name of the action parameter

client side api can also be used to search, as shown here ( "where food contains sushi" button)
Jul 1, 2014 at 9:42 AM
Thank you.

I managed to work it, now I have one problem...
In my grid I have null values and when I try to search(or even without search) I don't see null values

My code:
lic_plate = (lic_plate ?? "").ToLower();
queryOver = session.Query<Transport>()
.Where(x => x.lic_plate.ToLower().Contains(lic_plate));
How can i search through null values?
Jul 1, 2014 at 9:45 AM
maybe something like this:
      .Where(x =>x.lic_plate == null ||  x.lic_plate.ToLower().Contains(lic_plate));
Jul 1, 2014 at 10:05 AM
that works, but when I have more than one search parameters and I enter only 1 parameter I get values where x.Lic_plate is null to...

Any other ideas?