Is it good idea to write own grid in my case?

自古美人都是妖i 提交于 2019-12-24 07:19:44

问题


I need to do this data grid with sorting, AJAX, paging and loading variety data.

What is better customize exists grid(jqGrid, flexcGrid etc) or write my own?


回答1:


Start with your own ajax datagrid. I've wrote such an application with xajax and a nested xml datastructure. It's quite simple and you are more independent from the business side of your application (moneytize and personal contact). I can show you some examples.




回答2:


Start with using existing one - there's no point in reinventing the wheel. You will save much time and effort.

Write your own only if the existing components doesn't provide all the functionality you need. Your grid looks quite simple and standard - existing components will be enough. Style using CSS.




回答3:


Give Datatables a try

But in case you need the same styles and look and feel that would be difficult to attain with DataTables..

DataTables provides few its own styles and CSS themes...find the best suited

But this provides all the functionality you need and also is highly customizable...




回答4:


You need to look carefully at what is available, and make a decision based on what you can find.

If there is an existing product that does the functionality you require, and has the extensibility to allow you to achieve your requirements. If there is, then this will save you time, and mean that you don't have to support the coding that is already provided.

If you cannot find any such control, then write your own. Writing your own should be a second choice - not a last option, because it is significantly better that hacking an existing control to fit what you need, which will probably take longer.

It is a choice each time. There is no single best answer.



来源:https://stackoverflow.com/questions/6855997/is-it-good-idea-to-write-own-grid-in-my-case

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!