ColumnChooser close events

I'm building grid columns from a definition held in a database.

        @foreach (GridColumnSetting item in gridColumnSettings)
        {
            <GridColumn Field="@item.ColumnName" TextAlign="TextAlign.Center" HeaderText="@item.ColumnHeaderString" Width="120"></GridColumn>
        }

I have a lot of columns that are initially hidden and allow the user to make these visible through the ColumnChooser dialog. Due to the number of columns I only retrieve the data for the visible columns. When the user makes a column visible with the ColumnChooser I need to retrieve the data for the now visible columns and rebind.

My problem is that there doesn't seem to be an event for when the ColumnChooser closes that I can use to rebind. The OnActionComplete event does fire but with a RequestType of ColumnState so I can't distinguish if the event occurred due to the ColumnChooser closing or some other cause.

Mike

2 Replies

MA Michael Aston September 28, 2020 08:56 PM UTC

Ignore this. Misunderstood the ColumnState RequestType.

Mike


VN Vignesh Natarajan Syncfusion Team September 29, 2020 04:26 AM UTC

Hi Michael,  

Thanks for contacting Syncfusion support.  

We are glad to hear that you have resolved your query on your own.  

Please get back to us if you have further queries.  

Regards, 
Vignesh Natarajan  



Loader.
Up arrow icon