Categories | Question details Back To List | ||
loading progress bar of subgrid I have some questions in your reply below for adding progress while loading. 1) what is subgrid_obj in >> mygrid.attachEvent("onSubGridCreated",function(subgrid_obj){ 2) when the subgrid loads it displays a image . is it possible to getrid of the image? 3) what is the ID of the container where the subgrid in loaded? The latest version of "sub_row" excell (attached file) provides "onSubGridCreated" and "onSubGridLoaded" event handlers, which can be used to show/hide loading image. For example: mygrid.attachEvent("onSubGridCreated",function(subgrid_obj){ showImage(); return true; }) mygrid.attachEvent("onSubGridLoaded",function(){ hideImage() return true }) Where showImage() and hideImage() are some your functions. Answer posted by Support on Mar 20, 2008 02:46 Sorry for misleading information. By mistake the attached file was not the latest version. We have attached the latest to this answer. Please, try to use it. >> 1) what is subgrid_obj in The parameter which is passed to this event handler is the object of subgrid. >> 2) when the subgrid loads it displays a image . is it possible to getrid of the image? Yes, it is possible. Just use the approach we recommended in our previous answer. The "hideImage" function can be as follows: hideImage(){ document.getElementById("your_image_id").style.display = "none"; } >> 3) what is the ID of the container where the subgrid in loaded? There is no fixed ID of subgrid container. You can get object of this container using the following (but only when sub grid exists - when it is opened): var subDiv = mygrid.cells(rowId,cIndex).getSubGrid().entBox; Attachments (1) |