Grid

Hi,

How to set the request header for the dhtmlx ajax requests? i.e

mygrid.load(src);


I need to set the Accept header to “text/javascript” because by doing so when the server side session expires i send window.location.href = ‘/session/new’ in response. Which will automatically take the page to login page when the session expires.

It not possible, component doesn’t allow to add extra headers to AJAX requests.
( even if it was possible, direct output of js command will not have any effect, because component expects to receive an xml , and will not be able to process incoming js code in the correct way )