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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

DataBoundTemplate issue in GridControl

Thread ID:

Created:

Updated:

Platform:

Replies:

96788 Oct 6,2010 10:57 AM UTC Nov 24,2010 12:27 PM UTC Silverlight 6
loading
Tags: GridControl
Patrick Teoh
Asked On October 6, 2010 10:57 AM UTC

Hi,

I have a large GridControl which uses several DataBoundTemplate as the CellType.

The issue I'm having is that when I scroll the grid vertically, the cells do not retain their template and everything gets jumbled up.
Sometimes a cell displays the correct template and sometimes it picks up a template from another cell to render.

Is there a way to refresh the cells cleanly?

I have tried calling InvalidateVisual(true) in the QueryCellInfo event, but it doesn't work.

Thanks.


Patrick Teoh
Replied On October 7, 2010 02:10 AM UTC

Hi,

I have attached a sample project to simulate my issue, based on the fix provided below.

http://www.syncfusion.com/support/forums/grid-silverlight/92319/Cell-Item-Template-not-working-after-a-certain-number-of-cells

Hope this helps in your debugging.



SimpleGrid2_62ca128b.zip

Kamalakannan A [Syncfusion]
Replied On November 15, 2010 12:16 PM UTC

Hi Patrick,

Sorry for the delay caused.

We have checked with your sample and we are not able to reproduce the issue from 8.4.0.10. However you can refresh the cells using InvalidateCells() as below to fix your issues.

[Code snippet] [C#]

this.dataGrid.Model.InvalidateCell(GridRangeInfo.Table());


Let us know if you need any details.

Thanks,
Kamal.



Patrick Teoh
Replied On November 18, 2010 06:28 AM UTC

Hi Kamal,

I have just installed the latest 8.4.0.10, but I couldn't find any Syncfusion.Grid.Silverlight.dll in the v3.5 assemblies
C:\Program Files\Syncfusion\Essential Studio\8.4.0.10\Assemblies\3.5

However, I did a retest using .Net Framework 4.0 and this issue is still there.

You can simulate the error as below
- I load the grid with even rows as a button and odd rows as a TextBlock.
- After loading the grid, scroll the grid vertically up and down for awhile, and you will see that the layout changes (buttons and TextBlocks are no longer at their correct row).

I have re-attached my source code in .Net 4 as well as two screenshots (before and after scrool) for your comparison

Regards,
Patrick



SimpleGrid2_62ca128b_1e631116.zip

Administrator [Syncfusion]
Replied On November 21, 2010 03:02 PM UTC

Hi Patrick,

Sorry for the inconvenience caused. We are able to reproduce the issue. Can you please create an incident for this issue? So that we can log this issue and provide you a path with the fix for this.
Regarding the 3.5 Silverlight assemblies - we support Silverlight 3 only in the version 8.2.0.18 and from the next version we are not supporting Silverlight 3. We have support only for Silverlight 4.

Please let us know if you need more information.

Thanks,
Sridharan S.


Patrick Teoh
Replied On November 22, 2010 09:24 AM UTC

Hi,

Incident has been logged.
Looking forward to receiving the latest release with the bug fixed.

Thanks,
Patrick


Kamalakannan A [Syncfusion]
Replied On November 24, 2010 12:27 PM UTC

Hi Patrick,

Thanks for your update.

Please follow the incident for further updates.

Please let us know if you need more information.

Thanks,
Kamal



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

;