klipstein/dojango — Issue #34: 34 - Make datagrid search input field optional 
Author: klipstein
Created: 2011-11-06 12:56:39+00:00
State: open

If we have search fields for the data grid, the template generates an input
field.

Problem ? The generated field isn't following the select theme.

Plus current behavior breaks layouts e.g: BorderContainer with search field
on top, and grid in center.

Solution: Add an optional show_search to the datagrid's options. It'll
default to True, to keep current behavior, and won't break existing codebase.

If show_search will be False, the developer can create his own custom
search field as he wishes and call do_{{id}}_search() on his own.

See the attached patch.

Original link: http://code.google.com/p/dojango/issues/detail?id=34