Announcement

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

    filterData

    hi,

    can we override ListGrid.filterData()
    how ?

    i tried following but no luck >

    isc.ListGrid.create({
    ID: "uniqueID",
    alternateRecordStyles: true,
    showFilterEditor:true,
    filterOnKeypress :true,
    autoFetchAsFilter:true,
    filterData: function(){
    alert('i m here'); // doesn't work
    },
    })

    Please note I am using SmartClient and not SmartGWT but posting here because i see more activity ans response here.

    Dev

    #2
    A better place to start would be why do you want to override it?

    Comment


      #3
      actually i am displaying a list and want to hide some of the records. i have controlled this by manually handling the array returned by DataSource.fetchData and setting that array to the ListGrid.

      but, the ListGrid also has showFilterEditor: true which calls filterData as soon as user starts typing into the filter box and i again get that hidden record (because it again fetches data)

      Comment

      Working...
      X