Click here to Skip to main content
15,912,021 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
actually my function returns the datatable dt,
now i want to display that datatable in jquery datagrid how i can do this?
Posted
Comments
Dhanamanikandan 8-May-12 8:58am    
Do you mean JQGrid?
sajan064 9-May-12 0:02am    
yes i mean jqgrid
how to implement this in mvc3

1 solution

You can add a function to catch selected row:

C#
$(document).ready( function () {
    $('#example').dataTable( {
        "sDom": 'T<"clear">lfrtip',
        "oTableTools": {
            "fnRowSelected": function ( node ) {
                alert( 'The row with ID '+node.id'+ was selected' );
            }
        }
    } );
} );
 
Share this answer
 
Comments
sajan064 9-May-12 0:04am    
please describe in detail
m new to this frame work asp.net mvc3

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