Hi,
We are using infragistics version (WPF4) 11.2 in our application.
As part of our functionality, we have to bind a combox to the xamdatagrid in cell. User should be able to select the values from the combo box and able to bind the selected value back to cell.
The combo box values are loading fine. User select the value from the dropdown, in the code-behind, we are resetting as below. Immediately the entire xamDataGrid is freezed and we are not able to precede any functionality with the Grid.
if (!employeeData.Equals(NoSelection))
{
rec.Cells[1].Value = employeeData;
rec.Cells[2].Value = employeePositionData;
rec.Cells[3].Value = "Y";
rec.IsActive = true;
}
This issue is causing a lot of functionality failures in application. Please let us know the immediate solution from the above problem.
We attached POC on this issue,
Thanks & Regards
Guruprasad Gowda
Hi Prasad,
That's great! I'm glad you were able to get it working.
Hi Rob,
Thanks for your quick updates Rob. The solution you have provided is fulfilling our requirements, the current solution provided by you (null check and ExecuteCommand) is working fine; it resolved all related issues.
Thanks
Rob,
I see what you are talking about. That issue is not related to the grid freezing issue from before where the entire row became frozen. It looks like the Operator combo box is disabled because the IsEnabled property was set to false and never reset to true when it's needed. Around line 447 in AssignedClients.xaml.cs you can see where the IsEnabled property is set to false. No where else in code could I find where it is re-enabled. When I set this line to true instead, the combo box is accessible and I can change values once I've selected a value from the FieldName combo.
Let me know if you have any questions.
I'm still able to reproduce the issue with the suggested fix. Here are the steps I followed.
I've placed below line in the StyleClick method before the dataset reset method.
CriteriaGrid.ExecuteCommand(DataPresenterCommands.EndEditModeAndAcceptChanges);
Thanks,
Prasad