Click here to Skip to main content
15,897,094 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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:
Java
$('#myDataTable').dataTable().makeEditable({
    "aoColumns": [
    {
        //Empty object is used for the default editable settings
    },
    null,//null for read-only columns
    {
        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 :
HTML
<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
Posted
Updated 17-May-12 3:31am
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900