Skip to content

Commit de18a73

Browse files
984421: Updated the UG content and samples for Context-Menu in DataGrid
1 parent a095263 commit de18a73

9 files changed

+0
-16
lines changed

blazor/datagrid/context-menu.md

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,6 @@ public class OrderData
136136

137137
{% previewsample "https://blazorplayground.syncfusion.com/embed/VXrIsjrEUXtJazSQ?appbar=false&editor=false&result=true&errorlist=false&theme=bootstrap5" %}
138138

139-
![Context menu interaction](images/context-menu/blazor-datagrid-context-menu.gif)
140-
141139
## Custom context menu items
142140

143141
The Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor DataGrid supports adding custom context menu items along with default options.
@@ -234,8 +232,6 @@ public class EmployeeData
234232

235233
{% previewsample "https://blazorplayground.syncfusion.com/embed/LtBoMjLaVOKOJFCg?appbar=false&editor=false&result=true&errorlist=false&theme=bootstrap5" %}
236234

237-
![Custom menu item](images/context-menu/blazor-datagrid-context-menu-custom-item.gif)
238-
239235
## Built-in and Custom context menu items
240236

241237
The Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor DataGrid supports using both built-in and custom context menu items together. This is helpful when extending default actions such as **Copy**, **Delete**, or **Edit** with application-specific commands like **Copy with headers** or **Export row**.
@@ -333,8 +329,6 @@ public class OrderData
333329

334330
{% previewsample "https://blazorplayground.syncfusion.com/embed/BDLSiXBaVEwxOsiX?appbar=false&editor=false&result=true&errorlist=false&theme=bootstrap5" %}
335331

336-
![Built-in and Custom Context Menu Items](images/context-menu/blazor-datagrid-context-menu-built-in-custom.gif)
337-
338332
## Sub context menu items in DataGrid
339333

340334
The Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor DataGrid supports hierarchical context menus, allowing sub-items to be grouped under a parent menu item. This structure helps organize related actions and improves interface usability.
@@ -450,8 +444,6 @@ public class OrderData
450444

451445
{% previewsample "https://blazorplayground.syncfusion.com/embed/LNLIiNhEqQfJGczz?appbar=false&editor=false&result=true&errorlist=false&theme=bootstrap5" %}
452446

453-
![Sub Context Menu Items](images/context-menu/blazor-datagrid-context-menu-sub-items.gif)
454-
455447
## Disable the context menu for specific columns in DataGrid
456448

457449
The Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor DataGrid allows restricting the context menu for individual columns, which is useful when dealing with **sensitive** or **read-only** data.
@@ -561,8 +553,6 @@ public class OrderData
561553

562554
{% previewsample "https://blazorplayground.syncfusion.com/embed/VtBSCNrOqOXtBomQ?appbar=false&editor=false&result=true&errorlist=false&theme=bootstrap5" %}
563555

564-
![Disable Context Menu for Specific Columns](images/context-menu/blazor-datagrid-disable-context-menu-specific-columns.gif)
565-
566556
## Enable or disable context menu items
567557

568558
The Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor DataGrid allows dynamic control over the availability of context menu items using the [Disabled](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Navigations.MenuItem.html#Syncfusion_Blazor_Navigations_MenuItem_Disabled) property. This feature is useful for conditionally restricting actions such as **Edit** or **Delete**, based on the column, row data, or custom logic.
@@ -663,8 +653,6 @@ public class OrderData
663653

664654
{% previewsample "https://blazorplayground.syncfusion.com/embed/rZrIiiZySUQfOieR?appbar=false&editor=false&result=true&errorlist=false&theme=bootstrap5" %}
665655

666-
![Enable or Disable Context Menu Items](images/context-menu/blazor-datagrid-enable-disable-context-menu-items.gif)
667-
668656
## Show or hide context menu
669657

670658
The Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor DataGrid allows dynamically showing or hiding specific context menu items using the [Hidden](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Navigations.MenuItem.html#Syncfusion_Blazor_Navigations_MenuItem_Hidden) property. This feature is useful for conditionally restricting actions such as **Edit** or **Delete**, based on the column, row data, or custom logic.
@@ -767,8 +755,6 @@ public class OrderData
767755

768756
{% previewsample "https://blazorplayground.syncfusion.com/embed/LtBIMWXIIKutSiPz?appbar=false&editor=false&result=true&errorlist=false&theme=bootstrap5" %}
769757

770-
![Show or Hide Context Menu Items](images/context-menu/blazor-datagrid-show-hide-context-menu-items.gif)
771-
772758
### Access specific row details on context menu click
773759

774760
The Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor DataGrid allows retrieving details of a specific row when a context menu item is clicked. This feature is useful for displaying or processing the selected row’s data.
@@ -878,6 +864,4 @@ public class OrderData
878864

879865
{% previewsample "https://blazorplayground.syncfusion.com/embed/LXBSMXVazHjnCzPv?appbar=false&editor=false&result=true&errorlist=false&theme=bootstrap5" %}
880866

881-
![Fetch Row Details on Context Menu Click](images/context-menu/blazor-datagrid-context-menu-fetch-row-details.gif)
882-
883867
N> Refer to the [Blazor DataGrid](https://www.syncfusion.com/blazor-components/blazor-datagrid) feature tour for a detailed overview of available capabilities. Explore the [Blazor DataGrid example](https://blazor.syncfusion.com/demos/datagrid/overview?theme=bootstrap5) to understand data presentation and manipulation.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)