This is a migrated thread and some comments may be shown as answers.

Handling ContextMenu with grid refresh

1 Answer 153 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Michele
Top achievements
Rank 2
Michele asked on 21 Jan 2014, 02:18 PM
Hello,
I've been asked to integrate an exsisting component (a library the sends events about financial transaction) on a winfor application.
That library sends as an event a List of Item that are bound to a radgridcolumn via bindinglist.

Each time an event is fired I got this in my code

bindingSource.DataSource = tmrC.ViewableData;

I wish to keep the context menu open even if sometime the refresh rate of the data is quite rapid (1 sec or less) but as the Bindingsource is refreshed I got the contextmenu closed.

I don't know under winform which is the best approach, can I have a concurrent queue to put the data from the list and then (in some way) to update the grid?
 Or what?

Thanks in advance


1 Answer, 1 is accepted

Sort by
0
George
Telerik team
answered on 24 Jan 2014, 07:41 AM
Hi Paolo,

Thank you for writing.

You cannot cancel the hiding of the ContextMenu when the grid refreshes completely. The best approach in this situation would be to update your existing binding list since the grid will automatically reflect the changes without hiding the ContextMenu.

You can read about Binding to BindingList here.

I hope this helps.

Regards,
George
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
GridView
Asked by
Michele
Top achievements
Rank 2
Answers by
George
Telerik team
Share this question
or