SchedulerPro/Grid Version 5.6.8
We use the SchedulerPro 5.6.8 library to work with Grid, because if we use both Scheduler and Grid with different libraries, our styles break (but now about something else)
If we enable StateProvider.setup('local'), then the records are displayed on the first boot, but on the second boot (after the state has been registered in local storage) we no longer see them until we call the refreshRows function.
{
"appendTo": {
"_prevClass": "w-100 bryntum-grid-container"
},
"loadMask": "Chargement en cours",
"stateId": "gridEventsListing",
"autoHeight": false,
"rowHeight": 38,
"height": "80vh",
"minHeight": "80vh",
"fixedRowHeight": true,
"features": {
"stripe": true,
"quickFind": true,
"excelExporter": true,
"cellMenu": false,
"filterBar": {
"keyStrokeFilterDelay": 1500
},
"regionResize": true
},
"selectionMode": {},
"columns": {
"data": [
{
"id": "created_at",
"field": "created_at",
"text": "DATE ENREGISTREMENT",
"flex": 1,
"type": "date",
"htmlEncode": false,
"editor": false
},
{
"id": "company_name",
"field": "company_name",
"text": "CLIENT",
"flex": 1,
"htmlEncode": false,
"editor": false
},
{
"id": "customer_name",
"field": "customer_name",
"text": "CONTACT",
"flex": 1,
"htmlEncode": false,
"editor": false
},
{
"id": "phone",
"field": "phone",
"text": "TEL CONTACT",
"flex": 1,
"htmlEncode": false,
"editor": false
},
{
"id": "email",
"field": "email",
"text": "Email",
"flex": 1,
"htmlEncode": false,
"editor": false
},
{
"id": "incremental_code",
"field": "incremental_code",
"text": "Code événement",
"flex": 1,
"htmlEncode": false,
"editor": false
},
{
"id": "event_name",
"field": "event_name",
"text": "TITRE DU PROJET",
"flex": 1,
"htmlEncode": false,
"editor": false
},
{
"id": "dates",
"field": "dates",
"text": "DATE EVENEMENT",
"type": "date",
"flex": 1,
"htmlEncode": false,
"editor": false
},
{
"id": "date_target",
"field": "date_target",
"text": "DATE OBJECTIF",
"type": "date",
"flex": 1,
"htmlEncode": false,
"editor": false
},
// ....
{
"id": "action",
"type": "action",
"text": "Actions",
"width": 100,
"region": "right",
"actions": [
{
"cls": "fas fa-pencil-alt",
"tooltip": "Modifier"
},
{
"cls": "fas fa-envelope",
"tooltip": "Envoyer un mail"
},
{
"cls": "fas fa-copy",
"tooltip": "Dupliquer"
}
]
}
],
"listeners": {}
},
"useRestfulMethods": false,
"restfulFilter": false,
"sendAsFormData": false,
"store": {
"readUrl": "/api/v3/event/index",
"headers": {
"accept": "application/json",
"Authorization": ""
},
"modelClass": null,
"params": {
"active": 1,
"tag_user": "",
"winOrLost": 5,
"type": 0,
"customerId": "",
"companyId": "",
"startDate": "2024-03-20",
"endDate": "2024-04-19"
},
"pageParamName": "page",
"sortParamName": "sort",
"filterParamName": "filter",
"pageSize": 15,
"autoLoad": false,
"listeners": {},
"fetchOptions": {},
"useRestfulMethods": false,
"restfulFilter": false,
"sendAsFormData": false
},
"listeners": {},
"bbar": {
"type": "pagingtoolbar"
},
"tbar": false,
"subGridConfigs": {
"locked": {
"minWidth": 100
},
"left": {
"width": 240,
"minWidth": 240
},
"middle": {
"flex": 1
},
"right": {
"width": 100,
"minWidth": 100
}
},
"emptyText": "Aucun enregistrement à afficher"
}