▦K2 Advanced GridsDeveloper Portal / 0.23
Documentation / Developer reference

Troubleshooting

Diagnose deployment, configuration and Runtime issues systematically before changing the engine. This guide applies to Engine 1.0.0-beta.1.0 and preserves native K2 behavior as the baseline.

Start with the native ListView

Reproduce in a non-production form. Record K2 release/build/Fix Pack, browser version, engine version, configuration URL and the exact steps. Confirm that the native ListView loads the expected records and that its rules work with the loader disabled. If the native issue persists, investigate K2 or the data source independently.

Deployment and initialization

Use DevTools Network and Console. Confirm both hosted JavaScript requests return HTTP 200 and actual JavaScript, not a sign-in page. Check the config loads before the engine, the Data Label is Literal, and only one loader exists on the form. Review CSP, access rights, IIS path and web-node consistency if loading fails. See Installation & deployment.

Quick health check

{
 const api = window.K2AdvancedGrids;
 console.log({version: api?.version, initialized: !!api?.instance,
   configLoaded: !!window.K2AdvancedGridsConfig});
 if (api) console.table(api.discover());
 if (api?.instance) console.table(api.instance.inspect().map(g => ({id:g.id, rows:g.rows, filters:g.filters, preferences:g.preferences?.status})));
}

Grid discovery and configuration

If the engine exists but no grid is registered, compare discovery output with the configuration selector. Replace the placeholder with the actual Runtime Area Item ID, not the View Definition ID. Check that the ListView has loaded and is enabled in configuration. For multiple grids identify each independently. See Grid discovery and Configuration reference.

{
 const id = 'REPLACE_WITH_YOUR_AREAITEMID';
 const api = window.K2AdvancedGrids;
 console.table(api?.discover() || []);
 const grid = api?.instance?.inspect().find(g => g.id === id);
 if (grid) console.table(grid.columns);
 else console.warn('Target grid not registered', id);
}

Common symptoms and remedies

SymptomChecks / action
Changes not visibleIncrease configVersion in the loader, reopen Runtime and verify the actual response in Network. Keep engineVersion unchanged for configuration-only edits.
Duplicate toolbar or controlsEnsure only one deployment per form; remove duplicate embedded/external loaders and reload.
No records / incorrect countVerify native SmartObject list result and filters. Advanced Grids processes only loaded records.
Page size or columns revertCheck preferences status and reset the affected grid if appropriate.
Pinning or ordering failsCheck enabled modules, visible columns, pin zones and actual column keys.
Cell merging disappearsActive grouping suppresses merging; decorated cells and page boundaries also limit merging.
Card action failsVerify source K2 button name, selection, enabled state and native rule; test the same record in Table mode.
Date or Boolean formatting differsInspect actual source value and type, culture and column configuration; test representative values.
Excel output differs from gridCheck export scope, formatting flags and native Excel rules; card markup is not exported.
Arabic labels or layout differCheck language selection and native ListView direction separately.

Preferences and safe resets

Saved browser preferences may override developer defaults. Reset only the affected grid after recording its user layout; the reset removes saved preferences for that scope. Do not clear all browser storage. Filters can be cleared separately. See Personal preferences.

// Run only when intentionally resetting the selected grid.
const id = 'REPLACE_WITH_YOUR_AREAITEMID';
K2AdvancedGrids.instance.resetPreferences(id);
// Optional separate operation: clear advanced filters.
// K2AdvancedGrids.instance.clear(id);

Export diagnostics

Check the loaded, filtered and page scopes, visible/all columns, and whether Export is enabled. CSV is plain text: Excel may infer types or display #### when columns are narrow. For XLSX, distinguish Protected View from a repair warning. If Excel repairs a workbook, preserve a sanitized sample, disable native conditional formatting and extra sheets one at a time, and repeat on the same records. Do not claim a repair-free result until verified. See Native Excel export.

{
 const id = 'REPLACE_WITH_YOUR_AREAITEMID';
 const ag = K2AdvancedGrids.instance;
 console.table(['loaded','filtered','page'].map(scope => {
   const r = ag.buildCSV(id,{scope,columns:'visible'});
   return {scope,records:r?.records,columns:r?.columns};
 }));
}

Performance and visual issues

Compare against native K2, reduce the loaded dataset, and disable optional modules individually. Client pagination does not reduce the loaded DOM. Inspect computed styles, host scroll containers and direction; do not overwrite internal geometry variables. See Performance & limitations, Styling & themes and Localization & RTL.

Rollback and incident evidence

Back up the form Expression and hosted files. In a controlled environment remove or disable the loader, save the form and reopen Runtime. Verify native selection, rules and data retrieval. For a temporary console-only test, destroy the instance; reload to restore the configured deployment. Do not delete shared server files while other forms use them. The rollback procedure requires validation in the target environment.

Collect a sanitized Console error and stack trace, Network status and script URLs (remove credentials/tokens), exact versions, minimal configuration, discovery and inspect summaries, expected versus actual behavior, and a screenshot or sanitized export. Never share confidential records or secrets. See Compatibility matrix and Disclaimer. This independent extension is not supported by Nintex Support; reproduce native issues without it.

Enlarged screenshot