Hi,
We are using "RadControls for Silverlight Q2 2009" to display results in radgridview. We have two date columns, start date and stop date, which are of type "System.Nullable<DateTime>". Some of the values in the stop date are null. When StopDate is null, it is considered to be infinity i.e. current record is valid forever after the start date.
We would want to filter the grid in such a way that current date falls between start date and stop date (StartDate<=Today AND Today<=StopDate). When StopDate is null, expression "Today<=StopDate" is expected to return true. We were able to implement the "StartDate<=Today" by changing the fieldfilterdescriptor.filter1.value and changing the operator to "greater than or equal to" programatically. However we were not able to do this with the "StopDate". When we change the fieldfilterdescriptor.filter1 value to current date, none of the records having the null values in stop date are shown. How do we change the filter functionality in such a way that, when we filter on stop date using "greater than or equal to", all records which have "Stop Date" greater than or equal to the filter value or "Stop Date" as null are disaplyed?
Vijay
We are using "RadControls for Silverlight Q2 2009" to display results in radgridview. We have two date columns, start date and stop date, which are of type "System.Nullable<DateTime>". Some of the values in the stop date are null. When StopDate is null, it is considered to be infinity i.e. current record is valid forever after the start date.
We would want to filter the grid in such a way that current date falls between start date and stop date (StartDate<=Today AND Today<=StopDate). When StopDate is null, expression "Today<=StopDate" is expected to return true. We were able to implement the "StartDate<=Today" by changing the fieldfilterdescriptor.filter1.value and changing the operator to "greater than or equal to" programatically. However we were not able to do this with the "StopDate". When we change the fieldfilterdescriptor.filter1 value to current date, none of the records having the null values in stop date are shown. How do we change the filter functionality in such a way that, when we filter on stop date using "greater than or equal to", all records which have "Stop Date" greater than or equal to the filter value or "Stop Date" as null are disaplyed?
Vijay