Click here to Skip to main content
11,490,003 members (59,519 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# jQuery DataTable MVC3
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 17-May-12 2:34am
Edited 17-May-12 4:31am
v3

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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 600
1 Andy Lanng 233
2 OriginalGriff 208
3 Maciej Los 160
4 _duDE_ 141
0 Sergey Alexandrovich Kryukov 9,608
1 OriginalGriff 8,475
2 Sascha Lefèvre 3,419
3 Maciej Los 3,106
4 Richard Deeming 2,370


Advertise | Privacy | Mobile
Web01 | 2.8.150520.1 | Last Updated 17 May 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100