Showing and Hiding Columns and data Conditionally

0 Answers 6 Views
Grid GridLayout
Charlston
Top achievements
Rank 1
Charlston asked on 19 Nov 2025, 12:40 PM

I am converting a MVC table grid to a Telerik Grid. While looking at it, there are conditional columns. For example: 

 


@if (Model?.GroupDetail?.IsMec == false)
                                    {
                                        <th class="text-secondary" style="width: 140px;">Group Info</th>
                                    }

<th class="text-secondary">
                                        @if (Model?.GroupDetail?.IsMec == false)
                                        {
                                            <text>Office</text>
                                        }
                                        else
                                        {
                                            <text>Role</text>
                                        }
                                    </th>
How would I go about recreating something like this for the grid 

No answers yet. Maybe you can help?

Tags
Grid GridLayout
Asked by
Charlston
Top achievements
Rank 1
Share this question
or