Custom column rendering with server-side processing in IE8

Custom column rendering with server-side processing in IE8

ChernikovPChernikovP Posts: 1Questions: 1Answers: 0

I'm rendering td adding links to it. Datatables use serverside processing

$grid.dataTable({
        'sAjaxSource': DT.relativeUrl() + 'GetTableRepresentation',
        "bServerSide": true,
        'bProcessing': true,
        ...
        {
               'render': function (data, type, row) {
                     return (data) ? data + CreateSpan('links', CreateLink('Preview,'Preview'),
                                     CreateLink('Remove', 'Remove')).innerHtml() : '';
                },
         'targets': [1]
        }
});

So, as this is dynamically added links, I use following js-code to bind click event:

$grid.on('click', 'a', function (e) {
        e.preventDefault();
        alert('success!');
    });

And this works perfectly everywhere except InternetExporer 8. And what is even more weird when I opt for client-side processing
turning bServerSide to false its working great everywhere. But I'm loading into datatables a big portion of data, so server-side processing is inevitable. Lend me a helping hand, guys, cause I'm really stuck!

This discussion has been closed.