/syncfusion-javascript:syncfusion-javascript-data-managerfrom Syncfusion JavaScript UI Controls
Implements Syncfusion TypeScript/JavaScript(ES6+) DataManager for local/remote binding, CRUD, querying, caching, and middleware. Supports JsonAdaptor, ODataAdaptor, ODataV4Adaptor, UrlAdaptor, WebApiAdaptor, WebMethodAdaptor, RemoteSaveAdaptor, GraphQLAdaptor, CustomDataAdaptor, and CustomAdaptor. Covers Query class, filtering, sorting, paging, grouping, persistence, offline mode, caching, and error handling.
Ships in Syncfusion JavaScript UI Controls. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
This is the most critical rule in this skill. It cannot be skipped or bypassed.
When the user provides a service URL without explicitly naming the adaptor type, the agent MUST:
references/adaptor-decision-gate.md (full file)DataManager code with the confirmed adaptor| User Prompt | Gate Required? |
|---|---|
"Build an employee app using this service URL (http://myapi.com/employees)" | ✅ YES — no adaptor specified |
"Connect GridComponent to http://myserver/api/data" | ✅ YES — "API" is ambiguous |
"Use OData v4 endpoint at https://myserver/odata/employees" | ❌ NO — OData v4 explicitly stated |
"My backend returns { Items, Count } at https://myserver/api/orders" | ❌ NO — WebApiAdaptor pattern confirmed |
"I have a REST service at http://custom-url" | ✅ YES — REST is ambiguous (UrlAdaptor vs WebApiAdaptor vs ODataV4) |
"Bind the grid to local list data" | ❌ NO — local binding, no adaptor needed |
📄 Full gate template, adaptor cheat sheet, disambiguation questions, and security rules:
→ references/adaptor-decision-gate.md
When binding to remote services, you MUST implement these protections:
* in production; require HTTPSThird-party API responses can introduce security risks. Always verify endpoint legitimacy, authenticate requests, and validate data before binding to UI components.
| Scenario | Adaptor | When to Use |
|---|---|---|
| Local arrays | JsonAdaptor | In-memory JavaScript arrays, no server needed |
| ASP.NET Web API | WebApiAdaptor | ASP.NET backend returning Items/Count format |
| Generic REST | UrlAdaptor | Standard REST APIs with result/count format |
| Client + Server | RemoteSaveAdaptor | Client-side filtering, server-side CRUD |
| OData v3 | ODataAdaptor | Legacy OData v3 services |
| OData v4 | ODataV4Adaptor | Modern OData v4 with expand relations |
| Legacy ASP.NET | WebMethodAdaptor | ASMX web methods (deprecated) |
| GraphQL | GraphQLAdaptor | GraphQL endpoints |
| Custom Format | Custom DataAdaptor | Non-standard API response formats |
| Full Control | CustomAdaptor | Complete adaptor override |
Local Binding
├─ Direct array: new DataManager({ json: data })
├─ JsonAdaptor explicit
└─ Client-side filtering instant
Remote Binding
├─ WebApiAdaptor: ASP.NET specific
├─ UrlAdaptor: Generic REST
├─ ODataAdaptor/V4: Protocol-based
└─ Server processes Query object
// Filter/Search
.where('field', 'operator', value) // Single condition
.where(predicate) // Complex predicate
// Sort/Order
.sortBy('field') // Ascending
.sortByDescending('field') // Descending
.orderBy('field') // Alias
// Pagination
.take(10) // Limit records
.skip(0) // Offset
// Projection
.select(['field1', 'field2']) // Column selection
// Relationships
.expand('relatedTable') // OData expand
// Grouping & Aggregation
.group('field') // Group by
.aggregate('sum', 'field') // Calculate
Does your data come from?
│
├─ JavaScript array in memory?
│ └─ JsonAdaptor
│
├─ Web Server / REST API?
│ ├─ ASP.NET Web API (backend specific)?
│ │ └─ WebApiAdaptor (Items/Count format)
│ ├─ Generic REST endpoint?
│ │ └─ UrlAdaptor (result/count format)
│ ├─ Need offline with server-side CRUD?
│ │ └─ RemoteSaveAdaptor
│ └─ Custom format (non-standard)?
│ └─ CustomDataAdaptor
│
├─ OData Service?
│ ├─ OData v3 (legacy)?
│ │ └─ ODataAdaptor
│ └─ OData v4 (modern)?
│ └─ ODataV4Adaptor (with expand)
│
├─ GraphQL Endpoint?
│ └─ GraphQLAdaptor
│
├─ Legacy ASP.NET ASMX?
│ └─ WebMethodAdaptor
│
└─ Custom/Proprietary?
├─ Custom request/response format?
│ └─ CustomDataAdaptor
└─ Need complete adaptor override?
└─ CustomAdaptor
📄 Read: references/adaptor-decision-gate.md
Read: Getting Started
Read: Overview
Read: Data Binding
Read: Querying
Read: CRUD Operations
Read: Adaptors Guide
Read: Applying Middleware Logic
Read: State Persistence
Read: Advanced Scenarios
Read: API - DataManager
Read: API - Query
Read: API - Deferred
import { DataManager, WebApiAdaptor, Query } from '@syncfusion/ej2-data';
const dataManager = new DataManager({
url: 'url/orders',
adaptor: new WebApiAdaptor()
});
// Fetch with filtering & sorting
dataManager.executeQuery(
new Query()
.where('Freight', 'greaterThan', 30)
.sortByDescending('OrderDate')
.take(20)
).then((result) => {
console.log('Orders:', result.result);
console.log('Total:', result.count);
}).catch((error) => {
console.error('Error:', error);
});
// Insert (data first, then tableName)
await dataManager.insert({ CustomerID: 'VINET', Freight: 32.50 }, 'Orders');
// Update (keyField, value object, tableName)
await dataManager.update('OrderID',
{ OrderID: 10248, Freight: 45.50 },
'Orders'
);
// Delete (keyField, keyValue, tableName)
await dataManager.remove('OrderID', 10248, 'Orders');
| Status | Meaning | Solution |
|---|---|---|
| 0 | Network error | Check internet connection |
| 400 | Bad request | Verify data format |
| 401 | Unauthorized | Check authentication token |
| 403 | Forbidden | Verify permissions |
| 404 | Not found | Check endpoint URL |
| 409 | Conflict | Data already exists, refresh data |
| 500 | Server error | Check backend logs |
// Promise-based
dataManager.executeQuery(new Query())
.then((result) => {
// Success: result.result, result.count
})
.catch((error) => {
if (error.status === 401) {
console.error('Unauthorized - login required');
} else if (error.status === 500) {
console.error('Server error');
} else {
console.error('Error:', error.message);
}
});
// Async/Await
try {
const result = await dataManager.executeQuery(new Query());
console.log('Data:', result.result);
} catch (error) {
console.error('Error status:', error.status);
}
const config = {
url: 'api.example.com/orders', // Remote endpoint
json: localArray, // Local data array
adaptor: new WebApiAdaptor(), // Protocol handler
// Caching & Performance
enableCache: true, // Enable result caching
timeTillExpiration: 10 * 60 * 1000, // Cache TTL (10 mins, default: no expiry)
// Persistence
enablePersistence: true, // Enable state persistence
id: 'dataManager_1', // Persistence ID
ignoreOnPersist: ['temp', 'debug'], // Properties to exclude
// HTTP headers
crossDomain: true, // CORS enabled
offline: false, // Offline mode
timeZoneHandling: true // Timezone offset handling
};
import { DataManager, WebApiAdaptor, Query } from '@syncfusion/ej2-data';
const dm = new DataManager({
url: 'api.example.com/orders',
adaptor: new WebApiAdaptor()
});
dm.executeQuery(new Query().take(10)).then((result) => {
console.log(result.result);
});
const { DataManager, WebApiAdaptor, Query } = require('@syncfusion/ej2-data');
const dm = new DataManager({
url: 'api.example.com/orders',
adaptor: new WebApiAdaptor()
});
dm.executeQuery(new Query().take(10)).then((result) => {
console.log(result.result);
});
references/adaptor-decision-gate.md (opens in a new tab)references/adaptors-guide.md (opens in a new tab)references/advanced-scenarios.md (opens in a new tab)references/api-dataManager.md (opens in a new tab)references/api-deferred.md (opens in a new tab)references/api-query.md (opens in a new tab)references/applying-middleware-logic.md (opens in a new tab)references/crud-operations.md (opens in a new tab)references/data-binding.md (opens in a new tab)references/dataManager-persistence.md (opens in a new tab)references/getting-started.md (opens in a new tab)references/overview.md (opens in a new tab)references/querying.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub syncfusion/boldcreate-plugins --plugin syncfusion-javascriptOther plugins' skills for the same job
67 skills in this plugin
/syncfusion-javascript-3d-chartCreate interactive 3D charts in Syncfusion TypeScript and JavaScript. Immediately use this skill when user needs to build 3D visualizations, render 3D column/bar charts, configure 3D rotation and depth, visualize data in three dimensions, customize 3D chart appearance, handle 3D interactions, or implement advanced 3D features. Works with TypeScript (webpack/module-based) and JavaScript (CDN/ES5)./syncfusion-javascript-accordionBuild collapsible navigation panels with the Syncfusion TypeScript Accordion component. Use this skill when implementing vertical accordion menus, expanding/collapsing content panels, multi-step wizards, data-driven panels with dynamic content, tabbed navigation alternatives, or nested hierarchical content structures. Covers initialization, expand modes, animations, icons, templates, styling, data binding, and advanced use cases like form wizards./syncfusion-javascript-accumulation-chartImplements Syncfusion JavaScript accumulation charts (Pie, Doughnut, Funnel, Pyramid) for proportional and percentage-based visualizations. Use when displaying categorical or proportional data. Covers legend and label configuration, interactivity, accessibility, and customization. Works with TypeScript (modules) and JavaScript (CDN/ES5).