Hello there folks,
I have an issue with a RadGridView and GridViewNewRow.
I have a RadGridView bound to an Itemssource (ICollection). Every row is expandable with a DetailsTemplate for Read-Only and Edit. So far everything works fine. Problems arise when I enable the "NewRow" option of the GridView.
The GridViewNewRow uses the same DetailsTemplate as the Edit Template but for some strange reason the built-in ScrollViewer of RadGridView works differently for the GridViewNewRow. The content of the GridViewNewRow gets recognized and shown (all Height and Width properties are set to Auto/NaN), but the content is not scrollable, so if the new row gets activated near the bottom of the GridView, the content flows outside of the visible area and you have no possibility to focus it there.
Expanding the DetailsTemplate of the Read-Only or Edit Template works perfectly with the scrolling. So basically you can add a new row on the bottom of the GridView and you can only see half of the content, then you commit the row and go to edit mode of the same row (which uses exactly the same template) and you can scroll like a young god. I added two pictures showing the explained behavior, GridViewNewRow without the ScrollBar and GridViewRow with the ScrollBar, both using the same template with the same data, but one working and the other not so much.
I did some digging inside the properties and saw that the IScrollInfo.ExtentHeight of the RadGridView does not recognize the expanding of the Details Template of the GridViewNewRow while it does recognize the expanding of the GridViewRow. So there might be some error at this point. I attach an event handler to the "AddingNewDataItem" in the RadGridView to set the DataContext, but otherwise everything is out-of-the-box "Telerik" usage and I never enable/disable the ScrollViewer in any way.
Any ideas where the problem might be? Is there some property you have to set for GridViewNewRow?
Thanks !
I have an issue with a RadGridView and GridViewNewRow.
I have a RadGridView bound to an Itemssource (ICollection). Every row is expandable with a DetailsTemplate for Read-Only and Edit. So far everything works fine. Problems arise when I enable the "NewRow" option of the GridView.
The GridViewNewRow uses the same DetailsTemplate as the Edit Template but for some strange reason the built-in ScrollViewer of RadGridView works differently for the GridViewNewRow. The content of the GridViewNewRow gets recognized and shown (all Height and Width properties are set to Auto/NaN), but the content is not scrollable, so if the new row gets activated near the bottom of the GridView, the content flows outside of the visible area and you have no possibility to focus it there.
Expanding the DetailsTemplate of the Read-Only or Edit Template works perfectly with the scrolling. So basically you can add a new row on the bottom of the GridView and you can only see half of the content, then you commit the row and go to edit mode of the same row (which uses exactly the same template) and you can scroll like a young god. I added two pictures showing the explained behavior, GridViewNewRow without the ScrollBar and GridViewRow with the ScrollBar, both using the same template with the same data, but one working and the other not so much.
I did some digging inside the properties and saw that the IScrollInfo.ExtentHeight of the RadGridView does not recognize the expanding of the Details Template of the GridViewNewRow while it does recognize the expanding of the GridViewRow. So there might be some error at this point. I attach an event handler to the "AddingNewDataItem" in the RadGridView to set the DataContext, but otherwise everything is out-of-the-box "Telerik" usage and I never enable/disable the ScrollViewer in any way.
Any ideas where the problem might be? Is there some property you have to set for GridViewNewRow?
Thanks !