Demos | DataGrid - BatchUpdateRequest: Support BackEnd / EndPoint Anti Forgery (all frameworks)#32231
Merged
mpreyskurantov merged 1 commit intoDevExpress:26_1from Jan 16, 2026
Merged
Conversation
…i Forgery (all frameworks) (DevExpress#32057) Co-authored-by: Tom <22076961+artem-kurchenko@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds anti-forgery token support to the DataGrid BatchUpdateRequest demo across all supported frameworks (jQuery, Angular, React, Vue). The implementation fetches CSRF tokens from the backend and includes them in API requests to support anti-forgery validation. The demo is also added to the skipped visual tests list.
Changes:
- Added anti-forgery token fetching and caching mechanism for all frameworks
- Updated API endpoints to use the new BatchUpdateWebApi endpoint
- Added BatchUpdateRequest to the list of skipped visual tests for all frameworks
- Also updated the CollaborativeEditing jQuery demo with similar anti-forgery token support
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 12 comments.
Show a summary per file
| File | Description |
|---|---|
| apps/demos/utils/visual-tests/matrix-test-helper.ts | Added BatchUpdateRequest to skipped visual tests for all frameworks |
| apps/demos/Demos/DataGrid/CollaborativeEditing/jQuery/index.js | Updated to use anti-forgery tokens and fixed URL path consistency |
| apps/demos/Demos/DataGrid/BatchUpdateRequest/jQuery/index.js | Implemented anti-forgery token support with jQuery-specific Deferred pattern |
| apps/demos/Demos/DataGrid/BatchUpdateRequest/Vue/App.vue | Implemented anti-forgery token support using async/await with fetch API |
| apps/demos/Demos/DataGrid/BatchUpdateRequest/ReactJs/App.js | Implemented anti-forgery token support using async/await with fetch API |
| apps/demos/Demos/DataGrid/BatchUpdateRequest/React/App.tsx | TypeScript version of React implementation with proper typing |
| apps/demos/Demos/DataGrid/BatchUpdateRequest/Angular/app/app.service.ts | New service providing token management via RxJS observables and HTTP interceptor |
| apps/demos/Demos/DataGrid/BatchUpdateRequest/Angular/app/app.component.ts | Updated component to use the new token service and interceptor |
siarhei-arzamasau
approved these changes
Jan 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Cherry-pick of: