Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
20
XamWebgrid with templated column bound to datetime => filterrow shows weird behaviour
posted

When I bind a templated column to a datetime and set allowfilterrow to top and filteringscope to columnlayout then the filter does not work for this column:

When the datetime of a row equals the datetime entered in the filterrow => no rows are shown.

When I click the removefilter icon, the removefilter icon stays visible.

See also attached files.

SilverlightApplication.zip
Parents
No Data
Reply
  • 21382
    Suggested Answer
    posted

    Looking over your sample:

     

    In your data creation you are using DateTime.Now.  A DateTime object will contain a Milliseconds property which is not shown in the normal ToString() representation of the data.  So if you type into the filter box the exact thing you see into the cell, the Millisecond value will be different (it will default to zero, but he value from the DateTime.Now will more then likely not be zero) and the filter will fail.

     

    If the Time aspect of your filtering is not important, then you could use the Date Column rather then a Template Column. 

     

    The RemoveFilter icon issue was replicated and will be resolved in a future service release.

Children
No Data