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

RadGridView Cell Element Vertical Scrollbar Issue

1 Answer 203 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Arul S V
Top achievements
Rank 1
Arul S V asked on 20 May 2010, 11:05 AM
Hi

My RadGridView has a one "GridViewDataColumn" which may contains a dynamic controls based on the data from the DataBase (CheckBox, TextBox, DateTime Picker and RadDropDownButton). (Dynamic controls are created by using CellElement)

 RadComboBoxElement elem = new RadComboBoxElement();
RadGridView1.CurrentRow.Cells[0].CellElement.Children.Add(elem);

When my grid reached a vertical scrollbar area, when i do a vertical scrolling, the controls which is dynamically created getting re-painted in the different row index which is not the same as before vertical scrolling.

See the diiference in the attachment before vertical scroll and after

How to solve this issue.
 

 

Kindly reply ASP. 

 



Thanks
Arul

1 Answer, 1 is accepted

Sort by
0
Jack
Telerik team
answered on 20 May 2010, 05:09 PM
Hi Arul S V,

Thank you for contacting us.

RadGridView
uses UI virtualization for its visual elements. Only the cells that are currently visible have corresponding visual elements. Upon scrolling they are reused, and this is what causes the issue in your case.

Currently we do not support this scenario out of the box, however it is possible to achieve it by using custom cell elements. You have to inherit from GridDataCellElement and use the CreateCell event to replace the default cell element. Then use the SetContentCore method to update cell content.
 
We plan to implement property grid control in one of our upcoming releases.

Should you have any further questions, don't hesitate to write back.

Kind regards,
Jack
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
GridView
Asked by
Arul S V
Top achievements
Rank 1
Answers by
Jack
Telerik team
Share this question
or