Skip to content

[Windows, Android] Toggling Header/Footer in CollectionView Dynamically is not working #27959

@HarishKumarSF4517

Description

@HarishKumarSF4517

Description

When dynamically toggling the header or footer in a CollectionView by setting it to null and then re-assigning it not working in Windows and Android.

Screen.Recording.2025-02-21.190846.mp4
Screen.Recording.2025-02-21.at.7.09.41.PM.mov

Steps to Reproduce

  1. Run the given Sample - Issue25724.zip
  2. Tap the "Toggle Header" button to hide the header.
  3. Tap the "Toggle Header" button again to show the header.
  4. The header does not toggle; no action occurs.

Windows Issue:

Problem: After tapping the "Toggle Header" or "Toggle Footer" buttons, the header or footer text gets removed (empties), but it does not return after toggling again. This results in the header/footer not being restored.
Expected Result:
The header/footer should toggle correctly, with the text being displayed when the header/footer is shown.
Actual Result:
After toggling, the header or footer text remains empty and does not return to its original state.

Android Issue:

Problem: On Android, tapping either the "Toggle Header" or "Toggle Footer" buttons has no effect. The header and footer are not hidden or shown when the buttons are clicked.
Expected Result:
The header/footer should toggle visibility when the corresponding button is tapped.
Actual Result:
Tapping the "Toggle Header" or "Toggle Footer" button does not trigger any changes in the UI.

Link to public reproduction project repository

No response

Version with bug

9.0.40 SR4

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

No response

Affected platforms

Android, Windows

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions