2014-11-11 2 views
1

내 jqGrid에는 'Index', 'Name', 'Code'라는 3 개의 열이 있습니다.jqgrid의 누락 및 잘못 정렬 된 열 머리글?

enter image description here

나는 끌어 가로 스크롤이 표시되도록 행의 폭을 증가시키고 우리는 가장 오른쪽 끝에 있습니다. enter image description here

이제 '색인'열이 부분적으로 표시되거나 완전히 숨겨집니다. '코드'의 검색 도구 모음을 사용합니다.

enter image description here

나는 '코드'의 검색 도구 모음을 취소합니다. 그러나 이제는 가로 스크롤에 '색인'열이 포함되지 않고 열 머리글이 데이터와 잘못 정렬됩니다.

enter image description here

jQuery("#list451").jqGrid({ 
url:'localset.php', 
datatype: "json", 
height: 255, 
width: 600, 
colNames:['Index','Name', 'Code'], 
colModel:[ {name:'item_id',index:'item_id', width:65, sorttype:'integer', searchoptions:{sopt:['eq','ne','le','lt','gt','ge']}}, 
{name:'item',index:'item', width:150, sorttype:'string', searchoptions:{sopt:['eq','bw','bn','cn','nc','ew','en']}}, 
{name:'item_cd',index:'item_cd', width:100} ], 
rowNum:50, 
rowTotal: 200, 
rowList : [20,30,50], 
loadonce:true, 
mtype: "GET", 
rownumbers: true, 
rownumWidth: 40, 
gridview: true, 
pager: '#pager451', 
sortname: 'item_id', 
viewrecords: true, 
sortorder: "asc", 
caption: "Loading data from server at once" }); jQuery("#list451").jqGrid('filterToolbar',{searchOperators : true}); 

이미지 위에 확인하시기 바랍니다

답변

1
아마

수동 hDivbDiv (사업부와의 값 (그리드의 모든 헤더와 사업부)의 scrollLeft 속성을 설정해야 그리드의 본문).

문제를 재현 할 수있는 작업 데모가 없습니다. 당신은 loadComplete에 다음 줄을 추가 할 수 있습니다

this.grid.hDiv.scrollLeft = this.grid.bDiv.scrollLeft; 

내가 문제가 해결되기를 바랍니다.

+0

Oleg 아주 좋았어 .... 그 작동 괜찮아 ..... 고마워 ......... –

+0

@KrishnakumarSubbaiyan : 오신 것을 환영합니다! – Oleg