Completed
Last Updated: 07 Feb 2017 06:26 by ADMIN
ADMIN
Hristo
Created on: 01 Dec 2015 11:40
Category: GridView
Type: Bug Report
1
FIX. RadGridView - when the grid is added to an Outlook add-in typing in the SearchRow results in an exception
Workaround: Inherit the GridViewSearchRowInfo and override the SelectNextSearchResult method
class MyGridViewSearchRowInfo : GridViewSearchRowInfo
{
	private GridViewInfo gridViewInfo;
	private RadGridView radGridView;

	public MyGridViewSearchRowInfo(GridViewInfo gridViewInfo, RadGridView radGridView) 
               : base(gridViewInfo)
	{
		this.radGridView = radGridView;
	}

	public override Type RowElementType {
		get { return typeof(GridSearchRowElement); }
	}

	public override void SelectNextSearchResult()
	{
		if (this.radGridView != null) {

			this.radGridView.ElementTree.Control.Invoke(() => { base.SelectNextSearchResult(); });
		}
	}

}
0 comments