⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

Default state for search section



kenvogt
  • profile picture
  • Member

Posted 14 June 2012 - 19:28 PM

When a grid page is built with ->render() the default state for the search section is minimized. Is it possible for the default state to be maximized?

fdias
  • profile picture
  • Member

Posted 14 June 2012 - 20:39 PM

Use this code on the head area of your view:

<script type="text/javascript">
$(document).ready(function() {
$('#quickSearchButton').trigger('click');
});
</script>


Cheers.

nestg
  • profile picture
  • Member

Posted 09 April 2013 - 22:45 PM

i make this for have the fix in all pages (the search tab will be open all time in all pages)

 

in the file flexigrid.js

 

cut this line  $('#quickSearchBox').slideToggle('normal'); and paste before of the search button click function, this is the final code

 

    $('#quickSearchBox').slideToggle('normal');
  

    $('#quickSearchButton').click(function(){
       //  i move this line to top
    });