I have a RadGrid being populated and displaying but the client needs a condition format for the grid to display new columns while hiding others. Is there a way to display the same grid on two different pages with different data source?
1 Answer, 1 is accepted
answered on 24 Feb 2021, 11:55 AM
Yes, you can create a WebUserControl with a RadGrid in it. From there, you have various options depending on the scenario, however, I will show you one example below.
Create a WebUserControl with RadGrid. Do not declare any columns as the DataSource would change dynamically. Let the Grid render the Columns from the data source bound to it.
There are other ways as well, but as a base idea, you can share some information with the user control, and bind data conditionally.
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/.