Hi,
We are urgently looking for following features in infragistic webdatagrid.
We have over 1 million records in a table(Oracle) from which we need to fetch the data.
Is it Possible to achieve above functionality in WebDataGrid?
Would be greatful if any sample is provided.
Hi Bhaskar,
Thank you for posting in our forum.
Here is an example which would be helpful - http://www.infragistics.com/products/aspnet/sample/data-grid/custom-databinding-paging-collection. You can also enable filtering, but it will filter only the records, displayed on the current page, because the grid data source does not contain all the data from the database.
If you have any questions, please feel free to contact me.
Hi Nikolay,
Thanks for your reply.
I have already implemented this " http://www.infragistics.com/products/aspnet/sample/data-grid/custom-databinding-paging-collection." The issue am facing is the moment i enable Filtering for above sample am getting below error...
"When using CustomBinding and ExcelStyleFilter PopulateUniqueFilterValues event needs to be handled to provide the values which need to be displayed in the filtering dropdowns."
Am looking for FilterType="ExcelStyleFilter" with this.
kindly help me with this and to resolve my query.
An early reply is awaited.
Thanks,
Bhaskar.t
Here is an example how you can handle the PopulateUniqueFilterValues event:
protected Dictionary<string, List<object>> WebDataGrid1_PopulateUniqueFilterValues(object sender)
{
Dictionary<string, List<object>> filterDict = new Dictionary<string, List<object>>();
filterDict.Add("ID", new List<object>() { "1", "2", "3" });
filterDict.Add("FirstName", new List<object>() { "Jack", "Bob", "Steve" });
return filterDict;
}
The method returns a Dictionary<string, List<object>> - the key is the ColumnKey and the value is a list of options for the Excel filter of that column. In this example, you will have 3 different options for ID and FirstName columns in the grid.
If you have any further questions, please do not hesitate to ask.
Thanks for Reply..
The Event is WebDataGrid1_PopulateUniqueFilterValues firing, but am unbale to see the values in Filtering Dropdown of Excel Filter.
Would you attach any sample with above code.
After adding Excel Filter i need to do a SORTING as well. (i.e., Custom Sorting for above main requirement.).
Awaiting for reply.
Bhaskar
Any Updates for above query?
Hello,
There is no automatic support for sorting and filtering when using custom databinding, so you have to handle manually these behaviors. Here you can find more information on the matter - http://www.infragistics.com/community/forums/p/66819/337816.aspx.
Dear
How to implement sorting when used custom databinding???? Please give you example.. It's need very soon...
Regards
Suday