@@ -1353,7 +1353,8 @@
Sys.Application.add_load(function (s, e) {
- <%= String.Format("FiltrarTablaClass('TxtBusqueda','{0}','contaper');", GvDatos.ClientID) %>
+
+ <%= String.Format("setTimeout(function(){{ FiltrarTablaClass('TxtBusqueda','{0}','contaper');}}, 1000)", GvDatos.ClientID) %>
});
function OrdenarGV() {
diff --git a/RH/CatPersonal.aspx.vb b/RH/CatPersonal.aspx.vb
index 406889dd2..05de5de9c 100644
--- a/RH/CatPersonal.aspx.vb
+++ b/RH/CatPersonal.aspx.vb
@@ -89,6 +89,7 @@ Partial Class RH_CatPersonal
End If
+ ltlContador.Text = String.Format("...{1}", If(GvDatos.Rows.Count > 0, "", " class='hidden' "), If(GvDatos.Rows.Count > 0, "", "0"))
End Sub
Public Sub CargaDatos()
diff --git a/Scripts/custom.js b/Scripts/custom.js
index fd6e9cf3d..bf0f194b8 100644
--- a/Scripts/custom.js
+++ b/Scripts/custom.js
@@ -85,7 +85,7 @@ function FiltrarTabla(idtxt, idtable, idcontador) {
$('div.ADScroller .ADScroller-header table#' + idtable + ' tr:not(.ADtr)').css('display', '');
}
if ($('#' + idcontador).length > 0) {
- $('#' + idcontador).html($('#' + idtable + ' tr:visible').length);
+ $('#' + idcontador).html($('#' + idtable + ' tr:visible:not(.ADtr)').length);
}
}
@@ -97,7 +97,7 @@ function FiltrarTablaStr(str, idtable, idcontador) {
$('div.ADScroller .ADScroller-header table#' + idtable + ' tr:not(.ADtr)').css('display', '');
}
if ($('#' + idcontador).length > 0) {
- $('#' + idcontador).html($('#' + idtable + ' tr:visible').length);
+ $('#' + idcontador).html($('#' + idtable + ' tr:visible:not(.hidetrad):not(.ADtr)').length);
}
}
@@ -115,7 +115,7 @@ function FiltrarTablaStrMulti(idtable, idcontador /*, str1, str2, str3...*/ ) {
$('div.ADScroller .ADScroller-header table#' + idtable + ' tr:not(.ADtr)').css('display', '');
if (idcontador) {
if ($('#' + idcontador).length > 0) {
- $('#' + idcontador).html($('#' + idtable + ' tr:visible').length);
+ $('#' + idcontador).html($('#' + idtable + ' tr:visible:not(.hidetrad):not(.ADtr)').length);
}
}
}
@@ -130,7 +130,7 @@ function FiltrarTablaClass(idtxt, idtable, idcontador, resta) {
$('div.ADScroller .ADScroller-header table#' + idtable + ' tr:not(.ADtr)').removeClass('hidetrad');
}
if ($('#' + idcontador).length > 0) {
- let numconta = $('#' + idtable + ' tr:not(.hidetrad):not(.ADtr)').length;
+ let numconta = $('#' + idtable + ' tr:visible:not(.hidetrad):not(.ADtr)').length;
if (numconta > 0) { numconta - resta}
$('#' + idcontador).html(numconta );
}
@@ -144,7 +144,7 @@ function FiltrarTablaV2(idtxt, idtable, idcontador) {
$('div.ADScroller .ADScroller-header ' + idtable + ' tr:not(.ADtr)').css('display', '');
}
if ($('#' + idcontador).length > 0) {
- $('#' + idcontador).html($(idtable + ' tr:visible').length);
+ $('#' + idcontador).html($(idtable + ' tr:visible:not(.hidetrad):not(.ADtr)').length);
}
}