Hi,
I am creating XamDataGrid with all the columns being dynamically generated using control templates.
I am facing one problem while doing some operation on LostFocus of the Control. The scenario is explained as follows -
I have derived XamMaskedEditor and created a custom control of it - MyXamMaskedEditor.
I am using this control in grid and non grid mode. For that I am creating a ControlTemplate of it and setting it as EditorStyle of the XamDataGrid Field when switching to grid mode.
My requirement is that on the lost focus of MyXamMaskedEditor I have to update values in another control on the form. For that I set values in underlying binding source which in turn raised property changed event and updates the control which is bound to that particular property which I am updating. This works fine in non grid mode.
But when I switch to grid mode then on the LostFocus (actually I am overriding OnIsFocusWithinChanged method) this thing breaks !!!!
How? When I debugged then I found that this control (MyXamMaskedEditor) loses all the property values when the execution is within OnIsFocusWithinChanged method. For instance when you see control Name it is blank "" and similarly all other properties are blank!! . But it is required for me to get access to these property values so that I can perform desired action based on those values.
And this thing is applicable to all the controls and not specifically to infragistics one like TextBox, ComboBox etc.
When I debugged then I found that on EditModeEnding the values of control are intact but in EditModeEnded or LostFocus these values are lost. The events are fired in following sequence -
EditModeEnding (in XamDataGrid)
OnIsFocusWithinChanged (in Control)
EditModeEnded (in XamDataGrid)
I can debug OnIsFocusWithinChanged method override and can see there is no values to its properties.
Now my question is that if control is not destroyed when OnIsFocusWithinChanged is called then why the property values are destroyed??
Any help in this regard will help me a lot.
Thanks,
Hi Phil,
Simply respond to the support email you get letting them know that you are a licensed user and that the webpage would only allow you to select trial.
Thank you!
Thanks Curtis,
I've submitted the support request.
The case number says that the support level is "trial". Whilst I don't personally have a paid licence, the company I work for does. I want to ensure that this bug will receive the attention we've paid for.
Case Number CAS-48556-PDZ2B9.
Regards,
Phil
Since you have found a bug and since you have a reproducible sample, the fastest way to resolve this is to submit a developer support case. Go to the following website, submit your sample code, describe the problem, list the steps to reproduce and mention this post as a reference. You can also ask for a work-around that you might use until the issue is resolved.http://ko.infragistics.com/support/submitrequest.aspx
Hi Curtis,
I have a sample application ready to go, and would like to send it to you directly, rather than post it here. Please contact me, so I can send it on. (Unless I can't find an address for you very shortly!)
I do continue to get the problem with 10.2. I'll need to jump through some hoops to get a version of the source code to you, however, as its not a simple as it sounds.
We also seem to have other issues with 10.2, such as the grouping bar suddenly appearing, when under 9.2 it was hidden (as according to the XAML). That, however is a different topic.