내가있는 jqGrid의 setGridWidth 함수를 호출하기 위해 노력하고있어,하지만 오류를 받고 있어요 :있는 jqGrid - setGridWidth 기능
Object [object Object] has no method 'setGridWidth'
나는이 바보 같은 확신합니다. 다음은 눈금을 표시하고 크기를 조정하는 코드입니다.
$("#jqGridElement").jqGrid({
datastr: tableSrc,
jsonReader: { repeatitems: false },
datatype: "jsonstring",
colNames: ['title', 'subtitle'],
colModel: [
{ name: 'title', index: 'title', width: 55 },
{ name: 'subtitle', index: 'subtitle'}],
height: 'auto',
gridview: true
});
$("#jqGridElement").setGridWidth(600);'
나는 또한 시도했다
편집 :
var gridObj = $("#jqGridElement").jqGrid({ datastr: tableSrc, .......
gridObj.setGridWidth(300);
같은 결과
귀하의 가정에 자리가있었습니다. 다시 한번 감사드립니다. –
해트트릭을하고 싶다면 : http://stackoverflow.com/questions/7260786/jqgridreloading-data –
그리고 gridObj 사용에 대한 귀하의 조언을 정말 좋아했습니다. 다시 한번 감사드립니다. –