Oracle Apex Interactive Grid — Remove Default First Row Selected

Satwik
Nov 14, 2020

This article is the continuation of Interactive grid features. Until APEX version 5.2 by default the first row gets selected. Starting from 19.1 Oracle provided an option to select/unselect the first row.

Apex Version 18.2 and Below

Navigate to the page properties and copy paste the below code under ‘execute when page load’

var ig$ = apex.region(“emp”).widget();
ig$.interactiveGrid(“getViews”, ig$.interactiveGrid(“getCurrentViewId”)).setSelection($());

OR

Navigate to the interactive grid, click on region attributes => advance => javascript initilization code and copy paste the below code.

*** works on all the versions.

function(options) {
options.initialSelection = false;
return options;
}

Apex Version 19.1 and Above

Navigate to the interactive grid, click on region attributes => advance => javascript initialization code and copy-paste the below code.

--

--