Hi Team,
We are using MVVM and used XamComboEditor for records displaying, I was used DataTemplate of ComboBox for multiColumn its working fine, when i was selecting any item from ComboBox Name property is proper displayed in Textbox, but when i used IsEditable = false then whole object is displayed in Textbox including Delete and CheckBox columns instead of Name, when i press Ok button than Name is displayed instead of whole object its mean when focus is in Textbox then whole object displayed when focus is out than only Name property displayed, i want IsEditable = false for restricted user typing in Textbox. How can i achieve this goal? Is there any other property that was used for read only Textbox ? If yes please guide me its urgent. Sample project is attached.
Thanks,
sufyan
Hi Andrew,
If you see my project I was used Button to delete records, but in XamMultiColumnComboEditor we have not an option to add any button so that's why i was used XamComboEditor with data template, Please fix my problem as soon as possible because we are so late. Its not a big deal to make read only text box, please discuss with other members definitely they must have a solution of this simple task.
Sufyan
Hello Sufyan,
To make the textbox at the top of the XamComboEditor read-only, you can set the IsEditable property of the XamComboEditor to False.
Regarding the ItemTemplate, it is expected behavior that when a XamComboEditor drop down opens, the data in the drop-down as well as the data shown at the top will reflect the editor’s ItemTemplate.
With regards to the XamMultiColumnComboEditor, you will need a property in your underlying data source for each column you plan to put into it. If you have an empty property for the Button and Checkbox, you can generate a column for them and Style the cells to have a button or checkbox in them.
I have attached a sample that demonstrates the XamMultiColumnComboEditor working much like the way the XamComboEditor is working in your sample.
Please let me know if you have any other questions or concerns on this matter.
Sincerely,AndrewDeveloper Support IInfragistics Inc.www.infragistics.com/support
Just checking in, did you have any other questions or concerns on this matter?
Sincerely,Andrew,Developer Support IInfragistics Inc.www.infragistics.com/support