Silverlight XamComboEditor (ver 2012.2)
Programmatically I set the focus to the xamComboEditor, but the control does not start the Edit mode, I need to press the Tab key to start it.
This problem was reported for the WPF XamComboEditor in the following link (http://es.infragistics.com/community/forums/t/75376.aspx) and the solution refers to a property called XamComboEditor.IsInEditMode which does not exist in Silverlight.
We need to start the Edit mode as soon as we set the focus to the XamComboEditor.
Thank you,
Juan Aquino
Hello Juan,
I am glad that the sample helps you.
When the focus is set in the Loaded event of the main page, XamComboEdior might not be rendered yet. This is the reason why the Dispatcher should be used. It waits until the control is loaded and then set the focus.
The sample works okay, but when the focus is set in the Loaded event it does not work, it is required to set the following lines:
void MainPage_Loaded(object sender, RoutedEventArgs e)
{
Deployment.Current.Dispatcher.BeginInvoke(() =>
combo.Focus();
});
}
I am just checking if my last reply was helpful for you.
If you require any further assistance, please do not hesitate to ask.
Thank you for posting!
I have been looking into this and created a sample project (XamComboEditorEdit.zip). There are a button and a XamComboEditor. I set the focus to the XamComboEditor when the button is clicked by using combo.Focus(); (where ‘combo’ is the name of the editor). As the focus is set the editor enters edit mode.
Please note that shared XamComboEditor (available in both Silverlight and WPF) is not the same as the XamComboEditor available only for WPF. This is the reason the properties are not the same. You could find more information about the shared editor here: http://help.infragistics.com/Help/NetAdvantage/Silverlight/2012.2/CLR4.0/html/InfragisticsSL5.Controls.Editors.XamComboEditor.v12.2~Infragistics.Controls.Editors.XamComboEditor_members.html
Feel free to have a look at the attached sample and let me know if I am missing something in your scenario.