Fields window fields alias

2 posts, 0 answers
  1. Stefania
    Stefania avatar
    107 posts
    Member since:
    May 2013

    Posted 15 May 2014 Link to this post

    Hi,
    I need to show the fields name in my fields window with an alias. Is it possible?
    My pivotgrid is populated with an object like this:

    public class ReportModelObject
        {
            private string m_CompanyCode;
            private string m_CompanyDescription;
            private string m_CountryCode;
            private string m_CountryDescription;
            private string m_SiteCode;
            private string m_SiteDescription;
     
            public ReportModelObject()
            {
     
            }
     
            public string CompanyCode
            {
                get { return m_CompanyCode; }
                set { m_CompanyCode = value; NotifyPropertyChanged("CompanyCode"); }
            }
            public string CompanyDescription
            {
                get { return m_CompanyDescription; }
                set { m_CompanyDescription = value; NotifyPropertyChanged("CompanyDescription"); }
            }
            public string CountryCode
            {
                get { return m_CountryCode; }
                set { m_CountryCode = value; NotifyPropertyChanged("CountryCode"); }
            }
            public string CountryDescription
            {
                get { return m_CountryDescription; }
                set { m_CountryDescription = value; NotifyPropertyChanged("CountryDescription"); }
            }
            public string SiteCode
            {
                get { return m_SiteCode; }
                set { m_SiteCode = value; NotifyPropertyChanged("SiteCode"); }
            }
            public string SiteDescription
            {
                get { return m_SiteDescription; }
                set { m_SiteDescription = value; NotifyPropertyChanged("SiteDescription"); }
            }
             
            #region INotifyPropertyChanged Implementation
     
            [field: NonSerialized]
            public event PropertyChangedEventHandler PropertyChanged;
     
            protected void NotifyPropertyChanged(string name)
            {
                if (PropertyChanged != null)
                    PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(name));
            }
     
            #endregion
             
        }
  2. Stefania
    Stefania avatar
    107 posts
    Member since:
    May 2013

    Posted 19 May 2014 in reply to Stefania Link to this post

    Hi,
    I found the solution here
    http://www.telerik.com/forums/fieldname-captions
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top