--Ordenamiento en scroll fijo

This commit is contained in:
caudillochon
2025-02-24 16:10:42 -07:00
parent 7d37824d3b
commit 3cce0abf93
3 changed files with 8 additions and 9 deletions

View File

@@ -165,18 +165,18 @@ table.adssigscroll {
background-color: inherit; /* Para que no se superponga con otros elementos */
z-index: 4; /* Asegura que esté sobre otros elementos */
}
.tr_order > th::after {
.tr_order tr > th::after {
content: "\f0dc";
font:normal normal normal 14px / 1 FontAwesome;
display: inline-block;
margin-left: 5px;
color: #32A1CF;
}
.tr_order > th.asce::after {
.tr_order tr > th.asce::after {
content: "\f0de";
}
.tr_order > th.desc::after {
.tr_order tr > th.desc::after {
content: "\f0dd";
}
/*END ScrollADS V2*/
@@ -353,8 +353,7 @@ table.adssigscroll {
<div class="divContainerads">
<asp:GridView ID="GvDatos" runat="server" ShowHeader="true" EmptyDataText="No hay registros." AutoGenerateColumns="True" ShowHeaderWhenEmpty="true"
DataKeyNames="CvePS" CssClass="adssigscrollJS table table-striped table-advance table-hover " data-cols="2" data-rows="2" data-heightmenos="300" GridLines="None" >
<HeaderStyle CssClass="tr_order" />
DataKeyNames="CvePS" CssClass="adssigscrollJS tr_order table table-striped table-advance table-hover " data-cols="2" data-rows="2" data-heightmenos="300" GridLines="None" >
<Columns>
<asp:TemplateField ItemStyle-HorizontalAlign="Left" ItemStyle-Width="120px">
<HeaderTemplate>

View File

@@ -481,7 +481,7 @@ table#${Tid}.adssigscroll tr:nth-child(${numberitem}) { top: ${top}px; }`;
}
function LoadSortSticky() {
$('body').on('click', 'table.adssigscroll tr.tr_order:not(.tsorterblock) > th ,table.adssigscroll tr.tr_order:not(.tsorterblock) > td ', function (e) {
$('body').on('click', 'table.adssigscroll.tr_order tr:not(.tsorterblock) > th ', function (e) {
var tthis = $(this);
if (tthis.closest('.NoClick').length == 0 && !($(e.target).is('a,input'))) {

View File

@@ -57,7 +57,7 @@ table.adssigscroll {
z-index: 4; /* Asegura que est<73> sobre otros elementos */
}
.tr_order > th::after {
.tr_order tr > th::after {
content: "\f0dc";
font: normal normal normal 14px / 1 FontAwesome;
display: inline-block;
@@ -65,11 +65,11 @@ table.adssigscroll {
color: #32A1CF;
}
.tr_order > th.asce::after {
.tr_order tr > th.asce::after {
content: "\f0de";
}
.tr_order > th.desc::after {
.tr_order tr > th.desc::after {
content: "\f0dd";
}
/*END ScrollADS V2*/