3.0.0

regarding grid performance....

hi all,
i have actually enabled a pop up when ever i perform right click on the grid....but i dont kno der is sum delay in the performance of grid...when i click on headers for 3 to 4 times ill b able perform right click and get the pop up,other wise i can get the pop up,........ can any1 help me out .....plz help me to over cum tat delay....



thanks
jessica
jessica
September 2,
hi all,
i have actually enabled a pop up when ever i perform right click on the grid....but i dont kno der is sum delay in the performance of grid...when i click on headers for 3 to 4 times ill b able perform right click and get the pop up,other wise i cant get the pop up,........ can any1 help me out .....plz help me to over cum tat delay....
jessica
September 2,
Hello,

I did not understand, can post the code?
Patrick
September 2,
Hi Patrick,
Due to my company policy ill not b able to share my code:(.........but i can the defect properly.......when i load a page which consists of the grid......i have enabled right click functionality on the grid.....when i perform right click on the grid i have a pop up which ill displayed.....but before that i need to refresh the grid by clicking on header or i need to scroll down through the grid...den nly the right click is working...:(
jessica
September 3,
September 3,
i m really sorry i dont think dis is d solution for my prob...plz any1 help me out...:(.
jessica
September 3,
i have got the pop up...thats not the problem...but since grid is not refreshing or i dont kno for wat reason the context menu is getting enabled only when i click on the header for sum 2 to 3 times...or i need to scroll n refresh the whole grid...den nly context menu ill show its magic............
jessica
September 3,
September 3,
Hum....
Without the code is hard to help but I will try.

If your problem is interacting with the click of the header and end up disabling
planning, you can collect the value of planning to force
so after updating the data.


/* startup code */
var global = {};
global.order = "ascending";
global.selectedcol = 2;

/* create grid here */
// ......

/ * Selector ordering capture * /
objgrid.onHeaderClicked = function(event,index){
if(global.order=="descending"){
global.order="ascending";
}else{
global.order="descending";
}
global.selectedcol = index;

/* captured click code here */

/* return false, do grid order */
return(false);
}

/* update grid data here */
// ......


/* keep order */
objgrid.sort("");
objgrid.refresh();
objgrid.sort(global.selectedcol, global.order);


The above was the solution I found for creating an automatic refresh keeping order. I get the data via JSON.


Patrick
September 3,
!!!!!!!!!!!!!!!!

Use setinterval() in 1 sec after right click to do objgrid.sort() !!!
Patrick
September 3,
thanks a lot patrick:)
jessica
September 4,
hey ppl i have a prob of similar type....my prob is wen the page gets loaded ...without clicking any were wen i right click on the grid i m not gettin the pop up...when i scroll in grid and click on grid header n den right click ill get the pop up.....i want this to be done wen the page is loaded n clicked on grid:...plz help me
krishna
September 4,
hey patrick....in set interval i need to pass two parameters in my case wat shld i pass.......
jessica
September 5,
Hello!

Notice in my example. By capturing the event in objgrid.onHeaderClicked,
sorting is saved in global variable, which has initial values.
Run like this code:

/* in global code */
function grid_sort_force(){
objgrid.sort(global.selectedcol, global.order);
}

/* on objgrid.onHeaderClicked code */
window.setTimeout(grid_sort_force, 1000);
Patrick
September 6,

This topic is archived.

See also:


Back to support forum

Search

Version 2

Looking for AW 2.6 ?
The old site is here.