Smart Rendering total_count parameter

I’m using smart rendering and I know that you need to specify a total_count parameter in the xml structure coming down to the client. My issue is that I won’t know the total_count until after I make multiple calls to the server. And on the initial call, I would like to bring the results down back to the client right away and then have my code running in the background to make the rest of the calls to the server to get the entire result set. I’d like to send down the rows from the initial call so that the user sees the rows right away.



Thanks!

While it not supported officially , next code can be used

mygrid.loadXML(url); // you have loading rows in grid with some predefined total count

var real_count = acquired_in_some_way();

mygrid.rowsBuffer[real_count]=null;
mygrid._reset_view();