[CLOSED] grid search problem

  1. #1

    [CLOSED] grid search problem

    i have a grid with paging toolbar:

    <BottomBar>
        <ext:PagingToolBar ID="ListPagination" runat="server" StoreID="SearchStore" PageSize="100">
            <Plugins>
                <ext:SlidingPager ID="SlidingPager1" runat="server">
                    <GetText Fn="function(s){return s.value}" />
                </ext:SlidingPager>
            </Plugins>
        </ext:PagingToolBar>
    </BottomBar>
    and a search form triggered by this button:


    <ext:Button ID="btnSearch" runat="server" Text="#Search#" Icon="Magnifier" CausesValidation="true">
        <Listeners>
            <Click Handler="#{SearchStore}.reload();" />
        </Listeners>
    </ext:Button>
    now the problem is that if I am viewing page 10 and search for something else and the number of pages is 5, the grid refreshes but i still view an empty page 10. How could I prevent it from behaving like that? reset the current page to 1 for example when clicking the search button?

  2. #2

    RE: [CLOSED] grid search problem

    Hi,

    Try to change page manually


    <ext:Button ID="btnSearch" runat="server" Text="#Search#" Icon="Magnifier" CausesValidation="true">
    *********************** <Listeners>
    *************************** <Click Handler="#{SearchStore}.reload();#{ListPagination} .changePage(1);" />*********************** </Listeners>
    ******************* </ext:Button>


    If this doesn't help then I need to see full page code because it is need to know what proxy do you use and what grid panel configuration
    *
  3. #3

    RE: [CLOSED] grid search problem

    *thanks, you can mark as CLOSED

Similar Threads

  1. Help!!!ComboBox Custom Search 's Problem~
    By st.leo in forum 1.x Help
    Replies: 2
    Last Post: Nov 24, 2010, 9:20 AM
  2. ComboBox Custom Search 's Problem~
    By st.leo in forum 1.x Help
    Replies: 1
    Last Post: Nov 18, 2010, 2:00 AM
  3. Grid Search
    By decipher1978 in forum 1.x Help
    Replies: 1
    Last Post: Apr 12, 2010, 5:09 PM
  4. [CLOSED] Problem making ComboBox Search work
    By pkellner in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Nov 25, 2008, 1:52 PM
  5. [CLOSED] search form connected to a grid
    By alexp in forum 1.x Help
    Replies: 2
    Last Post: Nov 18, 2008, 12:37 PM

Posting Permissions