Hallo,
i got a litte problem with ContextChoice.
when trying to open contextchoicelist before a word(without blank) it does not allow to type any character. Instead it closes itself.
Is it possibile to ignore the following character for contextchoice?
Best Regards
Martin
AD
Administrator
Syncfusion Team
April 15, 2009 01:13 PM UTC
Hi Martin,
Thank you for using Syncfusion products.
Please find the sample below that displays contextchoicelist after typing character when the popup is opened.
http://files.syncfusion.com/support/Edit.Windows/7.1.0.30/F80583/Edit_WF_ContextChoice.zipType 'S' in the EditControl, contextchoicelist with autocomplete will be opened. contextchoicelist will not close after typing character .
Please let me know if this helps you.
Regards,
Jaya
AD
Administrator
Syncfusion Team
April 17, 2009 05:51 AM UTC
Thank you for your quick response!
But this is not exactly what i was looking for.
My problem is as following:
i would like to open ContextChoiceList between Qoutes...
e.g.
user types 'keyword' then ="" is automatically completed.
(keyword="")
then cursor is set between qoutes.
There an ContextChoiceList is opened and shows some strings ('test' 'test2').
I can select them via mouse (or the arrow keys) an they get inserted correctly.
But when i try to type a character(for example 't') it closes itself.
Looks like contextchoice uses t" instead of t-
then it closes, because t" is not an contextchoiceitem.
Please let me know if this would be possible
AD
Administrator
Syncfusion Team
April 21, 2009 01:02 PM UTC
Hi Martin,
Please let us know about how you display contextchoice between the quotes. Are you displaying contextchoice after typing ". Or you displaying contextchoice after typing "" and when the cursor is between the quotes?
Can you please attach the config.xml used in your application?
Regards,
Jaya
AD
Administrator
Syncfusion Team
April 23, 2009 12:00 PM UTC
Hi,
on closing ContextChoice i add ="" .
then i manually call ShowContextChoice() and ContextChoice is displayed properly (and closes on typing any charackter)
i tried this in various ways and came to conclusion, that any character placed directly(without blank) after a "dropper" causes contextchoice to close.
>Hi Martin,
Please let us know about how you display contextchoice between the quotes. Are you displaying contextchoice after typing ". Or you displaying contextchoice after typing "" and when the cursor is between the quotes?
Can you please attach the config.xml used in your application?
Regards,
Jaya
AD
Administrator
Syncfusion Team
April 27, 2009 01:02 PM UTC
Hi Martin,
Can you please attach a sample illustrating the issue with config.xml file?
Regards,
Jaya
AD
Administrator
Syncfusion Team
April 28, 2009 09:43 AM UTC
I'm sorry;
I thought I already included a sample.
Thank you for your quick response!
EditControl_6d9cfc26.zip
AD
Administrator
Syncfusion Team
May 1, 2009 12:14 PM UTC
Hi Martin,
Thanks for the attachment.
You can display the contextchoice after typing t between the quotes in KeyUp event handler as follows.
[C#]
this.KeyUp += new KeyEventHandler(MyEdit_KeyUp);
void MyEdit_KeyUp(object sender, KeyEventArgs e)
{
string s = this.GetCurrentWord();
if(s=="\"")
{
this.ShowContextChoice();
}
}
But with the above code, typing t not autocompletes the word. We are still looking into this issue and provide you more details.
Please let me know if any concern.
Regards,
Jaya
AD
Administrator
Syncfusion Team
May 4, 2009 04:39 AM UTC
Of course it would be quite nice to have
autocompletion, but this will do it in the fist time.
Thank you very much.