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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Multiple item selection using EditControl

Thread ID:

Created:

Updated:

Platform:

Replies:

56565 Feb 16,2007 04:19 PM UTC Feb 27,2007 02:27 PM UTC Windows Forms 10
loading
Tags: EditControl
Jay
Asked On February 16, 2007 04:19 PM UTC

A college has configured the EditControl to provide a drop down list of options (See attached diagram) Unfortunately this person no longer works for the company and I have been unable to understand how this functionality has been implemented.

1) Please can you point me to some samples or documentation?

2) '[' is used to trigger dropdown, but this only appears to work once. Our users want to be able to select multiple items from the list, seperated by ','. Please can you tell me how I can implement this?

Thanks

untitled35.zip

Administrator [Syncfusion]
Replied On February 16, 2007 08:44 PM UTC

Hi Jay,

1. In EditControl the ContextChoice support allows you to create popups for displaying a list of options. The context choice displaying characters are specified in the configuration file using the DropContextChoiceList attribute in the lexem for the corresponding character. If you wish to display the ContextChoice dropdown in response to period (".") or comma (",") being typed, use XML code as shown below:

lexem BeginBlock="." Type="Operator" DropContextChoiceList="true"
lexem BeginBlock="," Type="Operator" DropContextChoiceList="true"

I have attached a sample that illustrates this.

CS.zip

Documentation on ContextChoice can be found at the link given below

rel='nofollow' href=http://www2.syncfusion.com/library/editwindows/contextchoice.html>Context Choice

2. It is possible to trigger dropdown using the '[' and ',' using the DropContextChoiceList attribute. I have attached a sample that illustrates this.

56565.zip

Let me know if this meets your requirements.

Thank you for using Syncfusion products.

Regards,
Ebenezer.P

Jay
Replied On February 19, 2007 08:42 AM UTC

Thanks exactly what I was looking for. However, is it possible to do it all in code? I'd rather not have to use an xml file to configure the behaviour.

Regards

Jay

Administrator [Syncfusion]
Replied On February 19, 2007 08:36 PM UTC

Hi Jay,

It is possible to configure the behavior in code without using an xml file using the ISnippetFormat and ConfigLexem class. I have attached a sample that illustrates this. Please let me know if this meets your requirements.

Thank you for your patience.

Regards,
Ebenezer.P

rel='nofollow' href=http://www.syncfusion.com/Support/user/uploads/56565_76defbfb.zip>sample

Jay
Replied On February 20, 2007 01:02 PM UTC

Thanks for your help. Example works perfectly.

Jay
Replied On February 23, 2007 03:06 PM UTC

Hi,

It is now not possible to highlight text using the mouse or Ctrl-A (Select All) - Please see attached configuration code. Any ideas?

Thanks in advance.



Example22.zip

Jay
Replied On February 26, 2007 03:23 PM UTC

Any update on this issue? This is quite important.

Thanks

Jay

Administrator [Syncfusion]
Replied On February 26, 2007 10:30 PM UTC

Hi Jay,

Our apologies for the delayed response. I have tested for this issue using v4.4.0.51 and was not able to see the problem. This is how I went about testing this issue :

1. Run the attached sample.

2. Type '['

3. ContextChoice is displayed.

4. Select an item from the ContextChoice.

5. Press Ctrl+A or use the mouse to highlight text.

6. Text is highlighted.

Please let me know if I am missing something. Also, Could you please let me know the version of Essential Studio being used by you.

Thanks for your patience.

Regards,
Ebenezer.P

rel='nofollow' href=http://www.syncfusion.com/Support/user/uploads/56565_29b59574.zip>sample

Jay
Replied On February 27, 2007 09:23 AM UTC

Sorry, I must not have been clear. My problem is when any text is added in the control. Left clicking and dragging the mouse does not highlight/select text, neither does Ctrl-A.

Standard text highlighting/selection is not working.

Thanks in advance.

Jay
Replied On February 27, 2007 09:29 AM UTC

I am using version 3.301.0.50.

Ctrl-A moves cursor to the end of the text but doesn't highlight the text.

Any ideas?

Jay
Replied On February 27, 2007 02:27 PM UTC

I have resolved this issue. Problem was this.editControl1.TransparentSelection = false;

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

;