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

[Solved] DataContext in design mode

2 Answers 104 Views
Chart 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.
Sajida
Top achievements
Rank 1
Sajida asked on 06 Aug 2012, 08:11 AM
HI,

We are dynamically rendering the charts based on the data in our database. For that we are assigning the data context in the design mode. 

DataContext="{Binding DefaultViewModel, RelativeSource={RelativeSource Self}}". But the problem is it is displaying the full qualified data context name. We have even tried this in code behind but the problem still persists. For example if we are using the view model name as CompositeViewModel(in code behind) then it is displaying this CompositeViewModel beside the YAxis as title. We don't want this ViewModel name to be displayed beside it. Please find the screenshot the displaying datacontext name. Can you please suggest us what can be done for this.

Thanks in Advance..

2 Answers, 1 is accepted

Sort by
0
Accepted
Georgi
Telerik team
answered on 10 Aug 2012, 07:56 AM
Hi Sajida,

Thanks for contacting us and for your question.

We had this issue in the private BETA of the components and we fixed it for the public one. Could you please just verify that you are using the latest bits available for download from your Telerik account?

In case you continue to experience problems, I would kindly ask you to prepare a sample application and to send it to me through a new support ticket, so that I can have a closer look and debug it.

Thanks for your time, I am looking forward to your reply.

Kind regards,
Georgi
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Sajida
Top achievements
Rank 1
answered on 23 Aug 2012, 11:13 AM
HI Georgi,

This is working fine now.. Thank you :)
Tags
Chart for XAML
Asked by
Sajida
Top achievements
Rank 1
Answers by
Georgi
Telerik team
Sajida
Top achievements
Rank 1
Share this question
or