disable cell click and scroll in cell area

5 posts, 0 answers
  1. Florin
    Florin avatar
    5 posts
    Member since:
    Jul 2011

    Posted 28 Jul 2011 Link to this post

    Hello,

    I'm using RadGridView and i want to disable cell click, only row selection to remain, or disable autoscroll in cell area.
    How can i do that ?

    Best regards,
    Florin
  2. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 29 Jul 2011 Link to this post

    Hi Florin,

    I am not sure that I understand your question the right way.

    1. I understand that you would like to have row click, without cell click. Do you want to keep the cells enabled? Generally the GridView always have a current cell, in order to have all the functionality related to the cell working without any problems. So, it would not be possible to remove setting a current cell when you click on the row.

    2. Do you mean to prevent the cell from coming into view(with auto scrolling) when the cell is clicked?
    If this is what you are asking for, then it would be not possible.

    Does this answer your question? 

    Kind regards,
    Didie
    the Telerik team

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

  3. DevCraft banner
  4. Florin
    Florin avatar
    5 posts
    Member since:
    Jul 2011

    Posted 03 Aug 2011 Link to this post

    Hello,

    I mean the second item "prevent the cell from coming into view(with auto scrolling) when the cell is clicked".
    A think i resolve the probleme using RadGridView event RequestBringIntoView

    private void radGridView_RequestBringIntoView(object sender, RequestBringIntoViewEventArgs e)
    {
        if ((e.OriginalSource as GridViewScrollViewer) != null)
        {
            ScrollViewer sv = e.OriginalSource as GridViewScrollViewer;
            sv.ScrollToHorizontalOffset(sv.HorizontalOffset);
        }
    }

    Best regards,
    Florin
  5. rashmi
    rashmi avatar
    6 posts
    Member since:
    Aug 2011

    Posted 09 Aug 2011 Link to this post

    I was not able to find RequestBringIntoView event for grid view in silverlight. Can you tell me how did you resolved this issue.
  6. Florin
    Florin avatar
    5 posts
    Member since:
    Jul 2011

    Posted 10 Aug 2011 Link to this post

    Hi rashmi,

    Probably depends on the version of telerik components. I have use "RequestBringIntoView" event for WPF RadGridView. Maybe in Silverlight this event is not implemented.
Back to Top
DevCraft banner