BlinkState always None
I have a GGC where the datasource is a BindingList, and I only add records to the datasource directly (e.g. user cannot choose to add rows, no contents of existing rows are being changed, and rows are never deleted). I want to blink the new records, however:
- BlinkState always remains None, even after calling grid.Update() after adding to the BindingList
- SourceListRecordChanged never fires
How can I get this working?
- It only updates from the blink style back to the normal style on a redraw, so setting a blink time of say 3 seconds is useless if it doesn't draw again for 2 minutes (I don't always have data updating causing constant redraws). I tried all 3 modes of BlinkUpdateMode but the 2 timer options just crashed and Idle only updates on a redraw.
- Neither the BackColor nor the Interior are coloring the background of my Image cell. The cell is much larger than the image so there is plenty of room for the background color but it doesn't apply at all. Note that I do not have a background image in place.
Hi Kymberley,
Thank
you for contacting Syncfusion forums.
For
Query #1
Please
refer the modified sample which features the blinking for a new record without
the reported problem
http://www.syncfusion.com/Support/user/uploads/modifiedSourceListBlinkNewRecord_2beffcf8.zip
For
Query #2 :
You
could set the backcolor for the imagecell by using the QueryCellStyleInfo
event.
For ex :
void
gridGroupingControl1_QueryCellStyleInfo(object
sender, GridTableCellStyleInfoEventArgs e)
{
if
(e.TableCellIdentity.RowIndex > 3 && e.TableCellIdentity.ColIndex ==
4)
{
e.Style.ImageList = img;
e.Style.ImageIndex = 0;
e.Style.ImageSizeMode = GridImageSizeMode.AutoSize;
e.Style.TextMargins.Left = 20;
e.Style.BackColor = Color.Blue;
}
}
Sample : http://www.syncfusion.com/downloads/Support/DirectTrac/General/ImageSample841198290.zip
Please let
me know if you have any concerns
Regards,
Kalai
For issue #1: your sample makes sense, however it is not making use of any of the BlinkState options. It is just using standalone timers, which of course could be done, but I was asking specifically about using the BlinkState framework that GGC has - surely it is there to be used?
For issue #2: For some reason it started working on my image cell the other day, and I hadn't changed the code I was using to do it. My code is the same as the sample you posted, only in the TableControlPrepareViewStyleInfo event instead (performance is severely degraded when in QueryCellStyleInfo).
- 4 Replies
- 2 Participants
-
KD Kymberley Dahl
- Jul 26, 2012 09:41 PM UTC
- Jul 31, 2012 11:40 AM UTC