Hi,
When the Chinese input method is used, a Chinese word is generated after the space key is pressed. For example, if you enter j, i, a, n, c, h, a, and then press space, you will get "检查". I want to filter "检查" as a filter word. What should I do? Thanks.
I need AutoComplete functionality for RadTextBoxControl that will allow me to identify the object selected by the user.
Public Class Person
Public Property GuidPerson As Guid
Public Property FirstName As String
Public Property LastName As String
Public ReadOnly Property FullName As String
Get
Return String.Format("{0} {1}", FirstName, LastName)
End Get
End Property
Public Sub New(fName As String, lname As String)
GuidPerson = Guid.NewGuid
FirstName = fName
LastName = lname
End Sub
End Class
Public Class RadForm4
Private listPerson As New List(Of Person)
Public Sub New()
InitializeComponent()
listPerson.Add(New Person("John", "Snow"))
listPerson.Add(New Person("Arya", "Stark"))
listPerson.Add(New Person("Brandon", "Stark"))
listPerson.Add(New Person("Catelyn", "Stark"))
RadTextBoxControl1.AutoCompleteMode = AutoCompleteMode.Suggest
RadTextBoxControl1.AutoCompleteDataSource = listPerson
RadTextBoxControl1.AutoCompleteDisplayMember = "FullName"
End Sub
Private Sub RadButton1_Click(sender As Object, e As EventArgs) Handles RadButton1.Click
'HOW TAKE 'GuidPerson' from selected item in RadTextBoxControl1
End Sub
End Class
How to capture a user-selected object?
For example, in RadDropDownList I would do it like this:
Dim searchValue As Person = TryCast(RadDropDownList1.SelectedItem.DataBoundItem, Person)
I don't want to use RadAutoCompleteBox because I want to display the results text and not tokens
Regards
Jack
Hello, when my application adds items to the auto complete box pragmatically I turn them red. I wish to hide the X button so the user cannot remove them. Is this possible? I noticed there is a ShowRemoveButton property on the control but that seems like it is for all tokens? Here is some of my code. Thank you for the assistance.
Private Sub AddToken(ByVal ac As RadAutoCompleteBox, ByVal email As String)
Dim result As EmailTokenObject = AllEmails.Find(Function(o) o.Email.ToLower = email.ToLower)Hi, I made my own inherited version of RadDropDownList that uses own inherited version of RadAutoCompleteBoxElement for a TextBoxElement (I wanted tokenized text items). I also got my own custom arrow that inherits RadArrowButtonElement, because I do not use the DataSource at all (only Suggest items popup is shown by this custom arrow).
This control works fine if it is used in Designer of the regular form, but when created dynamically the AutoCompleteSuggestHelper.DropDownList.Popup.Click() event does not fire (sidenote: the event AutoCompleteSuggestHelper.DropDownList.KeyDown() event works).
When the control is not created in code behind it is working completely fine. Any suggestions on how to fix it?
So I use the RadAutoCompleteBox to list many options a user can pick that are then added to another textbox.
So once they select it, I take that "Token" and copy it to a "Selected Box".
How would I go about Removing the token after I have copied it in the token validating event.
Thanks
Rog
I have a RadAutoCompleteBox working as expected allowing user to type and pick an item from the list.
The token is then shown in the Textbox as expected.
Would like to have a way when they type again and pick another item, to then remove the 1st and only show the 2nd item.
Tried the radautocompletebox.Text = "" but received some error. It would be nice to have a property stating (Multiple Tokens (true/false).
Maybe there is a programmatically way to click the X in the token to remove it before adding the 2nd token?
Hi, just a question, it is feasible to use a custom tokenizer for the autocompletebox in order to compose the text blocks?
My tokenizer currently supports a vast variety of "quoted" parts, escape sequences and separators thus would be difficult to use just separators, because if separator is , then the quoted text "Hello, World", will be considered 2 blocks instead of 1.
Best Regards
Andrea
I want to execute some code when a user types and then uses the Mouse to click on an item in the list.
I will need to access the item selected.
I am having a hard time to find the correct event to capture this.
Thanks.