We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

DataGridContol issues and questions

Thread ID:

Created:

Updated:

Platform:

Replies:

80260 Mar 25,2009 10:15 AM Jul 24,2009 12:36 AM WPF 3
loading
Tags: GridControl
Greg
Asked On March 25, 2009 10:15 AM

Hi,

Using your WPF 7.1.0.30 trial I'm trying to build a simple app, but there are several issues using DataGridContol(I know that it's still a preview release):

1) I cannot find way how to implement PageDown/Up buttons which scroll page down/up. Any suggestions?

2) Binding to large data table with 300 000 records, your sorting seems to be a little bit slow. But I cannot find way how to measure it .. no appropriate events before and right after sorting .. Any suggestions?

3) Could confirm that you still dont have Filtering? When it will be available?

4) I'm trying your this.dataGrid.Model.Table.ExpandAll();
this.dataGrid.Model.Table.CollapseAll();

But ExpandAll expand only shows only first and second levels. My test data has 3 levels and third is still collapsed.

However I tried to implement it by my own:

private void Expand_Click(object sender, RoutedEventArgs e)
{
//this.SyncFusionDataGrid.Model.Table.ExpandAll();
ExpandCollapseAll( this.SyncFusionDataGrid.Model.Table.Records, true);
}

private void ExpandCollapseAll(IEnumerable records, bool expand)
{
foreach (GridDataRecord record in records)
{
record.IsExpanded = expand ? true : false;

if (null != record.ChildModels)
{
GridDataChildTableModel gridDataChildTableModel = record.ChildModels[0];
ExpandCollapseAll(gridDataChildTableModel.Table.Records, expand);
}

//this.ExpandCollapseAll(record.ChildModels[0], expand);
}
}


And it throws:

System.ArgumentNullException was unhandled
Message="Value cannot be null.\r\nParameter name: items"
Source="Syncfusion.GridCommon.WPF"
ParamName="items"
StackTrace:
at Syncfusion.Windows.Controls.Grid.FunctionalExtensions.ForEach[T](IEnumerable items, Action`1 action)
at Syncfusion.Windows.Controls.Grid.GridDataTable.EnsureInitialized()
at Syncfusion.Windows.Controls.Grid.GridDataTable.get_Records()
at SyncFusionDataGrid.HBindingSortingPage.Expand_Click(Object sender, RoutedEventArgs e) in

Any thoughts??

Greg



Administrator [Syncfusion]
Replied On March 26, 2009 05:57 AM

Hi Greg,

Thanks for evaluating Syncfusion products. I will list out the details below,

1) We already have the code implemented for PageUp/PageDown. We currently do not provide options to pass on the derived base grid into the DataGrid wrapper. We will have this considered for our final version.
2) With the latest code base we have done huge performance optimizations. We have included the following properties,

-> IsDefferedScrollingEnabled - Makes the scroll viewer preview the data only when the thumb is released.
-> EnableLazyLoad - Populates the internal data structures on demand.

Both these properties offers huge performance savings if you have very large amount of data. You can check out our next week's development build, (Monday) for checking out on these properties.

3)Yes, we will have the filtering implemented as in Excel by our next major release.

4)We have identified this as a bug. Please create a direct trac incident for checking the progress on this.

Let me know if you want any more details.

Thanks,
Fahad
Grid.WPF Team
Syncfusion Inc.,


Tom Gielow
Replied On July 23, 2009 12:43 PM

It appears that EnableLazyLoad is NOT a property of GridDataControl....can you help?

Mohamed Suhaib Fahad A. [Syncfusion]
Replied On July 24, 2009 12:36 AM

Hi Thomas,

Thanks for using Syncfusion products. We removed the EnableLazyLoad property in our Vol2 release itself, this is because we made it work with Virtualized data display, and so this property was never needed once we got that working.

Please let me know if you need any more details.

Thanks,
Fahad
Grid.WPF Team
Syncfusion Inc.,

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;