⚠ 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 forum is read-only and soon will be archived. ⚠


flexigrid find button problem

ajax_list flexigrid find callback_column

  • Please log in to reply
7 replies to this topic

#1 kenshicu

kenshicu

    Advanced Member

  • Members
  • PipPipPip
  • 85 posts

Posted 07 August 2013 - 02: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 :(

 



#2 davidoster

davidoster

    Grocery CRUD Ninja

  • Advanced Member
  • PipPipPip
  • 1,068 posts

Posted 07 August 2013 - 10:39 PM

I suppose you are talking about flexigrid. Right?

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



#3 Robert

Robert

    Advanced Member

  • Members
  • PipPipPip
  • 220 posts

Posted 08 August 2013 - 11:48 AM

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



#4 davidoster

davidoster

    Grocery CRUD Ninja

  • Advanced Member
  • PipPipPip
  • 1,068 posts

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.



#5 Robert

Robert

    Advanced Member

  • Members
  • PipPipPip
  • 220 posts

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.



#6 Amit Shah

Amit Shah

    grocery CRUD Master

  • Advanced Member
  • PipPipPip
  • 1,192 posts

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



#7 Amit Shah

Amit Shah

    grocery CRUD Master

  • Advanced Member
  • PipPipPip
  • 1,192 posts

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.



#8 kenshicu

kenshicu

    Advanced Member

  • Members
  • PipPipPip
  • 85 posts

Posted 09 August 2013 - 01:34 PM

ok thanks

I will see how I do that







Also tagged with one or more of these keywords: ajax_list, flexigrid, find, callback_column

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users