Skip to content

Commit 62d1673

Browse files
committed
Documentation(1023120): Updated the readme file and sample
1 parent c5b916e commit 62d1673

2 files changed

Lines changed: 58 additions & 6 deletions

File tree

README.md

Lines changed: 56 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,59 @@
1-
# How to maintain the component's state using Syncfusion DataManager
1+
# Syncfusion EJ2 Grid with Persistent State and Wishlist
22

3-
This demonstration shows how to connect multiple Syncfusion components to a single Syncfusion Datamanager and persist the current query based on user ID.
3+
## Repository Description
44

5-
## Run the application :
5+
This repository demonstrates how to build an interactive product dashboard using Syncfusion EJ2 components, combining Grid, Chart, and DataManager to persist user-specific state such as sorting, filtering, and wishlist selections.
66

7-
run the index.html in to your browser
7+
## Project Overview
8+
9+
This project showcases a client-side web application that integrates multiple Syncfusion EJ2 UI components with a single DataManager instance. The application allows users to view product data in a grid, visualize customer reviews in a pie chart, and manage a personalized wishlist. User-specific state is persisted using the Syncfusion DataManager so that preferences are retained across sessions.
10+
11+
The application is built using plain HTML, CSS, and JavaScript and relies on Syncfusion EJ2 CDN packages for UI components and data handling.
12+
13+
## Key Features
14+
15+
- Product listing using **Syncfusion EJ2 Grid**
16+
- Checkbox-based row selection with persistent selection
17+
- User-specific state persistence using **DataManager**
18+
- Sorting products by price (ascending and descending)
19+
- Category-based filtering using MultiSelect
20+
- Wishlist management per user
21+
- Pie chart visualization of customer reviews
22+
- Dynamic UI updates based on user actions
23+
24+
## Prerequisites
25+
26+
- A modern web browser (Chrome, Edge, Firefox)
27+
- Internet connection (to load Syncfusion CDN resources)
28+
29+
## Running the Application
30+
31+
1. Clone or download the repository.
32+
2. Ensure `index.html`, `sample.js`, `datasource.js`, and `index.css` are in the same directory.
33+
3. Open `index.html` directly in a browser.
34+
35+
36+
## Usage
37+
38+
- Select a user from the dropdown to initialize the dashboard.
39+
- Use the sort buttons to order products by price.
40+
- Filter products by category using the filter dropdown.
41+
- Select products and add them to the wishlist.
42+
- View wishlist items and clear persisted data when required.
43+
- Logout to reset the session.
44+
45+
## State Persistence
46+
47+
The application uses Syncfusion DataManager persistence to store user-specific queries such as wishlist filters. Each user maintains an independent state identified by their username.
48+
49+
## License
50+
51+
This project is intended for demonstration and educational purposes using Syncfusion EJ2 components.
52+
53+
## Reference Documentation and Demos
54+
55+
- [Getting started with Grid](https://ej2.syncfusion.com/javascript/documentation/grid/getting-started)
56+
- [Chart Control](https://ej2.syncfusion.com/javascript/documentation/chart/es5-getting-started)
57+
- [Quering in datamanager](https://ej2.syncfusion.com/javascript/documentation/data/querying)
58+
- [Datamanager API](https://ej2.syncfusion.com/javascript/documentation/api/data/overview/)
59+
- [Datamanager StatePersistence](https://ej2.syncfusion.com/javascript/documentation/data/datamanager-persistence)

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
<meta name="author" content="Syncfusion">
77
<link href="index.css" rel="stylesheet">
88

9-
<script src="https://cdn.syncfusion.com/ej2/22.1.34/dist/ej2.min.js" type="text/javascript"></script>
10-
<link href="https://cdn.syncfusion.com/ej2/22.1.34/material.css" rel="stylesheet">
9+
<script src="https://cdn.syncfusion.com/ej2/33.1.44/dist/ej2.min.js" type="text/javascript"></script>
10+
<link href="https://cdn.syncfusion.com/ej2/33.1.44/material3.css" rel="stylesheet">
1111
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
1212

1313
<script src="datasource.js" type="text/javascript"></script>

0 commit comments

Comments
 (0)