stylos
This commit is contained in:
@@ -176,7 +176,7 @@
|
||||
<asp:UpdatePanel ID="UPDatos" runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<asp:GridView ID="GvDatos" runat="server" AutoGenerateColumns="True" EmptyDataText=""
|
||||
CssClass="table table-striped table-advance table-hover Widthall GvDatos adssigscrollJS tr_order" data-cols="1" data-rows="2" GridLines="None">
|
||||
CssClass="table table-striped table-advance table-hover Widthall GvDatos adssigrid-scroll adssigrid-order" data-cols="0" data-rows="1" GridLines="None">
|
||||
|
||||
<HeaderStyle CssClass="Titulos" />
|
||||
<RowStyle CssClass="Texto" />
|
||||
|
||||
@@ -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 tr > th::after {
|
||||
.adssigrid-order tr > th::after {
|
||||
content: "\f0dc";
|
||||
font:normal normal normal 14px / 1 FontAwesome;
|
||||
display: inline-block;
|
||||
margin-left: 5px;
|
||||
color: #32A1CF;
|
||||
}
|
||||
.tr_order tr > th.asce::after {
|
||||
.adssigrid-order tr > th.asce::after {
|
||||
content: "\f0de";
|
||||
}
|
||||
|
||||
.tr_order tr > th.desc::after {
|
||||
.adssigrid-order tr > th.desc::after {
|
||||
content: "\f0dd";
|
||||
}
|
||||
/*END ScrollADS V2*/
|
||||
@@ -353,7 +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 tr_order table table-striped table-advance table-hover " data-cols="2" data-rows="2" data-heightmenos="300" GridLines="None" >
|
||||
DataKeyNames="CvePS" CssClass="adssigrid-scroll adssigrid-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>
|
||||
|
||||
@@ -3009,3 +3009,49 @@ div.mypaste * {
|
||||
table > tbody > tr.hidetrad {
|
||||
display: none;
|
||||
}
|
||||
|
||||
|
||||
/*Begin ScrollADS V2*/
|
||||
|
||||
.divContainerads {
|
||||
width: 100%;
|
||||
max-height: calc(100vh - 260px);
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
table.adssigscroll {
|
||||
min-width: 100%;
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
table.adssigscroll tbody, table.adssigscroll thead {
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
table.adssigscroll tr {
|
||||
background-color: inherit;
|
||||
}
|
||||
|
||||
table.adssigscroll tr.stickyRow {
|
||||
position: sticky;
|
||||
top: 0; /* Se mantiene pegado en la parte superior */
|
||||
background-color: inherit; /* Para que no se superponga con otros elementos */
|
||||
z-index: 4; /* Asegura que esté sobre otros elementos */
|
||||
}
|
||||
|
||||
.adssigrid-order tr > th::after {
|
||||
content: "\f0dc";
|
||||
font: normal normal normal 14px / 1 FontAwesome;
|
||||
display: inline-block;
|
||||
margin-left: 5px;
|
||||
color: #32A1CF;
|
||||
}
|
||||
|
||||
.adssigrid-order tr > th.asce::after {
|
||||
content: "\f0de";
|
||||
}
|
||||
|
||||
.adssigrid-order tr > th.desc::after {
|
||||
content: "\f0dd";
|
||||
}
|
||||
/*END ScrollADS V2*/
|
||||
@@ -403,7 +403,7 @@ setswitch = function () {
|
||||
};
|
||||
function adssigscrollJSLoad() {
|
||||
|
||||
$('table.adssigscrollJS:not(.adssigscroll)').each(function () {
|
||||
$('table.adssigrid-scroll:not(.adssigscroll)').each(function () {
|
||||
try {
|
||||
let Tthis = $(this);
|
||||
let Tid = Tthis.attr('id');
|
||||
@@ -474,14 +474,14 @@ table#${Tid}.adssigscroll tr:nth-child(${numberitem}) { top: ${top}px; }`;
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
console.log("adssigscrollJS Error:" + err.message);
|
||||
console.log("adssigrid-scroll Error:" + err.message);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
}
|
||||
function LoadSortSticky() {
|
||||
$('body').on('click', 'table.adssigscroll.tr_order tr:not(.tsorterblock) > th ', function (e) {
|
||||
$('body').on('click', 'table.adssigscroll.adssigrid-order tr:not(.tsorterblock) > th ', function (e) {
|
||||
var tthis = $(this);
|
||||
if (tthis.closest('.NoClick').length == 0 && !($(e.target).is('a,input'))) {
|
||||
|
||||
|
||||
@@ -727,7 +727,7 @@ table.adssigscroll {
|
||||
z-index: 4; /* Asegura que esté sobre otros elementos */
|
||||
}
|
||||
|
||||
.tr_order tr > th::after {
|
||||
.adssigrid-order tr > th::after {
|
||||
content: "\f0dc";
|
||||
font: normal normal normal 14px / 1 FontAwesome;
|
||||
display: inline-block;
|
||||
@@ -735,11 +735,11 @@ table.adssigscroll {
|
||||
color: #32A1CF;
|
||||
}
|
||||
|
||||
.tr_order tr > th.asce::after {
|
||||
.adssigrid-order tr > th.asce::after {
|
||||
content: "\f0de";
|
||||
}
|
||||
|
||||
.tr_order tr > th.desc::after {
|
||||
.adssigrid-order tr > th.desc::after {
|
||||
content: "\f0dd";
|
||||
}
|
||||
/*END ScrollADS V2*/
|
||||
Reference in New Issue
Block a user