JavaScript UI Libraries & Blazor Components Suite – Smart UI Forums Data Grid Blazor Grid, Any way to react to column visibility change?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #108957
    wolf.t
    Participant

    Is there a simple way to react to users hiding/showing a column using the Column Chooser?

    Our users would like to have their individual “layouts” for each grid stored somewhere.

    I couldn’t find a OnColumnVisibilityChanged or something similar. I also tried OnColumnInserted OnColumnRemoved OnColumnUpdated and OnColumnClick, but none of them fire when column visibility is changed (or the column chooser is clicked).

    Right now my solution is to
    – call GetColumns() when the user leaves the page
    – parse out “visible” and “dataField” to get the current layout
    – save the current visibility-levels for each column

    Is there a more efficient do this?

    KR

    • This topic was modified 1 year, 1 month ago by wolf.t.
    • This topic was modified 1 year, 1 month ago by wolf.t.
    • This topic was modified 1 year, 1 month ago by wolf.t.
    #109006
    Markov
    Keymaster

    Hi wolf.t,

    You can try a new callback named OnColumnChange which is invoked then the visibility is updated.

    Regards,
    Markov

    Smart UI
    https://www.htmlelements.com/

    #109016
    wolf.t
    Participant

    Hi Markov,

    Thanks for getting back to me. I’m unsure what you mean by this.
    I’m currently on v16.0.2 of the smart.blazor nuget package.

    I don’t see OnColumnChange available for the Grid, and I can’t find it in your documentation either.

    What am I missing?

    Thanks

    KR,

    #109020
    ivanpeevski
    Participant

    Hi wolf.t,

     

    We will make OnColumnChange available for Blazor in our next release.

    Apologies for the confusion.

     

    Ivan Peevski
    Smart UI Team
    https://www.htmlelements.com

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.