Hi,
I've been trying to figure out if this is even possible. I have a application with high demands on performance and would like to use the gridview filters for filtering in SQL. I would like to do something like this....
Is this possible?
I've been trying to figure out if this is even possible. I have a application with high demands on performance and would like to use the gridview filters for filtering in SQL. I would like to do something like this....
protected void RadGrid_NeedDataSource( object source, GridNeedDataSourceEventArgs e ) | |
{ | |
ObjectID statusID = null; | |
IssueStatusDropDownList statusDropDownList = ((RadGridIssueStatusColumn)_radGrid.Columns.FindByUniqueName( "StatusColumn" )).FilterDropDownList; | |
if( statusDropDownList != null ) | |
{ | |
if( statusDropDownList.SelectedValue != IssueStatusDropDownList.ALL_ISSUE_STATUSES ) | |
statusID = new ObjectID( statusDropDownList.SelectedValue ); | |
} | |
List<Issue> issueList = Issue.GetList( statusID ); | |
_radGrid.DataSource = issueList; | |
} |
Is this possible?