Click here to Skip to main content
14,302,218 members
Rate this:
Please Sign up or sign in to vote.
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": [
    {
        //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 :
<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, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100