How to change columns width, using 'flexOptions'.

266 views
Skip to first unread message

平子将太

unread,
Jun 18, 2013, 4:12:10 AM6/18/13
to flex...@googlegroups.com
Hello, 

I try to change each column width, using 'flexOptions'.
but it's not working. 

Anybody can help me? 

[Source]
-------------------------------------------
$(function(){
var tempColModel = [ {
display : 'Client ID',
name : 'client_id',
width : 120,
sortable : true,
align : 'left'
},  {
display : 'Client Name',
name : 'client_name',
width : 120,
sortable : true,
align : 'left',
}, {
display : 'Status',
name : 'status',
width : 100,
sortable : true,
align : 'left'
} ];
           
$(".flexme").flexigrid({
url : 'post2.php',
dataType : 'json',
colModel : tempColModel,
sortname : "client",
sortorder : "asc",
usepager : true,
title : '',
useRp : true,
rp : 15,
showTableToggleBtn : false,
width : 'auto',
height : '100%'
});
//★★★★★★★★★★★
$(".flexme").flexOptions({params: [{name:'client', value:'flexigrid_client_list'}].width(500)});
});
-------------------------------------------
Reply all
Reply to author
Forward
0 new messages