Use the system grid or your own grid.

Source: Internet
Author: User

Benefits of the system grid: It is too convenient, paging, different color of the line, click the title header to sort
Disadvantage: to implement Ajax, It is not intuitive to introduce it. You cannot define it as you like.

Advantages of Self-grid: self-control
Disadvantages: simple, nothing, allCodeWrite it by yourself. Question: can it be written? -- Yes!

Imagine the operation mode:
· Add a link at the bottom of the Grid. Add a row in the table and modify each row one by one. After the cursor leaves, it is saved to the database, to save a new record immediately, you must allow the existence of a blank record. When multiple users add a new record at the same time, the keyword may be repeated. Another method is to pop up a dialog box. After saving the record, append immediately to the end of the table.
· The mesh can be modified. One way is to directly double-click the modification and save the modification to the database after the cursor leaves. The other way is to add a modification link to the right of each row, after you click it, a dialog box is displayed. After you save it, update it to the table. You can also click Modify to display the SAVE and cancel links. Click Save to save the data; method 4: add a link to the bottom, select the row, and click Modify at the bottom. A dialog box is displayed.
· The grid allows deletion. Add a delete link to the right of each row, click it, and delete it from the database. At the same time, the row is also deleted from the table on the interface.

· After the mesh is implemented, the cursor leaves and immediately saves it to the database or adds a submit button. However, the latter solution is not good. If there are too many steps, it will be closed if it is accidentally submitted, repair is gone.

......

The more you want, the more you feel that you do not want the control provided by the system. It is a simple implementation, and then gradually modified.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.