I have added a RadContextMenu on a RadTreeListView, but when I right click on my Control, the wrong DataContext is returned from RadContextMenu.GetClickedElement<GridViewRow>(). Everything seems to be shifted down by about 3mm (see the orange lines on the right side on the screenshot).
I don't know if this is a bug, or if the problem can be caused by some templates I'm applying (for example the horizontal black lines you can see on the screenshot).
Any clue on how to solve this problem will be appreciated!
Greetings,
Nicolas
--
Edit: I'm using v.2011.3.1304.1040
10 Answers, 1 is accepted
I have tested what is the DataContext of the RadContextMenu.GetClickedElement<GridViewRow>() and it is corresponding to the item that I have clicked on. I have tested with the latest binaries.
Is it possible for you to send us a simple project that shows your case? Thay way we could investigate it further.
Didie
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
I will try to prepare a small project for you.
Something else: I found that the online demo (http://demos.telerik.com/silverlight/#TreeListView/FirstLook) of the RadTreeListView is not working anymore.
Best Regards,
Nicolas
I have opened the demo and it seems to be working? Can you open it at your end? What is not working anymore?
Didie
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
No data is loaded inside the control... (See screenshot)
The ticket id is 499475.
Attach to this message I added a small image that show the problem (I clicked on the line '2' but '1' is displayed).
I hope it helps... please, provide feed-back as soon as possible...
Best Regards,
Nicolas
Thank you for the sample project. I will check it and then answer to you in the other thread.
As to the problem with the demo, I was not able to get such a problem. Does it behaves the same way on different machines, with other browsers?
Didie
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Thank you for your answer.
Concerning the demo problem, I tried on three different machines, always with IE 9... And I always did have the problem.
Greetings,
Nicolas
Maybe this is associated with the conversion dateTime from xml file Folders.xml
DateTime.Parse(f.Attribute("CreationTime").Value).
demo TreeListView.WPF has a defect - MyDataContext.cs & FolderViewModel.cs
add cultureinfo as below, and will work just fine:
CultureInfo ci = CultureInfo.InvariantCulture;
var data = from f in document.Element("folders").Elements("folder")
select new FolderViewModel(f.Attribute("Name").Value,
bool.Parse(f.Attribute("IsEmpty").Value),
DateTime.Parse(f.Attribute("CreationTime").Value, ci),
f
);
just getting into telerik controls. impressed so far. the folks at telerik should do a better
job at remove easily identifiable defects in their demo code (i've found about 50!) - after all, the first impressions count
The problem with the TreeListView demo is already resolved. The next demo upload will be in June along with our Q2 2012 official release.
Kind regards,
Yordanka
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>