Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
pager sometimes is'nt shown ...
31/03/2009
02:22
Avatar
giluka
rome
Member
Members
Forum Posts: 28
Member Since:
09/01/2009
sp_UserOfflineSmall Offline

Hello,

my problem: in some conditions, not well identified, pager shown in the bottom of the grid (pagination, ecc..) is'nt shown ...

Where are the condition that script evaluate to show it ?

thans

01/04/2009
02:20
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

Hello

Strange. Is this only in IE? Do you mean only the images or all - texts, select and input box again with images?

Regards

Tony

For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.

01/04/2009
02:47
Avatar
giluka
rome
Member
Members
Forum Posts: 28
Member Since:
09/01/2009
sp_UserOfflineSmall Offline

i'm using firefox...

with "pager" i refer to entire bottom bar shown after grid...

More info:

i have a div (say:A) dynamically filled with an ajax call;

In html code of A there's another div (say:B);

In these situation div B is filled with another ajax call to grid page ...

Hi

01/04/2009
03:33
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

Hello,

Aha - call the grid with setTimout function.

Regards

Tony

For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.

01/04/2009
05:37
Avatar
giluka
rome
Member
Members
Forum Posts: 28
Member Since:
09/01/2009
sp_UserOfflineSmall Offline

no,

it does not work ...

is there a method to force redesign of pager ? some function to call after grid loading (or in a setTimeout method) ...

thanks

01/04/2009
05:47
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

Hello,

Construct your grid in complete event of the last ajax call.

Regards

Tony

For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.

01/04/2009
08:10
Avatar
giluka
rome
Member
Members
Forum Posts: 28
Member Since:
09/01/2009
sp_UserOfflineSmall Offline

does not work ...

ajax code i've used is load event of jquery ...

$('#B).load(URL, null, function(responseText, textStatus, XMLHttpRequest){
            });

Where URL points to page in which i load grid ...

i've noticed that first time i call it pager displays correctly ... from the second time does not ...

02/04/2009
03:25
Avatar
giluka
rome
Member
Members
Forum Posts: 28
Member Since:
09/01/2009
sp_UserOfflineSmall Offline

I tried to understand point in code where pager redesign failed ...

in grid.base.js, at row 1061 there's function called setPager.

It seems that after instruction

$(ts.p.pager).append(pgl+pginp+pgr);

pager does not appears ... (but it is shown first time after this)

help me, please ...

02/04/2009
10:27
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

Hello,

Could you please send me a link to the problem. It is very difficult in this case to understand where is the error.

Regards

Tony

For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.

03/04/2009
02:58
Avatar
giluka
rome
Member
Members
Forum Posts: 28
Member Since:
09/01/2009
sp_UserOfflineSmall Offline

It is difficult (or impossible) to send you link of my application ...

I've found a workaround, for now: i make a generation of a new pager (with a newer id) every time i call ajax ...

My code:

openGrid=function(...){
...

$('#gridDiv').load(URL, parameters, function(responseText, textStatus, XMLHttpRequest){...})

...

}

URL refers to a JSP page in which i've defined grid ...

    <script type="text/javascript">
   
    $(document).ready(function(){

        var gridSettings= {
            colNames:['id', 'Date', 'Title'],
            colModel:[
              {name:'id', index:'id', hidden:true},            
              {name:'date', index:'date',
                    width:'65', resizable:true, sortable:true, search:true},
              {name:'title', index:'title',
                    width:'175', resizable:true, sortable:true, search:true}    
              ],
            sortname: 'date',
             width:500,
             height:145,
            shrinkToFit:false
        }
   
       $(this).jqGrid(baseSettings);
       $(this).navGrid($('#doc_grid_pager'),
                    {edit:false,add:false,del:false},
                    {}, // edit parameters
                    {}, // add parameters
                    {reloadAfterSubmit:false} //delete parameters
                    );   
   
    });
             
    </script>

<div style="margin-left:5px;">
        <table id="doc_grid" class="scroll"></table>
        <div id="doc_grid_pager" class="scroll"></div>           
</div>       

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
43 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

OlegK: 1255

markw65: 179

kobruleht: 144

phicarre: 132

YamilBracho: 124

Renso: 118

Member Stats:

Guest Posters: 447

Members: 11373

Moderators: 2

Admins: 1

Forum Stats:

Groups: 1

Forums: 8

Topics: 10592

Posts: 31289

Newest Members:

, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information