We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

ContextChoice automatically closes when there is a character after it

Thread ID:

Created:

Updated:

Platform:

Replies:

80583 Apr 14,2009 08:15 AM UTC May 4,2009 04:39 AM UTC WinForms 8
loading
Tags: EditControl
Administrator [Syncfusion]
Asked On April 14, 2009 08:15 AM UTC

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


Administrator [Syncfusion]
Replied On 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.zip

Type '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



Administrator [Syncfusion]
Replied On 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




Administrator [Syncfusion]
Replied On 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


Administrator [Syncfusion]
Replied On 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




Administrator [Syncfusion]
Replied On April 27, 2009 01:02 PM UTC

Hi Martin,

Can you please attach a sample illustrating the issue with config.xml file?

Regards,
Jaya



Administrator [Syncfusion]
Replied On 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

Administrator [Syncfusion]
Replied On 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



Administrator [Syncfusion]
Replied On 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.




CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;