This is a migrated thread and some comments may be shown as answers.

[Solved] DisplayProperties not working

2 Answers 128 Views
Grid for XAML
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Erik Damgaard
Top achievements
Rank 1
Erik Damgaard asked on 03 Jun 2013, 09:08 AM
In Silverlight, when I bind data grid column to a property and assign Display property, header of Grid column takes that value
[Display(Name = "FIXGroupId", ResourceType = typeof(FIXGroupText))]
       public short FIXGroupId { get { return _FIXGroupId; } set { _FIXGroupId = value; } }

 but in Windows 8 it is not working. Is this not possible or is there some other way to achieve this?

2 Answers, 1 is accepted

Sort by
0
Ivaylo Gergov
Telerik team
answered on 05 Jun 2013, 02:26 PM
Hello Erik,

Thank you for contacting us.

At this point our RadDataGrid component does not support extracting information from attributes. I will forward your feedback to our developers for further consideration. 

Thank you for your time and valuable feedback. Feel free to contact us if you have any other questions or suggestions. I have also updated your Telerik points.

 

Regards,
Ivaylo Gergov
Telerik
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
0
Giuseppe
Telerik team
answered on 05 Jun 2013, 02:58 PM
Hello Erik,

Just a quick follow-up -- currently you can either set the header directly on the manually generated column as described in the documentation here, or you can use the GenerateColumn command to tap into the column generation routine and achieve the same effect for auto-generated columns as well.

You can find the relevant SDK examples here and here as well (in the second sample you need to set the Header property to the column that is assigned to the context.Result property).

Hope this helps.


Regards,
Giuseppe
Telerik
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
Tags
Grid for XAML
Asked by
Erik Damgaard
Top achievements
Rank 1
Answers by
Ivaylo Gergov
Telerik team
Giuseppe
Telerik team
Share this question
or