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

Problem with ItemClick (Contextmenu)

10 Answers 155 Views
TreeListView
This is a migrated thread and some comments may be shown as answers.
AKROS
Top achievements
Rank 1
AKROS asked on 09 Jan 2012, 11:28 AM
Hello Telerik,

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

Sort by
0
Dimitrina
Telerik team
answered on 09 Jan 2012, 01:56 PM
Hi Nicolas,

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.

Regards,
Didie
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
AKROS
Top achievements
Rank 1
answered on 09 Jan 2012, 02:52 PM
Hi Didie,

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
0
Dimitrina
Telerik team
answered on 09 Jan 2012, 02:59 PM
Hi Nicolas,

 I have opened the demo and it seems to be working? Can you open it at your end? What is not working anymore?

All the best,
Didie
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
AKROS
Top achievements
Rank 1
answered on 09 Jan 2012, 03:05 PM
All examples are working just fine but this one.
No data is loaded inside the control... (See screenshot)
0
AKROS
Top achievements
Rank 1
answered on 09 Jan 2012, 03:55 PM
Concerning my first question, I just submitted a small demo project that reproduce the problem.
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
0
Dimitrina
Telerik team
answered on 10 Jan 2012, 10:50 AM
Hello,

 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? 

Greetings,
Didie
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
AKROS
Top achievements
Rank 1
answered on 10 Jan 2012, 11:17 AM
Hi,

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
0
Roman
Top achievements
Rank 1
answered on 07 Feb 2012, 10:53 AM
I had the same problem with the demo.
Maybe this is associated with the conversion dateTime  from xml file Folders.xml
  DateTime.Parse(f.Attribute("CreationTime").Value).
0
Mohan
Top achievements
Rank 1
answered on 02 May 2012, 07:46 PM
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").Valueci),
                                      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
0
Yordanka
Telerik team
answered on 03 May 2012, 08:23 AM
Hello,

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 >>

Tags
TreeListView
Asked by
AKROS
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
AKROS
Top achievements
Rank 1
Roman
Top achievements
Rank 1
Mohan
Top achievements
Rank 1
Yordanka
Telerik team
Share this question
or