Skip to content

Commit 72ceda9

Browse files
xristianstefanovxristianstefanov
authored andcommitted
chore(kb): apply changes as per suggestions
1 parent d5ae21c commit 72ceda9

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

knowledge-base/grid-copy-text-clipboard.md

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,9 @@ To achieve this, implement a context menu for the Grid and include a "Copy to Cl
3838
@using System.Collections.ObjectModel
3939
@inject IJSRuntime JS
4040
41-
<TelerikEditor @bind-Value="@TheEditorValue" Width="650px" Height="400px"></TelerikEditor>
42-
41+
<TelerikTextBox @bind-Value="@TheEditorValue" Placeholder="Paste text here.." Width="300px"></TelerikTextBox>
42+
<br/>
43+
<br/>
4344
<TelerikContextMenu @ref="@ContextMenuRef" Data="@MenuItems"
4445
OnClick="@((MenuItem item) => ContextMenuClickHandler(item))">
4546
</TelerikContextMenu>
@@ -61,14 +62,6 @@ To achieve this, implement a context menu for the Grid and include a "Copy to Cl
6162
private TelerikContextMenu<MenuItem> ContextMenuRef { get; set; }
6263
private TelerikGrid<SampleData> GridRef { get; set; }
6364
64-
public class MenuItem
65-
{
66-
public string Text { get; set; }
67-
public ISvgIcon Icon { get; set; }
68-
public Action Action { get; set; }
69-
public string CommandName { get; set; }
70-
}
71-
7265
private async Task OnContextMenu(GridRowClickEventArgs args)
7366
{
7467
SelectedPerson = args.Item as SampleData;
@@ -126,6 +119,14 @@ To achieve this, implement a context menu for the Grid and include a "Copy to Cl
126119
}
127120
}
128121
122+
public class MenuItem
123+
{
124+
public string Text { get; set; }
125+
public ISvgIcon Icon { get; set; }
126+
public Action Action { get; set; }
127+
public string CommandName { get; set; }
128+
}
129+
129130
public class SampleData
130131
{
131132
public int ID { get; set; }
@@ -138,3 +139,5 @@ To achieve this, implement a context menu for the Grid and include a "Copy to Cl
138139

139140
* [Grid Overview](slug:grid-overview)
140141
* [Context Menu Overview](slug:contextmenu-overview)
142+
* [Grid Context Menu Integration Demo](https://demos.telerik.com/blazor-ui/contextmenu/integration)
143+
* [Grid Context Menu Integration Documentation](slug:contextmenu-integration)

0 commit comments

Comments
 (0)