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

Refresh cell

Thread ID:

Created:

Updated:

Platform:

Replies:

90980 Oct 28,2009 12:42 PM UTC Oct 30,2009 04:01 AM UTC Silverlight 8
loading
Tags: GridControl
Attoumani
Asked On October 28, 2009 12:42 PM UTC

Hi, i evaluate your component
and i wrote simple application:

Display MarketData :

When i receive new update i try two methods to refresh cell :

feedGridControl.Model.InvalidateCell(new RowColumnIndex(i, 2));

or

feedGridControl.RefreshCellUIElementsContent(new RowColumnIndex(i, 2));

But no issue !

Best regards,







Mohamed Suhaib Fahad A. [Syncfusion]
Replied On October 28, 2009 01:09 PM UTC

Hi Attoumani,

Thanks for the details. Can you make a call to grid.Model.InvalidateVisual(true);, that way the dirty cells would be refreshed.

Also keep track of our website, we are going to launch the new Essential Studio Volume 4 RC soon, we have included several new features and updates to the Silverlight Grid.

Please let me know if you need any more details.

Thanks,
Fahad

Attoumani
Replied On October 28, 2009 01:49 PM UTC

Thx for your answer !

But i think i missing something when i initialize the grid !
Event Model_QueryCellInfo ( .... ) is called

But new value are not displayed.

// Actual rows
else if ((e.Cell.ColumnIndex > 0) && (e.Cell.RowIndex > 0))
{
lock (orderBook)
{
FeedValue value = listOfFeedInformation[e.Cell.RowIndex-1];
e.Style.CellValue = e.Cell.ColumnIndex > 1?value.Value:value.Key;
e.Style.CellValue = e.Cell.ColumnIndex > 1?value.Value:value.Key;
e.Handled = true;
}
}

Attoumani
Replied On October 28, 2009 02:07 PM UTC

I modified TraderGridTest and it's work !

Attoumani
Replied On October 28, 2009 02:24 PM UTC

See my simple project.
NetWork server publishe realtiem data -> Socket client (decode xml data)....
can't see update !





SilverlightTRL_f43680ef.zip

Attoumani
Replied On October 28, 2009 02:55 PM UTC

Changing TraderGridTest :


-------------- FROM ---------------------
SolidColorBrush[] colors = new SolidColorBrush[] {
new SolidColorBrush(Color.FromArgb( 0xff, 0x85, 0xbf, 0x75 )),
new SolidColorBrush(Color.FromArgb( 0xff, 0xde, 0x64, 0x13 )),
new SolidColorBrush(Color.FromArgb( 0xff, 0xb4, 0xe7, 0xf2 )),
new SolidColorBrush(Color.FromArgb( 0xff, 0xff, 0xbf, 0x34 )),
new SolidColorBrush(Color.FromArgb( 0xff, 0x82, 0x2e, 0x1b )),
new SolidColorBrush(Color.FromArgb( 0xff, 0x3a, 0x86, 0x7e )),
};
-----------------------------------------
------------------TO --------------------
SolidColorBrush[] colors = new SolidColorBrush[] {
new SolidColorBrush(Color.FromArgb( 0xff, 0xde, 0x64, 0x13 )),
new SolidColorBrush(Color.FromArgb( 0xff, 0xde, 0x64, 0x13 )),
new SolidColorBrush(Color.FromArgb( 0xff, 0xde, 0x64, 0x13 )),
new SolidColorBrush(Color.FromArgb( 0xff, 0xde, 0x64, 0x13 )),
new SolidColorBrush(Color.FromArgb( 0xff, 0xde, 0x64, 0x13 )),
new SolidColorBrush(Color.FromArgb( 0xff, 0xde, 0x64, 0x13 )),
};
-----------------------------------------

Can't see update ^^
is it possible that the grid displays values only 'e.Style.Background' is updated ?




Attoumani
Replied On October 28, 2009 03:02 PM UTC

My sample works when i change background color for each update :(

Attoumani
Replied On October 28, 2009 03:17 PM UTC

digging :)

foreach (var i in indexOfChange)
{
feedGridControl.Model.InvalidateCell(new RowColumnIndex(i, 2));
feedGridControl.RefreshCellUIElementsContent(new RowColumnIndex(i, 2));
feedGridControl.Model.InvalidateVisual(true);
}

without changing Background Color Cell is update

Mohamed Suhaib Fahad A. [Syncfusion]
Replied On October 30, 2009 04:01 AM UTC

Hi Attoumani,

Thanks for the details.

We have recently fixed some refresh issues with our new Essential Studio Vol4 release, Please check the details from the below link,

http://www.syncfusion.com/support/forums/general/91019/essential-studio-2009-vol4-rc-v74015-available-for-download

Thanks,
Fahad
Grid.Silverlight
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.

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

;