|
1 | | -# How to maintain the component's state using Syncfusion DataManager |
| 1 | +# Syncfusion EJ2 Grid with Persistent State and Wishlist |
2 | 2 |
|
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 |
4 | 4 |
|
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. |
6 | 6 |
|
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) |
0 commit comments