I have an sfgrid control in my web application.I would like to customize below points in grid cell.Please check my comments in below screencast and advise how to do this.
1.Dropdown (refer screencast)
2.Popupmenu (refer screencast)
3.perfect scrollbar in grid (refer https://codepen.io/amugbl4/pen/dyPQNmP )
https://www.screencast.com/t/F8NjPvTuaf4
|
<style>
/*to show icon in dropdown menu*/
.e-settings::before {
content: '\e679';
}
/*to customize the grid browser scrollbar*/
.e-grid.sf-grid .e-gridcontent .e-content.e-yscroll {
overflow: hidden;
}
.e-grid.sf-grid .e-gridcontent .e-content.e-yscroll:hover {
overflow-y: scroll !important;
overflow-x: scroll;
}
</style>
|
Thanks for reply..
for query 3:-
I need scrollbar in grid in below link fomat
https://ngx-scrollbar-v4.netlify.app/
and also is it possible to show "setting icon" when hover the mouse in grid column ??
Please help....
and also I am going to reduce height of grid row.I have tried below css class ,its works fine as per my requirement but when I add template column (as per above code),then its not working.Please check the below css and advise the same.
.e-grid .e-rowcell {
border-style: solid;
border-width: 1px 0 0 0;
display: table-cell;
font-size: 10px;
font-family: Helvetica !important;
line-height: 18px;
overflow: hidden;
padding: 2px 21px;
vertical-align: middle;
white-space: nowrap;
width: auto;
}
|
<GridColumn TextAlign="TextAlign.Center" Width="50">
<Template>
@{
var ord = context as EmployeeData;
<div class="actionbtn">
<SfDropDownButton IconCss="e-icons e-settings">
<DropDownMenuItems>
<DropDownMenuItem Text="Edit"></DropDownMenuItem>
<DropDownMenuItem Text="Delete"></DropDownMenuItem>
<DropDownMenuItem Text="Mark as Read"></DropDownMenuItem>
<DropDownMenuItem Text="Like Message"></DropDownMenuItem>
</DropDownMenuItems>
</SfDropDownButton>
</div>
}
</Template>
</GridColumn>
<style>
/*to show icon in dropdown menu*/
.e-settings::before {
content: '\e679';
}
/*to customize the grid browser scrollbar*/
.e-grid.sf-grid .e-gridcontent .e-content.e-yscroll {
overflow: hidden;
}
.e-grid.sf-grid .e-gridcontent .e-content.e-yscroll:hover {
overflow-y: scroll !important;
overflow-x: scroll;
}
.actionbtn {
display: none; /*initial hidden*/
}
.e-row:hover .e-rowcell .actionbtn {
display: block; /*Showing the action item while hovering*/
}
</style> |
Thanks
Can u help me query1 and query3 by tomorrow??
Please...help
It's my top priority in my tasks
also please check my comments for hivering in below screencast
https://www.screencast.com/t/4ZsczNeYQ12S
|
|
Thanks
see the below screencast and for row height issue and attached source code with global css file
https://www.screencast.com/t/bqQ1yMfyDO
|
|
thanks working fine..
i need scrollbar in grid with color in attached format..
|
/*to style to browser scrollbar*/
/* width */
.e-grid .e-gridcontent .e-content::-webkit-scrollbar {
width: 10px;
}
/* Track */
.e-grid .e-gridcontent .e-content::-webkit-scrollbar-track {
box-shadow: inset 0 0 5px grey;
border-radius: 10px;
}
/* Handle */
.e-grid .e-gridcontent .e-content::-webkit-scrollbar-thumb {
background: grey;
border-radius: 10px;
}
|
|
|