Inhalte aufrufen

add new entry in grid/table


  • Bitte melden Sie sich an, um eine Antwort zu verfassen.
2 Antworten zu diesem Thema

#1 Guest_Dimitry_*

Guest_Dimitry_*
  • Guests

Geschrieben: 03 November 2016 - 17:35

i have a new simple entity. the entity has relation to product. so i did a new tab to show/edit the list of entries in the table.
each row has edit/delete button.

under the table i have also add button to add new instance.

what i want is by clicking add button to show a new row in the table with save/cancel button, by clicking save - the new instance must be created. do you have similar functionality in your code? can you provide me an example?

 

thanks in advance!



#2 Murat Cakir

Murat Cakir

    SmartStore AG

  • Administrators
  • 1118 Beiträge

Geschrieben: 03 November 2016 - 17:45

Please have a look at the demo backend:

  • Edit product > Category tab, OR
  • Edit product > Manufacturer tab, OR
  • Edit product > Price tab
  • etc.

They all use an ajax data grid with inline editing and follow the pattern you describe.


Murat Cakir
SmartStore AG


#3 Guest_Dimitry_*

Guest_Dimitry_*
  • Guests

Geschrieben: 04 November 2016 - 15:28

cool, very easy

thanks!