Tables (Ingrid)

General

The Ingrid is a component in which the fields can be edited directly in the grid.

Configuration

Some properties of the grid can be configured via the JSON file.

Example configuration
{
"name": "timesInGridOptions",
"data": {
"dataSource": {
"group": {
"field": "Datum",
"dir": "asc"
}
},
"columns": [
{
//Column1
},
{
//Column2
}...
]
}
}

The property "group" specifies whether the grid should be grouped by default. For this purpose, the field ("field") and the direction ("dir"), in which the grid is to be grouped are specified.

The columns of the grid are defined in the property "column". A detailed description follows in the next sections.

Column types

The grid can display the following column types:



Properties of the columns

The following tables describe which properties the different columns support.

The column "Access to entity" indicates whether the property can access the entity e.g. "entity.Weekday".

The column "Access to row" indicates whether the property can access the values of the row e.g. "row.Weekday".

Example using the
"readonly": true //Normal boolean
 
"readonly": "entity.ShowWeekDay" //Access to entity (the column of all rows would be read-only at the same time or not)
 
"readonly": "row.WeekDay == 'Mo'" //Access to row (the column would be read-only or not for each row depending on the day of the week)


Standard properties

These properties apply to all columns except the MultiColumn.

Property

Description

Required

Access to entity

Access to row

type

Indicates the type of column. More on this can be found here.

images/s/ti67az/8401/0f22f74a0c673511e48ab1bc7ae6af4388aa8dbf/_/images/icons/emoticons/check.svg



field

This indicates which entity property is associated with this column.

images/s/ti67az/8401/0f22f74a0c673511e48ab1bc7ae6af4388aa8dbf/_/images/icons/emoticons/check.svg



title

Title of the column heading. This can also be drawn from translations.

images/s/ti67az/8401/0f22f74a0c673511e48ab1bc7ae6af4388aa8dbf/_/images/icons/emoticons/check.svg



width

Width of the column.




format

The format applied to the value before it is displayed.




readonly

Indicates whether the column is editable.


images/s/ti67az/8401/0f22f74a0c673511e48ab1bc7ae6af4388aa8dbf/_/images/icons/emoticons/check.svg

images/s/ti67az/8401/0f22f74a0c673511e48ab1bc7ae6af4388aa8dbf/_/images/icons/emoticons/check.svg

visible

Indicates whether the column is visible.


images/s/ti67az/8401/0f22f74a0c673511e48ab1bc7ae6af4388aa8dbf/_/images/icons/emoticons/check.svg


required

Indicates whether the column is a mandatory field.


images/s/ti67az/8401/0f22f74a0c673511e48ab1bc7ae6af4388aa8dbf/_/images/icons/emoticons/check.svg

images/s/ti67az/8401/0f22f74a0c673511e48ab1bc7ae6af4388aa8dbf/_/images/icons/emoticons/check.svg

template

Templates can be used to edit the design of the respective column. The actual value can be addressed with "value".

Example
"template": "# if(row.Projnr == 'WB') {# #=value # #} else {# #=row.ZeittypAsString # #} #"

You can find more information on the templates at "Other" .



images/s/ti67az/8401/0f22f74a0c673511e48ab1bc7ae6af4388aa8dbf/_/images/icons/emoticons/check.svg

headerTemplate

Headline design.

Example
"headerTemplate": "<div>Headline<br/>with line break</div>"




groupHeaderTemplate

Design of the group heading when grouped by column.

Example
"groupHeaderTemplate": "#=kendo.toString(value, 'd')#"




min

Minimum value of the column.


images/s/ti67az/8401/0f22f74a0c673511e48ab1bc7ae6af4388aa8dbf/_/images/icons/emoticons/check.svg

images/s/ti67az/8401/0f22f74a0c673511e48ab1bc7ae6af4388aa8dbf/_/images/icons/emoticons/check.svg

max

Maximum value of the column.


images/s/ti67az/8401/0f22f74a0c673511e48ab1bc7ae6af4388aa8dbf/_/images/icons/emoticons/check.svg

images/s/ti67az/8401/0f22f74a0c673511e48ab1bc7ae6af4388aa8dbf/_/images/icons/emoticons/check.svg

Further properties DropDown

If the properties "dataSource" and "dataSourceURL" are both filled, the property "dataSourceURL" stands out.

Property

Description

Required

Access to entity

Access to row

dataSource

The data source from which the data is drawn can be specified here.

Example
"dataSource": "parentServiceReport.lookups.feiertagarten"




dataSourceURL

Here you can enter the URL from which the data is taken.

Example
//Ohne Parameter
"dataSourceURL": "ServiceReportLookUp/GetDynZeitypen"
 
//Mit Parametern
"dataSourceURL": "ServiceReportLookUp/GetDynZeitypen?id=entity.Ressnr&belegnr=entity.Belegnr"
 
//Api Endpoint
"dataSourceURL": "Statistic/api/dynamicapi/<id>/GetData"


images/s/ti67az/8401/0f22f74a0c673511e48ab1bc7ae6af4388aa8dbf/_/images/icons/emoticons/check.svg

images/s/ti67az/8401/0f22f74a0c673511e48ab1bc7ae6af4388aa8dbf/_/images/icons/emoticons/check.svg

dataTextField

The text to be shown in the list.

images/s/ti67az/8401/0f22f74a0c673511e48ab1bc7ae6af4388aa8dbf/_/images/icons/emoticons/check.svg



dataValueField

The value associated with the entity. (Reference to the model)

images/s/ti67az/8401/0f22f74a0c673511e48ab1bc7ae6af4388aa8dbf/_/images/icons/emoticons/check.svg



parameters

Specifies the parameters for the URL.

Example
"parameters": {
"id": "entity.Ressnr",
"belegnr": "entity.Belegnr"
}


images/s/ti67az/8401/0f22f74a0c673511e48ab1bc7ae6af4388aa8dbf/_/images/icons/emoticons/check.svg

images/s/ti67az/8401/0f22f74a0c673511e48ab1bc7ae6af4388aa8dbf/_/images/icons/emoticons/check.svg

Other features DropDownOnDemand

This column contains all the properties of the DropDown column.

Property

Description

Required

Access to entity

Access to row

lookUpField

The value that is displayed when loading.




Further properties SearchColumn

Property

Description

Required

Access to entity

Access to row

searchWindowUrl

Url which is called up when the search button is pressed.

Example
//Return the Id from search
"searchWindowUrl": "DynamicSearch/Window/monkls"
 
//Return full object of search ("fullObjectKey" has to be set)
"searchWindowUrl": "DynamicSearch/Window/monkls?fullobject=true"

images/s/ti67az/8401/0f22f74a0c673511e48ab1bc7ae6af4388aa8dbf/_/images/icons/emoticons/check.svg

images/s/ti67az/8401/0f22f74a0c673511e48ab1bc7ae6af4388aa8dbf/_/images/icons/emoticons/check.svg


autocompleteEnabled

Suggestions are displayed while typing.




autocompleteUrl

Url from which the data for the proposals are drawn.




autocompleteDataTextField

Property of the elements from the suggestions which is to be displayed.




autocompleteTemplate

Appearance of the proposals.

Example
"autocompleteTemplate": "<div>${data.Description}</div>"




readOnlyTextField

If the field is not to be edited manually, this property must be true. For example, the field can only be edited via the search button.




fullObjectKey

Specifies the key of the object returned from the search (only relevant if "fullobject=true" see "searchWindowUrl").




deleteButtonEnabled

Indicates whether the "Delete" button is displayed.




template

Templates can be used to edit the design of the respective column.

Example
"template": "<div>#: field.Description #</div>"



images/s/ti67az/8401/0f22f74a0c673511e48ab1bc7ae6af4388aa8dbf/_/images/icons/emoticons/check.svg

Properties MultiColumn

Property

Description

Required

type

Indicates the type of column. There is more here.

images/s/ti67az/8401/0f22f74a0c673511e48ab1bc7ae6af4388aa8dbf/_/images/icons/emoticons/check.svg

title

Title of the column heading. This can also be drawn from translations.

images/s/ti67az/8401/0f22f74a0c673511e48ab1bc7ae6af4388aa8dbf/_/images/icons/emoticons/check.svg

columns

Columns that are subordinated to the MultiColumn.

images/s/ti67az/8401/0f22f74a0c673511e48ab1bc7ae6af4388aa8dbf/_/images/icons/emoticons/check.svg


Individual data

Individual data can be included in the same way as the other columns.

The only difference is that the property "field" must be included before the name of the column "Ind_".

Example
{
"type": "numericTextBox",
"field": "Ind_lbzlistind_int",
"title": "Test"
}

The property "field" is case-sensitive and everything after the "Ind_" must always be written in lower case.

Example

Example.json