⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

flexigrid find button problem



kenshicu
  • profile picture
  • Member

Posted 07 August 2013 - 14:22 PM

i have:
 

$crud->fields('field1','field2','field3','field4','field5');

$crud->columns('field1', 'field4', 'field5');

$crud->callback_column('field1',array($this,'_callback_field1'));

...

    //show name & first name & middle name
    function _callback_field1($value, $row)
    {
    return $row->field1.' '.$row->field2.' '.$row->field3;
    }

this shows me the value of field 1 + value of field 2 + value of field 3, in column 1

all good, but when I use the Search button in column 1, only looks for values of field 1 :(

 


davidoster
  • profile picture
  • Member

Posted 07 August 2013 - 22:39 PM

I suppose you are talking about flexigrid. Right?

You need to check with the flexigrid theme itself how it does the searching.


Robert
  • profile picture
  • Member

Posted 08 August 2013 - 11:48 AM

Is there a way to add Resizable columns to the flexigrid from CRUD ?


davidoster
  • profile picture
  • Member

Posted 09 August 2013 - 03:28 AM

Is there a way to add Resizable columns to the flexigrid from CRUD ?

 

I don't know a way to add resizable columns. The flexigrid.js under the theme's forlder is a customized js for Grocery CRUD.


Robert
  • profile picture
  • Member

Posted 09 August 2013 - 07:14 AM

I see .. well it will be a nice addition for the GC project ... maybe in the next versions.


Amit Shah
  • profile picture
  • Member

Posted 09 August 2013 - 11:52 AM

I see .. well it will be a nice addition for the GC project ... maybe in the next versions.

Well Robert, it is a theme and you can probably alter the same to associate the fucntionality. Even the next release, dont thing it is expected to be a needed / desired functionality. If you feel it is one, you can post it to Web Johny on the grocery crud - github as issues / request. And if he finds it relevant .. he will add it


Amit Shah
  • profile picture
  • Member

Posted 09 August 2013 - 11:54 AM

i have:
 

$crud->fields('field1','field2','field3','field4','field5');

$crud->columns('field1', 'field4', 'field5');

$crud->callback_column('field1',array($this,'_callback_field1'));

...

    //show name & first name & middle name
    function _callback_field1($value, $row)
    {
    return $row->field1.' '.$row->field2.' '.$row->field3;
    }

this shows me the value of field 1 + value of field 2 + value of field 3, in column 1

all good, but when I use the Search button in column 1, only looks for values of field 1 :(

 

Hi kenshicu,

 

Well what you are doing in here is @runtime you altering the display of the field .. it is not the same in the database. When you search .. it is truely in database. Yes in datatables (never tried) you may get it... cuz all the data is loaded (if not configured to load it using ajax)  Its worth a try if you want to avail that functionality.


kenshicu
  • profile picture
  • Member

Posted 09 August 2013 - 13:34 PM

ok thanks

I will see how I do that