Hello Team,
We are using the Infragistics WPF Controls in our application for rich UI experience- Version 14.2.
I need your help/ suggestions for one of the new requirements in our product.
Our New requirement is regarding the XamDataGrid Cell click scenario. Please find the below description of our requirement.
You can also please advise if we need to add any extra controls like 'Apply' in the popup in order to update the text entered in the popup to grid.
I really need your help on this. Looking forward for your valuable suggestions/ solution on this.
Please let me know if I can provide you any further information on this.
Thanks in Advance.
Thanks & regards,
Raj Kumar.
Hello Andrew,
Thanks for your timely support on this matter.
Till now we didn't find any issues. In case of any clarifications further, I will post here and take your help.
Thanks & Regards,
Rajkumar.
Hello Rajkumar,
Thank you for your response. I will continue to monitor this thread while I await your results.
Please let me know if you have any other questions or concerns on this matter.
Sincerely,AndrewAssociate DeveloperInfragistics Inc.www.infragistics.com/support
Many Thanks Andrew for your suggestions.
I will download the latest sample and verify the same.
Will get you back in case of any queries on this matter.
Thanks & Regards,Rajkumar.
I have been investigating into these other requirements that you have, and I believe I have a solution for you for both of them.
1. To show vertical scroll bars when using a XamTextEditor in your popup, and when the content exceeds the height of the editor, I would recommend setting the VerticalScrollBarVisibility property to "Auto." This will make the vertical scrollbars visible only when the content exceeds the height of the editor. If you would like to see them all the time, I would recommend setting this property to "Visible." This will have the scrollbar be visible but disabled until the content of the editor exceeds the height of the editor.
2. Acceptance of the "Enter" key in the XamTextEditor needs to be implemented programmatically. To do this, I would recommend handling the PreviewKeyDown event on the editor and checking the e.Key value of the event arguments for Key.Enter. If this was the key that was pressed, I would recommend calling XamTextEditor.Text.ToArray() and using the resultant array along with the XamTextEditor.SelectionStart property to insert an Environment.NewLine into the array. If nothing is currently selected or highlighted in the editor, the SelectionStart property will represent the position where the caret in the XamTextEditor currently sits. By using this, you can insert an Environment.NewLine into the array, and then loop through the array to create a string value that you can then set as the XamTextEditor.Text property. You will then need to set the SelectionStart property to move the caret to where it should be in the editor. I have found that the formula for this is to use myXamTextEditor.SelectionStart = oldSelectionStartIndex + 2. Then, mark the PreviewKeyDown event as handled by using e.Handled = true.
I have attached a modified version of the original sample project I had sent you to demonstrate the above.
Hi Andrew,
Your sample almost reached my requirement. Thanks for that.
Only thing missed is , in the popup we need to show the Header text (as 'Latest Note'). For this I used the GroupBox and moved the XamTextEditor into that and did some necessary code changes to support. It works for me.
There is a point which i mentioned in the requirements ie., - The text box will increase in depth if user update necessitates (or add vertical scroll bar)
If the Text entered by the user exceeds the Height of the TextEditor, It automatically wraps the text and accepting the whole content. Thanks for that.
I have some below small concerns- Could you please suggest me on those whether those are workable or not?
1.Is there a way to show the Vertical scroll bars if the Entered Text exceeds the Height of the TextEditor?. So that User can review his text using the Vertical scroll bar.
2.It is not accepting 'Enter' while entering text in Popup. Is it possible to allow 'Enter' (ie., New line) by the user in the Editor?. So that User can Enter his Notes Points wise.