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
990
Infragistics (12.2) :- FilterCellValuePresenterStyle Sample.
posted

Hi Team,

I am looking for some custom FilterCellValuePresenterStyle.? I am not able to bind my XamNumericEditor to values which force Field to filter.

Please suggest some good sample code so that by using them I could create my own Custom Filteration Template for my different Custom Objects.

What I did till now is,

I have object Money.cs : IComparable

{

     public double Amount;

    public double Currency;

   public override string ToString()
    {
      return (!String.IsNullOrEmpty(currency) ? currency + " " + value : value);
    }

   public int CompareTo(object obj)

    {

      if (Amount > ((Money)obj).Amount)

        return 1;

      if (Amount == ((Money)obj).Amount)

        return 0;

      return -1;

    }

}

 

Xaml:- added XamNumericEditor

 

 

XAML.cs

     if (field.DataType == typeof(Money))

            {

              field.Settings.FilterCellValuePresenterStyle = (Style)_grid.Resources["_moneyTypeFilterCellValuePresenter"];

            }

What is not working here is filtration when ">=" for my value which is not in Combo dropdownlist.

Thanks