PART_IndicatorPresenter not working

6 posts, 0 answers
  1. Adriano
    Adriano avatar
    19 posts
    Member since:
    Jul 2012

    Posted 15 Feb 2013 Link to this post

    HI,

    I have a project whith version "2012.2.0725.1050" and I had to format my machice, and installed version "2012.3.1129.1050" but the first line of code now is retuning null:

                   
    Border indicatorPresenter = row.ChildrenOfType<Border>().Where(b => b.Name == "PART_IndicatorPresenter").FirstOrDefault();
    indicatorPresenter.MouseLeftButtonDown +=
    new MouseButtonEventHandler(indicatorPresenter_MouseLeftButtonDown);

     Do you have any other solution?

    Thanks,
    Adriano.
  2. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 15 Feb 2013 Link to this post

    Hi Adriano,

    May I ask you to share what your final goal is? Why do you need to get this border? 

    Greetings,
    Didie
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. Adriano
    Adriano avatar
    19 posts
    Member since:
    Jul 2012

    Posted 15 Feb 2013 Link to this post

    Hi Didie,

    I did this so I could have SelectionMode=Cell and when user click on presenter it changes to Row.

    If I'm not mistaken I used this post as a source: http://www.telerik.com/community/forums/silverlight/general-discussions/row-indicator-with-selectionmode-cell.aspx.

    Can't I have this part working instead of change my code?

    Thanks,
    Adriano.
  4. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 15 Feb 2013 Link to this post

    Hello Adriano,

    Actually we have introduced such feature out-of-the-box with our current official release Q3 2012 SP1. All you need to do is set SelectionUnit property of the grid to be "Mixed".  Does this solution work for you?

    Greetings,
    Didie
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  5. Adriano
    Adriano avatar
    19 posts
    Member since:
    Jul 2012

    Posted 27 Feb 2013 Link to this post

    Hi,

    I'm on the final tests for this feature, we implemented as you told, but we have a problem.

    If user press CTRL + A and then press Delete, the whole grid is going to be deleted (as it happens here: http://demos.telerik.com/silverlight/#GridView/Commands), but once the user does the same process, GridView should only delete/clean data not delete the rows.

    Is this possible?

    Thanks,
    Adriano.
  6. Adriano
    Adriano avatar
    19 posts
    Member since:
    Jul 2012

    Posted 01 Mar 2013 Link to this post

    I just found what caused this, I changed from CanUserDeleteRows="True" to CanUserDeleteRows="False", and now it's working as expected.

    Thanks,
    Adriano Gaspar.
Back to Top