Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
140
ContextMenu click is not working properly with PersistenceManager in WPF xamgrid
posted

Hi,

i am using InfragisticsWPF4.v11.2 in my application.

i have use xamgrid in my application. i have use PersistenceManger to save the user  preferences. After i loading my xamgrid from persistenceManager contextmenu click is not working. i have use MVVM pattern in my application 

xaml Code

<ContextMenu x:Key="DataGridRoiSummaryContextMenu">
<MenuItem Header="Update Prediction For Selection" Command="{Binding MenuCommand, Converter={StaticResource NotConverter}}" CommandParameter="UpdatePredictionForSelection" IsEnabled="{Binding HasUpdatePredictionRights}" >

</MenuItem>
<MenuItem Header="Clear Prediction For Selection" Command="{Binding MenuCommand}" CommandParameter="ClearPredictionForSelection" IsEnabled="{Binding HasUpdatePredictionRights}">

</MenuItem>
<Separator/>
<MenuItem Header="Reset Column Order to Default" Command="{Binding MenuCommand}" CommandParameter="ResetColumnOrdertoDefault">

</MenuItem>
</ContextMenu>

Code Behind

  •  save my grid to memorystream 

                                 MemoryStream memoryStream;

                                  memoryStream = PersistenceManager.Save(DataGridRoiSummary);

  • loading from memorystream

                             PersistenceManager.Load(DataGridRoiSummary, memorystreamobject);

can you please help me