Welcome, Guest
Username: Password: Remember me

TOPIC: [SOLVED] Edit/Delete buttons inside grid not working!

[SOLVED] Edit/Delete buttons inside grid not working! 23 Nov 2011 08:07 #554

  • giori
  • giori's Avatar
  • Offline
  • Senior Member
  • Posts: 73
  • Thank you received: 14
  • Karma: 6
Following lesson 4 I moved the Edit/Delete Buttons inside the grid, so they are displayed for every single record.
Now in one project they work ok, in the other when I click on them, nothing happens. Can't see any difference between the two. Just dragged the two tasks into the grid and removed the standard buttons in the toolbar.

Edit: Is it possible to m ove a post from one category to another?
Last Edit: 23 Nov 2011 08:46 by giori. Reason: Wrong category
The administrator has disabled public write access.

Re: Edit/Delete buttons inside grid not working! 23 Nov 2011 09:39 #555

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
Oupps !!! In facts.

It appears if the toolbar is removed.


Ok, Solved Now.

Please regenerate.
Coding is now a piece of cake
The administrator has disabled public write access.

Re: Edit/Delete buttons inside grid not working! 23 Nov 2011 10:30 #556

  • giori
  • giori's Avatar
  • Offline
  • Senior Member
  • Posts: 73
  • Thank you received: 14
  • Karma: 6
Thank you for the quick fix. My first project is almost finished!
The administrator has disabled public write access.

Re: Edit/Delete buttons inside grid not working! 23 Nov 2011 10:34 #558

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
Wait a minute, I am currently adding the functionality for your right-aligned FRONT toolbar (1 hour max)

www.j-cook.pro/forum/6-interface-online-...project-defaults#552
Coding is now a piece of cake
The administrator has disabled public write access.

Re: Edit/Delete buttons inside grid not working! 23 Nov 2011 12:49 #567

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
Done
Coding is now a piece of cake
The administrator has disabled public write access.

Re: Edit/Delete buttons inside grid not working! 23 Nov 2011 13:22 #569

  • giori
  • giori's Avatar
  • Offline
  • Senior Member
  • Posts: 73
  • Thank you received: 14
  • Karma: 6
Still does not work for me. Toolbars are still on the left for all my 3 projects.

Edit: Sorry for being to quick: After logging out from Cook and deleting the cache I now see the alignment buttons! I did not see them before! So it ok now. Thank you for the quick fix!
Last Edit: 23 Nov 2011 13:40 by giori. Reason: Complaining too quickly
The administrator has disabled public write access.

Re: Edit/Delete buttons inside grid not working! 23 Nov 2011 13:52 #570

  • giori
  • giori's Avatar
  • Offline
  • Senior Member
  • Posts: 73
  • Thank you received: 14
  • Karma: 6
The Edite/Delete buttons now work inside the grid, but the delete button is linked to the wrong view.

Deleting a record should display the updated grid again, instead it calls the edit form, which is wrong.

Also the delete botton should have some security check "Do you really want to delete this item(s)?". If you click on delete the record it is unrecoverably gone.

Also, if you move the edit/delete button to the grid, the selection field at the beginning does not make sense any longer. In this case it could be hidden.

Also a problem with the Apply button. Usually this is used to enter multiple records one after the other without the need to go back to the grid every time, so after clicking Apply, a new empty form should be presented to the user. If you just modify the data on the form, the record will be only updated.
Also clicking Apply, then entering new data, then clicking Save just updates the record instead of creating a new one.
The administrator has disabled public write access.

Re: Edit/Delete buttons inside grid not working! 23 Nov 2011 22:02 #574

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
The Edite/Delete buttons now work inside the grid, but the delete button is linked to the wrong view.
Deleting a record should display the updated grid again, instead it calls the edit form, which is wrong.

Are you talking about the grid buttons or the toolbar buttons ?
I don't see the bug, so please tell me what project/table/side... you are talking about.
If you are using the toolbar buttons, please don't specify any redirecting layout in the properties and tell me what you get.

Also the delete botton should have some security check "Do you really want to delete this item(s)?". If you click on delete the record it is unrecoverably gone.

Right. Keep in touch.

Also, if you move the edit/delete button to the grid, the selection field at the beginning does not make sense any longer. In this case it could be hidden.

This is right, but you can really easily remove it from your template.
All stuffs that are about HTML are secondary. This is not for what Cook has been build.
It is good that you enter in the soure code and understand how the component works. It will always be the same structure, so it is really useful for you entering in it and learning it.
Of course, little by little, step-by-step I will ameliorate the HTML possibilities and design, but for now I have lot of functionalities to develop on the application layer.


Also a problem with the Apply button. Usually this is used to enter multiple records one after the other without the need to go back to the grid every time, so after clicking Apply, a new empty form should be presented to the user. If you just modify the data on the form, the record will be only updated.
Also clicking Apply, then entering new data, then clicking Save just updates the record instead of creating a new one.

The description you do about Apply buttons is the "Save & New" button. In Joomla, Apply is to stay on the current item form (in order to see the changes, for example)
The Save & New Task button is on the list for next devs.
Coding is now a piece of cake
The administrator has disabled public write access.

Re: Edit/Delete buttons inside grid not working! 24 Nov 2011 08:53 #581

  • giori
  • giori's Avatar
  • Offline
  • Senior Member
  • Posts: 73
  • Thank you received: 14
  • Karma: 6
Are you talking about the grid buttons or the toolbar buttons ?
I don't see the bug, so please tell me what project/table/side... you are talking about.
If you are using the toolbar buttons, please don't specify any redirecting layout in the properties and tell me what you get.
I was talking about the grid buttons. They are both working now correctly. Don't know exactly why it did not work, but I changed the item layout to default layout. After that it was OK.
Do you really want to delete this item(s)?
I noticed that it has been added in the the meantime. Very quick response. Thank you!
This is right, but you can really easily remove it from your template.
All stuffs that are about HTML are secondary. This is not for what Cook has been build.
It is good that you enter in the soure code and understand how the component works. It will always be the same structure, so it is really useful for you entering in it and learning it.
Of course, little by little, step-by-step I will ameliorate the HTML possibilities and design, but for now I have lot of functionalities to develop on the application layer.
OK, no problem! Yes, better concentrate on new functionality.
The description you do about Apply buttons is the "Save & New" button. In Joomla, Apply is to stay on the current item form (in order to see the changes, for example)
The Save & New Task button is on the list for next devs.
OK, also no problem! Will be waiting for "Save & New".
Last Edit: 24 Nov 2011 08:54 by giori.
The administrator has disabled public write access.

Re: Edit/Delete buttons inside grid not working! 24 Nov 2011 09:06 #582

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
For now, you can already create Save & New directly in the builder :

On the Save task button properties, choose to redirect to the same layout (choosing it in the list),
and then click the 'Reset' option. (Should appears for an item layout of the same table).

You can even do it with the Apply button.
Coding is now a piece of cake
The administrator has disabled public write access.
Time to create page: 0.079 seconds

Get Started