Is factible stopping the charge elements?

Hello i’m dante from argentina , i have a big problem…
when I call one web service, this service return a big XML, when this xml the are charge in grid have big delay…
Exist one posibility the stopping this proccess or for example the proccess going run
but don’t continue charge data in grid

for example… the xml have more less 100.000 register , i need stopping the charger grid with button…
i tried with any solution that i view in dhtmlx web but I don’t find the answer correct…

thanks very much

PD. Sorry for my english I know that is good… i hope you understand :nerd:

dear all,
i’m view in forum , i view the post " viewtopic.php?f=2&t=811&p=2167&hilit=stop#p2167 " , i need something similar , becouse i don’t used the “mygrid.xmlLoader”
I’m use the “grid.parse(filas,“jsarray”);” … in “filas” in the filas , i have the big content …
exist something to same for stop?

thanks again

When you are using “mygrid.xmlLoader” method, you are loading data from external xml file with Ajax and it possible to stop this process. But parse() method works with js array which should be already loaded to the client side. That’s why there is no way to stop it.

Check static srnd mode - it doesn’t allow stopping , but it will decrease loading time up to 10 times, so you may need not “stopping” anymore

dhtmlx.com/docs/products/dht … tatic.html

I find the solution!!!
important the arrays have global and one counter

when you setting the grid put:
[…]

contadorparcial=0;
intervalo=setInterval (“rellenar()”, 1000);
[…]

and

function rellenar(){
for ( var i = 0; i < contadorparcial; i++) {
arraytemporal[i] = filas[i];
}
contadorparcial=contadorparcial+100;

   	tablaValoresTb.parse(arraytemporal,"jsarray");
   	
	if (contadorparcial > filas.length){
	    clearInterval(intervalo);	
	}

}

the process cod the execute be 1 minute and add in grid … and now show you how stoping in any time…

stop! <-- cod html

function frenar(){

 if(confirm("desea frenar el proceso?")){
	window.clearInterval(intervalo);
	doOnDistributedEnd(); // <-- in this function enable button's
 }

}

is a excelent solution!!

regards!!
Dante