Refresh Dynamic Grid Columns Populated with DataTable

1 Answer 297 Views
Grid
Ryan
Top achievements
Rank 1
Iron
Iron
Iron
Ryan asked on 22 Feb 2023, 07:03 PM | edited on 22 Feb 2023, 07:04 PM

Hello,

I want the grid to be refreshed column wise as the DataTable datasource changes. Calling the client side read function refreshes the data source but does not refresh the columns based on the data source changing. We have filters that will remove/add columns since the DataTable is dynamic. I am populting the grid like below:

ASP.NET Core Dynamic Grid in ASP.NET Core - Telerik UI for ASP.NET Core

Thank you.

1 Answer, 1 is accepted

Sort by
0
Alexander
Telerik team
answered on 23 Feb 2023, 02:19 PM

Hi Ryan,

I am sending my reply to the previous discussion with you regarding a similar subject here. In order to inform the community regarding the current matter at hand as well:

"I'm afraid I am not able to fully understand the exact inquiry regarding the dynamic columns' refreshing. Can you please elaborate more on the exact requirement? For example, a code snippet illustrating the currently utilized Grid configuration on your premises would be beneficial for the case, as it will give me a better overall understanding of the currently implemented scenario."

"Generally, the Grid exposes a built-in Column menu functionality that can be used in order to specify which columns need to be obscured and vice versa, as outlined within the following resource":

"Could you please confirm whether you have an identical setting configured on your end? Nevertheless, I tried reproducing a similar scenario as outlined in the Dynamic Grid knowledge base section you previously mentioned with the following actions held":

  • Dynamically bound columns.
  • Column Menu functionality for the Grid.
  • An external button that refreshes the Grid's data.

"Here is an additional screencast that illustrates a more visual representation of the aforementioned actions".

"If it is feasible, could you please consider replicating the scenario within the attached sample and sending it back for further examination? This will help me conduct further investigations in regard to the behavior and based on the provided intel, provide further and more accurate suggestions".

Kind Regards,
Alexander
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
Grid
Asked by
Ryan
Top achievements
Rank 1
Iron
Iron
Iron
Answers by
Alexander
Telerik team
Share this question
or