hi,
i have created a field in xamdatagrid as a xamcomboeditor. Now when i click on the dropdown button, the first click changes the cell into edit mode and only the 2nd time i click on the button the dropdown will appear. Is there anyway to show the dropdown on the first click? I was thinking something like force the cell into edit mode while mouse over it but would appreciate the correct approach.
thanks,
Guo
Hello Guo,
I have been looking into your question and I can suggest you look through the following forum thread where Krasimir has provided a sample application in which the XamComboEditors enter in edit mode in single click :
http://ko.infragistics.com/community/forums/p/60491/306995.aspx
If you need any further assistance on this matter, feel free to ask.
Hi Yanko,
thanks for your reply.
Unfortunately, i have to work in a certain framework that puts python on top of wpf which means i have to write everything in code.
i create below python which is essentially .Net syntax for what you suggested -- didnt really work out. In fact we had done the same with Xaml before but just had issue with re-creating this in code. Therefore, could you see if you can spot anything missing from below
cvpStyle = Style(CellValuePresenter().GetType())controlTemp = '<ControlTemplate xmlns=\"http://schemas.microsoft.com/winfx/2006/xaml/presentation\" 'controlTemp += 'xmlns:igEditors=\"http://infragistics.com/Editors\">'controlTemp += '<igEditors:XamComboEditor ItemsProvider=\"{StaticResource '+field.Name +'ComboItemsProvider}\" 'controlTemp += 'Style=\"{DynamicResource comboBoxStyle}\"/>'controlTemp += '</ControlTemplate>'cvpStyle.Template = XamlReader.Parse(controlTemp)field.Settings.CellValuePresenterStyle = cvpStyle
Thanks,
Hello,
I have been looking into your post and I am not aware of Python syntax and specifics. I can suggest you look through the following link from MSDN site in order to understand the basics of XAML :
http://msdn.microsoft.com/en-us/library/ms752059.aspx
I hope you will be able to write your Python syntax by yourself.
Yanko,
what i really meant was that because of the python wrapper i had to implement whatever was in ur xaml in .net code behind. what i pasted was essentially .Net code behind which i tried to translate from the xaml -- however it didnt work as expected.
anyway i way keep trying to translate that to code behind.
I am just checking the progress of this issue and was wondering if you managed to achieve your goal or if you need any further assistance on the matter.
If the above suggestion helped you solve your issue please verify the thread as answered so other users may take better advantage of it.
the extra reference doesnt really but i have switched to other method. this thread can now be closed. thanks for the help