Actions

Replace jqGrid: Difference between revisions

From LimeSurvey Manual

No edit summary
Line 35: Line 35:
* Yii included GridView
* Yii included GridView
** http://www.yiiplayground.com/index.php?r=UiModule/dataview/gridView
** http://www.yiiplayground.com/index.php?r=UiModule/dataview/gridView
** Started in https://github.com/LimeSurvey/LimeSurvey/pull/460
** Features
** Features
*** Filter by model : http://www.yiiframework.com/doc/api/1.1/CGridView#filter-detail , model can extend attribute.
*** Filter by model : http://www.yiiframework.com/doc/api/1.1/CGridView#filter-detail , model can extend attribute.

Revision as of 10:02, 31 March 2016

We want to replace jQgrid with another similar jQuery library.

Why?

  • Hard to exactly control and style the HTML, e.g. wrap something with a span tag
  • Not maintained since the license changed
  • ...more?

Wanted features

  • Sort by column
  • Inline edit or pop-up edit
    • Pop-up dialog should handle CActiveForm and model rules validation
  • Edit single cell in-line?
  • Massive actions, e.g. marking 10 elements and delete all
  • Fetch using Ajax
  • Filter and/or search
  • Pagination
  • GPL or MIT license (or another free licence like a speech)
  • i18n

Suggestions

Other notes

CPDB

CPDB uses jQgrid to open up - within the table - possibilities to edit attributes and surveys for one participant. This should probably be a dialog instead.

Dialog or inline

  • Actual edit in token don't update link. And we have issue with some control. A dialog edit fix this 2 issue more easily.
  • Alterantive : use http://www.appelsiini.net/projects/jeditable (still think dioalog editor is the best)