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

[Solved] GridView Columns splitter locations

1 Answer 140 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Pradeep Reddy
Top achievements
Rank 1
Pradeep Reddy asked on 29 Jan 2010, 05:17 PM
Hi,

I designed a custom control ( draggable rectangle) which is intended to be on the top of first column by default. And user has flexibility to drag it on the either sides.

The side that is dragged should be snapped to the nearest column splitter of the grid view. Right now I am manually positioning my custom control by doing math to calculate the width and the left position.

I have following questions?

    1. Is there a way to find the column splitter of the header row locations for each column?
    2. Is there a way to find if the column is in the viewport? I am unable to sync my custom control positioning based on scroll bar       change.

It would be great if some one could give me some ideas to answer my questions.

Thanks,
Pradeep

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 01 Feb 2010, 07:40 AM
Hi Pradeep,

Can you post more info about desired result and the grid version? Generally you can use ChildredOfType<T>() extension method to get the grid header row/cell elements.

Kind regards,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
GridView
Asked by
Pradeep Reddy
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or