Skip to content

DataGrid - cellRender triggers a second request on loading an initial page (T1326786)#34180

Open
markallenramirez wants to merge 3 commits into
DevExpress:26_1from
markallenramirez:bug_T1326786/26_1
Open

DataGrid - cellRender triggers a second request on loading an initial page (T1326786)#34180
markallenramirez wants to merge 3 commits into
DevExpress:26_1from
markallenramirez:bug_T1326786/26_1

Conversation

@markallenramirez

Copy link
Copy Markdown
Contributor

No description provided.

@markallenramirez markallenramirez self-assigned this Jun 30, 2026
Copilot AI review requested due to automatic review settings June 30, 2026 11:53
@markallenramirez markallenramirez requested a review from a team as a code owner June 30, 2026 11:53

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR targets DataGrid virtual scrolling behavior to prevent cellRender from triggering an extra data request during the initial page load by changing when viewport-driven load parameter changes are detected.

Changes:

  • Updated virtual scrolling logic to compute and compare “current” vs “loaded” page parameters via extracted flags (isViewportChanging, isNotLoading, loadParamsChanged).
  • Tightened the condition for treating load params as “changed” by additionally requiring _viewportChanging.

Comment on lines +1034 to +1038
const isNotLoading = !this._isLoading;
const loadParamsChanged = pageIndex !== loadedPageParams.pageIndex || loadPageCount !== loadedPageParams.loadPageCount;
let result: any = null;

if (!this._isLoading && pageIndexIsValid && (pageIndex !== loadedPageParams.pageIndex || loadPageCount !== loadedPageParams.loadPageCount)) {
if (isViewportChanging && isNotLoading && pageIndexIsValid && loadParamsChanged) {
Copilot AI review requested due to automatic review settings July 1, 2026 06:31

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

Comment on lines +1034 to +1038
const isNotLoading = !this._isLoading;
const loadParamsChanged = pageIndex !== loadedPageParams.pageIndex || loadPageCount !== loadedPageParams.loadPageCount;
let result: any = null;

if (!this._isLoading && pageIndexIsValid && (pageIndex !== loadedPageParams.pageIndex || loadPageCount !== loadedPageParams.loadPageCount)) {
if (isViewportChanging && isNotLoading && pageIndexIsValid && loadParamsChanged) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants