I believe you can do

SQLFORM.grid(....,exportclasses=dict(
            csv_with_hidden_cols=False,
            xml=False,
            html=False,
            tsv_with_hidden_cols=False,
            tsv=False))

to disable some exports. (Only list in the dict those you want to disable).
You can create your own export:

SQLFORM.grid(....,exportclasses=dict(
     ...
     mytype = (customExporter,'MyTypeLabel'),
     ...))

Look at ExporterCSV in sqlhtml.py for a model of a customExporter


On Sunday, 11 November 2012 22:00:29 UTC-6, qwer qwer wrote:
>
> Hello,
> 1.How to remove export and import and search options from smartgrid?
> 2. I want an export dropdown containing export as pdf,csv for a table.How 
> to do it??
>  Thanks..
>

-- 



Reply via email to