Hello!
I'm trying to implement some user's menu in column's template like this:
<
TelerikGrid
Data
=
"@MyData"
Height
=
"100%"
Pageable
=
"true"
Sortable
=
"true"
Groupable
=
"true"
FilterMode
=
"Telerik.Blazor.GridFilterMode.FilterRow"
Resizable
=
"true"
Reorderable
=
"true"
>
<
GridColumns
>
<
GridColumn
Field
=
"@(nameof(SampleData.Id))"
Width
=
"120px"
/>
<
GridColumn
Field
=
"@(nameof(SampleData.Name))"
Title
=
"Employee Name"
Groupable
=
"false"
/>
<
GridColumn
Field
=
"@(nameof(SampleData.Team))"
Title
=
"Team"
/>
<
GridColumn
Field
=
"@(nameof(SampleData.HireDate))"
Title
=
"Hire Date"
/>
<
GridColumn
Filterable
=
"false"
Title
=
"Menu"
Lockable
=
"false"
Sortable
=
"false"
ShowColumnChooser
=
"false"
VisibleInColumnChooser
=
"false"
ShowColumnMenu
=
"false"
>
<
Template
>
@{
<
button
class
=
"btn btn-default dropdown-toggle"
data-toggle
=
"dropdown"
aria-haspopup
=
"true"
aria-expanded
=
"false"
>
Menu
</
button
>
<
div
class
=
"dropdown-menu"
>
<
a
class
=
"dropdown-item"
style
=
"cursor: pointer"
>Edit</
a
>
<
a
class
=
"dropdown-item"
style
=
"cursor: pointer"
>Delete</
a
>
</
div
>
}
</
Template
>
</
GridColumn
>
</
GridColumns
>
</
TelerikGrid
>
@code {
public IEnumerable<
SampleData
> MyData = Enumerable.Range(1, 1).Select(x => new SampleData
{
Id = x,
Name = "name " + x,
Team = "team " + x % 5,
HireDate = DateTime.Now.AddDays(-x).Date
});
public class SampleData
{
public int Id { get; set; }
public string Name { get; set; }
public string Team { get; set; }
public DateTime HireDate { get; set; }
}
}
But menu is not fully showing and hide by grid's footer
setting z-index for dropdown doesnt help
Please help....