⚠ 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

add form with grucery



maha

maha
  • profile picture
  • Member

Posted 12 January 2014 - 13:46 PM

i want to load the row inserted in add form immediate in grocery table

 

like the attached photo .

can anyone help me?


maha

maha
  • profile picture
  • Member

Posted 14 January 2014 - 08:26 AM

any body here?


Robert

Robert
  • profile picture
  • Member

Posted 14 January 2014 - 14:45 PM

I dont understand what you want to do exactly ... can you explain a bit better ?


maha

maha
  • profile picture
  • Member

Posted 14 January 2014 - 14:59 PM

i want to make add operation like delete operation i.e:

add form and the grid will be in one page like the picture above 

and when the user enter new data and click on submit this row appear immediately in the grid with out redirect to anther page . that's all :)


maha

maha
  • profile picture
  • Member

Posted 15 January 2014 - 07:00 AM

any help please..

victor

victor
  • profile picture
  • Member

Posted 15 January 2014 - 09:20 AM

1) make a form like you have on the image
2) then you can use jquery to get form data and send it (via post method) to the controller

3) make a controller method which will get /check post data and add new row.
After that you should return json data (for example "success=>true" if operation has been completed) 
4) if success == true you should refresh grid. 

$('#crud_page').trigger('change');

I don't know how it works in the fresh version of the library, but it worked before


maha

maha
  • profile picture
  • Member

Posted 15 January 2014 - 11:53 AM

ok i'll try it . thank you for replay