1 Reply Latest reply: Aug 30, 2009 12:15 PM by Arnout Kazemier RSS

    Filtering data

    Kristtee Community Member

      please please someone help me please. take a look at this page. it took a week to put together. the problem is, after i load the page and in the search textfield i enter css or something like that. it is showing me the list of css books. great. then i delete the css word from the textfield and THE PAGE RELOADS WITH ENTIRE XML DATA instead of the first 10 as set in pagesize. what is the problem. someone guide me please.

      thank you

      krish

        • 1. Re: Filtering data
          Arnout Kazemier Community Member

          You are using the same variable name for both of your datasets, they should be unique.

           

          var dsbooks= new Spry.Data.XMLDataSet("data/books.xml", "dataroot/tbl_books");

          var dsbooks= new Spry.Data.PagedView(dsbooks, { pageSize:10 } );

          All filtering should be apply on your main dataset, not the pagedview datasets. Hopes this helps.