How to use ajax property of datatable to return data from .net web service

How to use ajax property of datatable to return data from .net web service

kshiprakshipra Posts: 1Questions: 1Answers: 0

Hi,

I want to populate data table from web service using ajax property so data table can still do client side processing.
I am thinking something like this:

$('#example').dataTable( {
"ajax": {
"url": "../.NET webservice",
"type": "POST"
}
} );

  1. Can I do this ?
  2. Data returned from .NET needs to be an array , is that right ?
    {
    "data": [
    [
    "Tom", "Utah", "Koala", "Kite"],

    ["Bob", "New Mexico", "Kangaroo", "Kite"]
    ] }

Thanks,
Kshipra

This discussion has been closed.