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

Arrow Behavior in Grid

1 Answer 90 Views
GridView
This is a migrated thread and some comments may be shown as answers.
ROBERT
Top achievements
Rank 1
ROBERT asked on 20 Jun 2013, 10:45 PM
Hello,

I'm looking for a way to suppress the left arrow when in the first column and the right arrow when in the last column of the grid.  Basically, I don't want the user to back into a previous record by hitting the left arrow or move to the next record when hitting the right.  I do however want them to be able to navigate through the columns using the right and left arrows.

How would this be achieved?  I can't find an example in the docs.

Thanks,
Rob

1 Answer, 1 is accepted

Sort by
0
George
Telerik team
answered on 24 Jun 2013, 02:51 PM
Hello Robert,

Thank you for contacting us.

To be able suppress the default arrow behavior in the gridview you need to do a few things:
  1. Unregister the default behavior of your grid.
  2. Create a class which derives from the GridRowBehavior
  3. Register the new behavior
I am attaching a project below to give you a better representation of the method used.

If you have any more questions do not hesitate to contact us.

Regards,
George
Telerik
RadChart for WinForms is obsolete. Now what?
Tags
GridView
Asked by
ROBERT
Top achievements
Rank 1
Answers by
George
Telerik team
Share this question
or