Hello!
In my CellValuePresenter I defined a XamNumericEditor that is using an other XamNumericEditor as EditTemplate. The difference is that I want to bind the Value property to an other source.
Unfortunately I have to double click in the cell to start edit mode (so that the masked is displayed). If I click once the field takes the entered chars, but does not show it in the control.
How can I start edit mode by click only once in the field? Or even better might be, if edit mode starts when the field gets focus (if the user uses tab to go though the grid)!
Please check out the attached example!
Thanks, Florian
Hello Petar!
OK, I will try to explain what and why I am doing it like this.
As you can imagine I attached a simplified example. The reason why I am doing it like this, is that in our real application the user can switch between absolute and relative values. When the user chooses that relative values should be shown, the property ValueContainer.Value is changed to a relative value and the PropertyChanged event is raised. But as soon as the user clicks into the cell to edit the value, the user should see the absolute value ValueContainer.DoubleValue which the user then can edit.
So bascially I want to show one property of my ValueContainer, but when the user starts editing, he should edit another property of the ValueContainer.
Could I make clear weant I want to achieve?
[Update] One more thing, just to give you a hint why I am using a style for the CellValuePresenter: I am setting the CellValuePresenterStyle to a special style. This is neccessary because I change the style depending on the value that is displayed (using a Trigger). Sometimes a column has not a numercial value but needs to be displayed as a drop down. I did not add this logic to the example.
Hello Florian,
Excuse me for the late reply. I have been looking into your description and this seems expected taken the your edit template. It really doesn't seem to make sense using the XamNumericEditor like that. Would you please describe what are you trying to achieve and why are you using the editor in this manner, so that I can get a better understanding of your requirement and probably suggest another approach to better fit your scenario.
Looking forward to hearing from you.
Sincerely,
Petar, MCTS
Developer Support Engineer
Infragistics
www.infragistics.com/support
Started this topic a long time ago, but I am still interested in a solution!
Florian
No ideas or comments? Does anyone have the same issue?