Hi,
I'm facing a problem in implementing the following scenario:
When the user selects a record in a XamDataGrid, the control flows into another tab showing the details of the selected record.
The way I have done this is:
At the selection change of the XamDataGrid, I'm sending index of the tab to be activated using MVVM Light Messenger.
Setting the property bound to the Seledted Index of the Tab Control to that number.
Everything works smooth till here. Afetr that if I go back to the tab containing the grid, somehow the control comes back to tab which was activated.
As if, some intrinsic selection of cells in happening in the grid. Does Hover also affects the selection of the xamdatagrid?
I'm new to Infragistics and kind of confused. If some one can help.
All code are in View Model files and no code in the code behind of xaml file.
Cheers,
Anshuman
Hello Anshuman,
I am really glad to hear this worked out for you and gain, I’d like to point out that there is no hover-selection-functionality in our XamDataGrid whatsoever. I can only imagine that your implementation has led to this behavior, however without looking into it there isn’t much we can do.
Let us know if we can do anything else for you.
I played around a lot. But the only way to get this wqorking was to disable all hover animations and effects.Now it works as expected!
Hi Peter,
I did solve the problem but had to give up with all the hover animations and effects.
You guys can investigate this problem. Selection was indeed happening at hover I guess. I have removed all hover effects and now it works as expected.
Thanks a lot for your suggestions.
Cheers,Anshuman
Hi Anshuman,
Usually there is no built-in functionality that would provide selection when hovering, so this must be caused by something else in your code.
Please let me know if you can comply with my previous suggestions, or if you can provide me a sample that reproduces your scenario.
Looking forward to hearing from you.
Hi Petar,
Thanks for your response.
But I don't think its that simple. The bool variable will behave as you expect it to, but still the same thing will occur. It is a genuiene case of selection of row which is happening as I'm coming back to the grid. So it will still go back to the Info grid.
The problem here is due to the intrinsic behavior of the XamDataGrid. The selection is happening at hover, even before I click on a record. Thats where the problem is.
Tell me how to disable cell/record selection at hover and the problem will be solved!!!