- Home
- Forum
- Silverlight
- Refresh cell
Refresh cell
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,
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,
SIGN IN To post a reply.
8 Replies
MS
Mohamed Suhaib Fahad A.
Syncfusion Team
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
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
AT
Attoumani
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;
}
}
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;
}
}
AT
Attoumani
October 28, 2009 02:07 PM UTC
I modified TraderGridTest and it's work !
AT
Attoumani
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
NetWork server publishe realtiem data -> Socket client (decode xml data)....
can't see update !
SilverlightTRL_f43680ef.zip
AT
Attoumani
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 ?
-------------- 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 ?
AT
Attoumani
October 28, 2009 03:02 PM UTC
My sample works when i change background color for each update :(
AT
Attoumani
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
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
MS
Mohamed Suhaib Fahad A.
Syncfusion Team
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.,
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.,
SIGN IN To post a reply.
- 8 Replies
- 2 Participants
-
AT Attoumani
- Oct 28, 2009 12:42 PM UTC
- Oct 30, 2009 04:01 AM UTC