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
590
XamWebGrid Summary Row custom Text
posted

I using XamWebGrid 10.1 with ColumnLayout and Summaries inside.  In each column layout I am showing Countries; i.e. USA, Canada, Mexico.  What I would like for the summary in each is to say "Total for USA", "Total for Canada", "Total for Mexico".  It seems the only way to get access to the summary is through a converter, but when it converts there is no access to and of the Grid properties. Is there anyway to achieve this?

 

        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            if ((value as SummaryResult).SummaryDefinition.ColumnKey == "Country")
            {
               //here is where I was trying to doing something special

            }
            else
            {
                return (value as SummaryResult).Value as String;
            }
        }