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

disable cell click and scroll in cell area

4 Answers 126 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Florin
Top achievements
Rank 1
Florin asked on 28 Jul 2011, 11:22 AM
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

4 Answers, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 29 Jul 2011, 04:32 PM
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 >>

0
Florin
Top achievements
Rank 1
answered on 03 Aug 2011, 10:26 AM
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
0
rashmi
Top achievements
Rank 1
answered on 09 Aug 2011, 11:05 AM
I was not able to find RequestBringIntoView event for grid view in silverlight. Can you tell me how did you resolved this issue.
0
Florin
Top achievements
Rank 1
answered on 10 Aug 2011, 02:54 PM
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.
Tags
GridView
Asked by
Florin
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Florin
Top achievements
Rank 1
rashmi
Top achievements
Rank 1
Share this question
or