This topic is locked

How to hide 'Edit selected'/'Delete selected' buttons

11/17/2010 12:26:46 PM
ASPRunnerPro Tips and tricks
admin

ASPRunnerPro 6.2/6.3
Sometimes you need to show 'Edit selected' and 'Delete selected' only when there are selected records on the list page. For this purpose add the following code to 'List page: Javascript OnLoad' event

$('span[@id=record_controls1]').hide();
$('input[@type=checkbox][@name^=selection],[@id^=chooseAll]').click(function() {

if ($('input[@type=checkbox][@checked][@name^=selection]').length)

{

$('span[@id=record_controls1]').show();

}

else

{

$('span[@id=record_controls1]').hide();

}
});
B
beginner 8/4/2011

how do I change this code for date field? Actually, I would like show "Edit" if <date filed> is empty otherwise hide "Edit".
Thanks for help.