⚠ 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

how to costum GCRUD row table



garaa
  • profile picture
  • Member

Posted 10 April 2013 - 18:32 PM

hii grud lover, ihave any question..
how to costum row of gcrud grid, and put it html component like dropdown, input text or check box..??

and then get the values

maybe this pic can axplaination what i mean.  help me??

[attachment=504:ex.png]


Zalo
  • profile picture
  • Member

Posted 10 April 2013 - 21:22 PM

callback_column lets you change the default content of a column for any html you want.

If you set the input/dropdown + a jQuery that pass that info to a php that saves it, you should be able to do what you want :).

 

Hope it helped!


garaa
  • profile picture
  • Member

Posted 11 April 2013 - 06:14 AM

i know what you mean, thanks for your reply, but, ihave one question again :)

how can i add control form (like button  add action in default grocery table) in the table that trigger for submit data in rows table (is like a blue button) in the screenshot i was uploaded.???


davidoster
  • profile picture
  • Member

Posted 11 April 2013 - 11:22 AM

You need to change (static way) your list.php file under assets/grocery_crud/themes/your_theme/views or (dynamic way) adjust the $output in load_view.

Depending on what this button does you make the appropriate calls when it is pushed.