Table of Contents

Class GridUI

Namespace
JJMasterData.Core.DataDictionary.Models
Assembly
JJMasterData.Core.dll

Opções configuradas no dicionário de dados

public class GridUI
Inheritance
GridUI
Inherited Members

Properties

EmptyDataText

Gets or sets the text to be displayed in the empty data row when a JJGridView control contains no records.

[JsonProperty("emptyDataText")]
[Display(Name = "Empty Data Text")]
public string EmptyDataText { get; set; }

Property Value

string

Remarks

Default value = (There is no record to be displayed).

EnableMultiSelect

Permite selecionar multiplas linhas na Grid habilitando um checkbox na primeira coluna. (Defaut = false)

[JsonProperty("enableMultSelect")]
[Display(Name = "Enable Multiselect")]
public bool EnableMultiSelect { get; set; }

Property Value

bool

EnableSorting

Habilita Ordenação das colunas (Default = true)

[JsonProperty("enableSorting")]
[Display(Name = "Enable Sorting")]
public bool EnableSorting { get; set; }

Property Value

bool

Remarks

Habilita ou não o link nos titulos permitindo a ordenação. Mesmo quando configurado como falso, a grid respeita a propriedade CurrentOrder

HeaderFixed

[JsonProperty("headerFixed")]
[Display(Name = "Header Fixed At Scroll")]
public bool HeaderFixed { get; set; }

Property Value

bool

IsCompact

[JsonProperty("isCompact")]
[Display(Name = "Compact mode")]
public bool IsCompact { get; set; }

Property Value

bool

MaintainValuesOnLoad

Maintains filters, order and grid pagination in the session, and recovers on the first page load. (Default = false)

[JsonProperty("maintainValuesOnLoad")]
[Display(Name = "Save User Preferences")]
public bool MaintainValuesOnLoad { get; set; }

Property Value

bool

Remarks

When using this property, we recommend changing the object's [Name] parameter. The [Name] property is used to compose the name of the session variable.

RecordsPerPage

Total de Registros por página (Default = 5)

[JsonProperty("totalPerPage")]
[Display(Name = "Total Of Records per page")]
public int RecordsPerPage { get; set; }

Property Value

int

Remarks

Se o RecordsPerPage for zero a paginação não será exibida

ShowBorder

Exibi borda na grid (Default = false)

[JsonProperty("showBorder")]
[Display(Name = "Show Border")]
public bool ShowBorder { get; set; }

Property Value

bool

ShowHeaderWhenEmpty

Gets or sets a value indicating whether the GridView header will remain visible when there is no data.

[JsonProperty("showHeaderWhenEmpty")]
[Display(Name = "Show Header When Empty")]
public bool ShowHeaderWhenEmpty { get; set; }

Property Value

bool

Remarks

Default value = (True).

To change the empty data message, refer to the EmptyDataText property

ShowPagging

Displays pagination controls (Default = true)

[JsonProperty("showPagging")]
[Display(Name = "Enable Pagination")]
public bool ShowPagging { get; set; }

Property Value

bool

Remarks

Hides all pagination buttons, however, it maintains the pre-defined pagination controls.

Pagination will be displayed if the number of records in the grid exceeds the minimum number of records on a page.

If the CurrentPage property is equal to zero, pagination will not be displayed.

If the CurrentUI.RecordsPerPage property is equal to zero, pagination will not be displayed.

If the TotalRecords property is equal to zero, pagination will not be displayed.

ShowRowHover

Alterar a cor da linha ao passar o mouse (Default = true)

[JsonProperty("showRowHover")]
[Display(Name = "Show Row Hover")]
public bool ShowRowHover { get; set; }

Property Value

bool

ShowRowStriped

Exibir colunas zebradas (Default = true)

[JsonProperty("showRowStriped")]
[Display(Name = "Show Rows striped")]
public bool ShowRowStriped { get; set; }

Property Value

bool

ShowTitle

Exibir título no cabeçalho da página

[JsonProperty("showTitle")]
[Display(Name = "Show Title")]
public bool ShowTitle { get; set; }

Property Value

bool

ShowToolBar

Exibir toolbar (Default = true)

[JsonProperty("showToolbar")]
[Display(Name = "Show Toolbar")]
public bool ShowToolBar { get; set; }

Property Value

bool

TotalOfRecords

Quantidade total de registros existentes no banco

[JsonProperty("totalReg")]
[Display(Name = "Total Of Records")]
public int TotalOfRecords { get; set; }

Property Value

int

TotalPaggingButton

Total de botões na paginação (Default = 5)

[JsonProperty("totalPaggingButton")]
[Display(Name = "Total Pagination Buttons")]
public int TotalPaggingButton { get; set; }

Property Value

int

UseVerticalLayoutAtFilter

[JsonProperty("useVerticalLayoutAtFilter")]
[Display(Name = "Use Vertical Layout At Filter")]
public bool UseVerticalLayoutAtFilter { get; set; }

Property Value

bool

Methods

DeepCopy()

public GridUI DeepCopy()

Returns

GridUI