This question is locked. New answers and comments are not allowed.
What is considered the best practice for determining whether there are any rows bound?
Currently, I'm using the client-side OnDataBound event, and code similar to the following:
"No records to display."
There has got to be a better way!
Currently, I'm using the client-side OnDataBound event, and code similar to the following:
"No records to display."
gridDataBound:
function
(event)
{
var
rows = $(
'tbody tr:has(td)'
,
this
);
if
(rows.length == 0 || (rows.length == 1 && rows[0].innerText == "No records to display'))
$(
'#GridSection'
).hide(
"slow"
);
}
There has got to be a better way!