Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Method called while filtering the records

    I am using a filter editor in my List grid. There is also a data source linked with the grid. Initially I fetch all the records in my grid and then if i try to filter the records , the filtering operation is a client side operation but i want to make a server call , how can this be done ?
    OR if someone can tell, which method is called when I enters some search criteria in the grid and click on the search button ??
    Thanks in advance.

    #2
    I have exactly the same problem. I overwrote all fetchData(*) and filterData(*)
    methods of ListGrid and DataSource and none of these methods is invoked after pressing filter button.

    Comment


      #3
      I have already asked basically the same question here: http://forums.smartclient.com/showpo...23&postcount=6 (Question 2 in the post.)

      Comment


        #4
        I also have the same problem

        Comment


          #5
          To control whether filtering is done client or server-side, see ListGrid.dataFetchMode and the docs for ResultSet.

          Overriding fetchData() or filterData() definitely does not make sense as an approach for controlling this behavior, and it's extremely rare that it makes sense in general. Read the overviews of client and server data integration in the FAQ, and if you think you still have a need to override these methods, please explain what you're trying to do in great detail, and why you eliminated all of the best practices suggested in the docs.

          Comment

          Working...
          X