Following from
This article
I`m trying to use a dropDownlist when i`m editiing one of the columns in the DataTable wich i have applied the Jquery dataTable and JedEditable Plugin.
in the initialztion of JedEditable:
$('#myDataTable').dataTable().makeEditable({
"aoColumns": [
{
},
null,
{
indicator: 'Saving...',
tooltip: 'Click to select town',
loadtext: 'loading...',
type: 'select',
onblur: 'submit',
loadurl : 'GetSelectList',
loadtype : 'GET'
}
]
});
It calls the GetSelectList acction in the server but i dont know what type of data i should return to the client.I have a Category model wich has id and name.i can get them by GetCategories function,i need the final selectlist sone thing like :
<select name="category" id="country" rel="6">
<option value="1">cate1</option>
<option value="2">cate2</option>
<option value="3">cate3</option>
</select>
i searched the net,and the only thing wich i have found was an article but in php wich it`s greek to me.
Thanks