hi,
I need to be able to extract the SQL FilterExpression from a radgrid on the client-side. On clicking a button, I have a javascript function which should get the filter expression as an SQL string and then send it to a new window through a URL.
The new window then takes the FilterExpression from the URL and applies it to a new radgrid on the server side. This is for a "print friendly" version of the grid.
My javascription function is called from a client-side button click handler and looks like:
I need to be able to extract the SQL FilterExpression from a radgrid on the client-side. On clicking a button, I have a javascript function which should get the filter expression as an SQL string and then send it to a new window through a URL.
The new window then takes the FilterExpression from the URL and applies it to a new radgrid on the server side. This is for a "print friendly" version of the grid.
My javascription function is called from a client-side button click handler and looks like:
function PrintRadGrid() {
var ClientsGrid = $find("<%=ClientsGrid.ClientID %>");
var f = ClientsGrid.get_masterTableView().get_filterExpressions().toString();
var previewWnd = window.open('print/Clients.aspx?Filter=' + escape(f), '', '', false);
previewWnd.print();
}
Problem is that the filter variable is always blank and I cannot get the SQL expression I need.
Any ideas?
Thanks!