CodeIgniter Forums
flexigrid column width fit entire row - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: flexigrid column width fit entire row (/showthread.php?tid=12554)



flexigrid column width fit entire row - El Forum - 10-23-2008

[eluser]Unknown[/eluser]
Hello,

Is there a way to configure flexigrid, that the columns always use the entire row, regardless of their content? (like the behaviour of a classic html-table).

Unfortunately I wasn't successful with width='auto', but maybe this configuration isn't supposed to. (I tried some auto-width combinations with col-width & grid-width, too - no success)

Here is my example call (pretty basic)
Code:
\$("\#flex1").flexigrid
(
            {
            url\: '___DYNAMICURLPATH___',
            dataType\: 'json',
            colModel \: \[
                {display\: '', name \: 'act', width \: 'auto',  align\: 'left'},
                {display\: 'Name', name \: 'name', width \: 'auto',  align\: 'left'},
                
                \],
            buttons \: \[
                {name\: 'Question anlegen', bclass\: 'add', onpress \: addObject}
                            \],
                
#            searchitems \: \[
#                {display\: 'Name', name \: 'name', isdefault\: true},
#                {display\: 'Ort', name \: 'ort'}
#                \],
            sortname\: "name",
            sortorder\: "asc",
            usepager\: true,
            title\: 'Objekte',
            useRp\: true,
            rp\: 15,
            showTableToggleBtn\: true,
            width\: 'auto',
            onSubmit\: addFormData,
            onSuccess\: setAjaxForms,
            height\: 400
            }
            );

thanks for any advice!