Jump to content


Default state for search section

search

  • Please log in to reply
2 replies to this topic

#1 kenvogt

kenvogt

    Advanced Member

  • Members
  • PipPipPip
  • 51 posts

Posted 14 June 2012 - 07: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?

#2 fdias

fdias

    grocery CRUD Addict

  • Members
  • PipPipPip
  • 93 posts

Posted 14 June 2012 - 08:39 PM

Use this code on the head area of your view:
<script type="text/javascript">
$(document).ready(function() {
  $('#quickSearchButton').trigger('click');
});
</script>

Cheers.

#3 nestg

nestg

    Newbie

  • Members
  • Pip
  • 6 posts

Posted 09 April 2013 - 10: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
    });


www.nestg.com






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users