I haven't sorted this out, but I take the title to report something
that could be documented, at least in the widget builder interface.

we have:
``col_width`` is the width of each column (default)

looking at the code, there is also:
"col_widths" which is a list of widths for each column

Best regards



On Jan 19, 5:03 pm, blackthorne <[email protected]> wrote:
> The way you define the column names in the Jqgrid plugin is done,
> according to the book, with the "columns" attribute is a list of
> columns names to be displayed. However, in the plugin_wiki widget
> builder interface that is done with the attribute "colnames".
> In the code plugin_wiki controller, the used word seems to be
> "columns" as well.
>
> That said, I also couldn't make it with columns:
>
> ``
> name: jqgrid
> table: plugin_wiki_page
> fields: id,slug,description
> columns: title,slug,description
> width: 500
> col_width: [100,80,320]
> height: 300
> ``:widget
>
> Failed with:
> traceback:
> TypeError: jqgrid() got an unexpected keyword argument 'columns'
>
> Then I tried "colnames":
> And I got a dialog window with the message:
> "Length of colNames <> colModel!"

Reply via email to