Serenity: Hide grid-toolbar and s-QuickSearchBar in Grid

Created on 23 Mar 2017  路  9Comments  路  Source: serenity-is/Serenity

Please, how can I hide these items (grid-toolbar and s-QuickSearchBar)?

With a template xyzGrid.Template.html?

Thank you

Most helpful comment

Overraide createToolbar and createQuickSearchInput, but is sufficient createToolbar

protected createToolbar(): void {
}

protected createQuickSearchInput(): void {
}

All 9 comments

in your grid constructor
use jQuery to play with html.

Overraide createToolbar and createQuickSearchInput, but is sufficient createToolbar

protected createToolbar(): void {
}

protected createQuickSearchInput(): void {
}

Thank you.

As well createQuickSearchInput()

@Estrusco cool deal man!
Any idea how do I hide bottom navigation of the grid (it's always just a bunch of lines, so no need with heavy navigation buttons

@ga5tan if you talk about pager, you can override usePager in your xyzGrid.ts

        protected usePager(): boolean {
            return false;
        }

@Estrusco MAN! you are on fire. Spot on. BIG THANKS
Since I have u on the line, can u please suggest, how to replace (override) Save button with fancier Submit button at the bottom of the page (under all the entry forms)

btw where do u get info like this. Is there any other documentation besides Developers Guide?

You may try to edit the following file

.\Views\Templates\EntityDialog.Template.html

It will change all your dialog look.

@dfaruque thx, I checked that, but there is not much.
and no mention of the button.
for now I guess I will just try to hide the save button and put another one with service call at the bottom.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

JohnRanger picture JohnRanger  路  3Comments

AmuthaKondusamy picture AmuthaKondusamy  路  3Comments

dudeman972 picture dudeman972  路  3Comments

Akarsh03 picture Akarsh03  路  3Comments

kilroyFR picture kilroyFR  路  3Comments