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
Search fields in search toolbar and column/column names not aligned
17/02/2009
18:13
Avatar
jmdavid
Member
Members
Forum Posts: 5
Member Since:
18/11/2007
sp_UserOfflineSmall Offline

Version 3.3: the search fields are not aligned with column names and columns (those last two are aligned).  And misalignment is cumulative (-n pixels for first column), -2n pixels for second column and so on):

|      |     |     |

|       |      |      |

code as follow: (notice that I used recommended gridModel:true,gridNames:false,gridToolbar:true)

organizationGrid = $("#organizations").jqGrid({
   url:"/intranet/organization/list?nd="+new Date().getTime(),
   editurl: "/intranet/organization/edit",
   datatype: "json",
   colNames:["Id", 
        "organization",
        "phone",
        "last name",
        "first name",
        "title",
        "email",
        "actions"],
   colModel:[{name:"organization_id", index:"organization_id", width:10, hidden:true},
        {name:"name", index:"name", width:300},
        {name:"phone_number", sortable:false, width:80},
        {name:"last_name", index:"last_name", width:100},
        {name:"first_name", index:"first_name", width:100},
        {name:"title", index:"title", width:200},
        {name:"email", sortable:false, width:80},
        {name:"actions", sortable:false, width:54, align:"center"} ],
   sortname: "<?php echo $this->sidx; ?>",  /* default: name  */
   sortorder: "<?php echo $this->sord; ?>", /* default: asc   */
   rowNum:<?php echo $this->rows; ?>,    /* default: 5    */
   page:<?php echo $this->page; ?>,     /* default: 1    */
   pager: $("#organizations_pager"),
   viewrecords: true,
   imgpath: img_path,
   rowList:[5,10,25],
   altRows: true,
   toolbar: [true,"top"]
    }); //end organization grid
  jQuery("#t_organizations").height(25).hide().filterGrid("organizations",{gridModel:true,gridNames:false,gridToolbar:true});
  jQuery("#organizations").navGrid('#organizations_pager',
   {edit:false,add:false,del:false,search:false,refresh:true}).navButtonAdd("#organizations_pager",
   {caption:"",title:"Toggle Search",buttonimg: img_path + "find.gif",
   onClickButton:function(){
    if(jQuery("#t_organizations").css("display")=="none") {
     jQuery("#t_organizations").css("display","");
    } else {
     jQuery("#t_organizations").css("display","none");
    } 
   }
  });

17/02/2009
18:15
Avatar
jmdavid
Member
Members
Forum Posts: 5
Member Since:
18/11/2007
sp_UserOfflineSmall Offline

oups! forgot HTML (notice use of class=scroll, cellpadding=0 and cellspacing=0):

<table id="organizations" class="scroll" cellpadding="0" cellspacing="0"></table><br/>
 <div id="organizations_pager" class="scroll" style="text-align:center;"></div><br/>

18/02/2009
04:16
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Please read the posts about this. filterGrid currently is not fully supported on the header grid.

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.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
32 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