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.
Syncfusion Feedback

GridDataControl datatemplate response

Thread ID:

Created:

Updated:

Platform:

Replies:

102453 Jan 31,2012 05:35 PM Feb 9,2012 09:09 AM WPF 3
loading
Tags: GridControl
Rich Fabros
Asked On January 31, 2012 05:35 PM

Hi,

I've got another question.See attached zip file, there's also an image there of the issue i've been encountering.

I have a GridDataControl where all the columns are unbound and templated. The template is just a textbox.

I encounter a problem where the textboxes from the template become unresponsive (no visual response from keydown) when dealing with a big grid. The sample project i attached is enough to replicate what i've encountered in my main app.

To replicate:
Run the sample and wait for the grid to get bigger, it only has blank textboxes. When it gets big about 60+ rows try scrolling up and down, and then resizing. at some point the textboxes will have no response from input (typing into them).
(see image file inside the zip for grid size reference).

The workaround is resizing the window small enough, and input will be back.. however i need the grid to work when maximized.





GridTemplateTest_c5f18dd3.zip

Rich Fabros
Replied On January 31, 2012 05:37 PM

I'd like to clarify. The textboxes are meant to be blank, the lack of response from typing into them when the grid gets large is the problem.


Rich Fabros
Replied On January 31, 2012 07:37 PM

Also, the main reason why i'm asking this is that we plan to put in some fancy custom controls in the cells and we're wondering about performance impact, issues, etc.


Rajasekar [Syncfusion]
Replied On February 9, 2012 09:09 AM

HI Rich,

Sorry for the delay in getting back to you.

We have modified the sample and it works fine now. Actually it’s not a bug with Syncfusion WPF GridControl. In Syncfusion Window Grid, The grid just does a WindowScroll and then just repaints the single new row that is exposed. This is done in the tight loop in the new thread. So, each time through the loop a single row is repainted (with the rest of the window just being shifted up by the Win32 WindowScroll). Since there is only one row being repainted, this work is completed quickly enough not to bug down the CPU in the tight loop.
But with WPF, the whole grid gets repainted each time through the loop. This means the WPF code is pegging the CPU, and this is the reason for the poor results.
The modified sample that work is done on the UI thread using Begin Invokes to queue up handling the next add. Doing this will allow the UI to remain responsive.

Sample can be downloaded from the following location.

http://www.syncfusion.com/downloads/Support/DirectTrac/89398/WpfApplication11870670475.zip

Please let us know if you have any queries.

Thanks,
Rajasekar



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.

Warning Icon 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.Close Icon

;