Problem with ItemClick (Contextmenu)

11 posts, 0 answers
  1. AKROS
    AKROS avatar
    68 posts
    Member since:
    Oct 2011

    Posted 09 Jan 2012 Link to this post

    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
  2. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 09 Jan 2012 Link to this post

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

  3. DevCraft banner
  4. AKROS
    AKROS avatar
    68 posts
    Member since:
    Oct 2011

    Posted 09 Jan 2012 Link to this post

    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
  5. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 09 Jan 2012 Link to this post

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

  6. AKROS
    AKROS avatar
    68 posts
    Member since:
    Oct 2011

    Posted 09 Jan 2012 Link to this post

    All examples are working just fine but this one.
    No data is loaded inside the control... (See screenshot)
  7. AKROS
    AKROS avatar
    68 posts
    Member since:
    Oct 2011

    Posted 09 Jan 2012 Link to this post

    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
  8. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 10 Jan 2012 Link to this post

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

  9. AKROS
    AKROS avatar
    68 posts
    Member since:
    Oct 2011

    Posted 10 Jan 2012 Link to this post

    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
  10. Roman
    Roman avatar
    6 posts
    Member since:
    Oct 2011

    Posted 07 Feb 2012 Link to this post

    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).
  11. Mohan
    Mohan avatar
    1 posts
    Member since:
    Apr 2012

    Posted 02 May 2012 Link to this post

    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
  12. Yordanka
    Admin
    Yordanka avatar
    634 posts

    Posted 03 May 2012 Link to this post

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

Back to Top
DevCraft banner