Regular MIGX TVs have the ability to use drag&drop to sort the items in the grid, but I haven’t figured out how to do the same with a (paginated) MIGXdb grid.
Relevant code bits of my current config:
{
"extended": {
"migx_add": "Add software provider",
"disable_add_item": "",
"add_items_directly": "",
"formcaption": "",
"update_win_title": "Edit software provider",
"win_id": 100001,
"maxRecords": "",
"addNewItemAt": "bottom",
"media_source_id": "",
"multiple_formtabs": "",
"multiple_formtabs_label": "",
"multiple_formtabs_field": "",
"multiple_formtabs_optionstext": "",
"multiple_formtabs_optionsvalue": "",
"actionbuttonsperrow": 4,
"winbuttonslist": "",
"extrahandlers": "this.handlePositionSelector||this.handleColumnSwitch",
"filtersperrow": 4,
"packageName": "xxxxxxx",
"classname": "xxxSoftware",
"task": "",
"getlistsort": "menuindex",
"getlistsortdir": "ASC",
"sortconfig": "",
"gridpagesize": 20,
"use_custom_prefix": "0",
"prefix": "",
"grid": "",
"gridload_mode": 2,
"check_resid": 1,
"check_resid_TV": "",
"join_alias": "",
"has_jointable": "yes",
"getlistwhere": "",
"joins": "",
"hooksnippets": "",
"cmpmaincaption": "External sources",
"cmptabcaption": "Software",
"cmptabdescription": "A list of all software providers.",
"cmptabcontroller": "",
"winbuttons": "",
"onsubmitsuccess": "",
"submitparams": ""
}
}
{
"columns": [
...
{
"MIGX_id": "",
"header": "Sort",
"dataIndex": "menuindex",
"width": 20,
"sortable": true,
"show_in_grid": 1,
"customrenderer": "",
"renderer": "this.renderPositionSelector",
"clickaction": "",
"selectorconfig": "",
"renderchunktpl": "",
"renderoptions": "",
"editor": ""
}
]
}
This results in a little positioning menu appearing inside each item, which lets you choose the desired target position:
I don’t think this is very intuitive and client feedback confirms that. Is it possible to use regular drag&drop for this instead?