EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: devnull on May 27, 2015, 12:50:14 AM



Title: Editable data list [Solved]
Post by: devnull on May 27, 2015, 12:50:14 AM
Is this possible, if so it would solve a problem where currently users have to enter a list as a comma-seperated list in a textarea.

If this was editable it would be a great solution, being able to add and delete items from the list without needing to use a comma seperated list

Thanks



Title: Re: Editable data list
Post by: stworthy on May 27, 2015, 01:11:00 AM
The datalist extends from datagrid. You can edit it by calling any editable methods such as 'beginEdit','endEdit','cancelEdit',etc.
Code:
$('#dl').datalist({
data: data,
columns:[[
{field:'text',editor:'textbox'}
]]
})