Iosu Buenetxea
Top achievements
Rank 1
Iosu Buenetxea
asked on 10 Oct 2008, 08:42 AM
Hello
I use my RadCombo to show some clients, the user can type the code for the client, if this code doesn't exist I want to open the radCombo items to force the users to select one.
Can I show RadCombo items manually?
Regards.
I use my RadCombo to show some clients, the user can type the code for the client, if this code doesn't exist I want to open the radCombo items to force the users to select one.
Can I show RadCombo items manually?
Regards.
7 Answers, 1 is accepted
0
Hi ,
You can call the showDropDown() client side method of RadComboBox.
More about client side of RadComboBox you can find here.
All the best,
Rosi
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
You can call the showDropDown() client side method of RadComboBox.
If you call the showDropDown/toggleDropDown method on a button click, you will have to use combo.set_closeDropDownOnBlur(false) right before you call the showDropDown/toggleDropDown method as otherwise the dropdown area will flicker instead of open.
Then, you should use combo.set_closeDropDownOnBlur(true) in the OnClientBlur event handler. A live example can be seen at: Add/Remove/Disable Items
Then, you should use combo.set_closeDropDownOnBlur(true) in the OnClientBlur event handler. A live example can be seen at: Add/Remove/Disable Items
More about client side of RadComboBox you can find here.
All the best,
Rosi
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Iosu Buenetxea
Top achievements
Rank 1
answered on 10 Oct 2008, 01:36 PM
Hello Rosi,
With ShowDropDown I have solved this issue, but I have another question.
How can I select the text that the user has typed in radCombo?
Thanks.
With ShowDropDown I have solved this issue, but I have another question.
How can I select the text that the user has typed in radCombo?
Thanks.
0
Hi,
Could you provide more details about what you try to achieve? Do you want to select the text with a mouse or get the value entered by the user. You can get the text with get_text() client side method of RadComboBox.
All the best,
Rosi
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Could you provide more details about what you try to achieve? Do you want to select the text with a mouse or get the value entered by the user. You can get the text with get_text() client side method of RadComboBox.
All the best,
Rosi
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Iosu Buenetxea
Top achievements
Rank 1
answered on 10 Oct 2008, 02:27 PM
Hello
I want to select the text like when I click in text input area of RadCombobox and the text has been selected.
I want to select the text like when I click in text input area of RadCombobox and the text has been selected.
0
Hello ,
When you click in the input the whole text in the input will be automatically selected. This is the default behavior of the control.
You can disable this option by setting the EnableTextSelection property of RadCombobox. Then you can select the part of the text which you want by using the mouse.
Regards,
Rosi
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
When you click in the input the whole text in the input will be automatically selected. This is the default behavior of the control.
You can disable this option by setting the EnableTextSelection property of RadCombobox. Then you can select the part of the text which you want by using the mouse.
Regards,
Rosi
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Iosu Buenetxea
Top achievements
Rank 1
answered on 13 Oct 2008, 08:36 AM
I want to select text with code.
is it possible to do in javaScript after combo.focus();?
is it possible to do in javaScript after combo.focus();?
0
Hello ,
Please try the following:
1. Set the EnableTextSelection property of RadCombobox.
2. Hook on the OnClientFocus event of RadComboBox.
3. Execute the following javascript in its event handler : combo.selectText(1,2);
This will select the second letter in RadComboBox 's text.
Regards,
Rosi
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Please try the following:
1. Set the EnableTextSelection property of RadCombobox.
2. Hook on the OnClientFocus event of RadComboBox.
3. Execute the following javascript in its event handler : combo.selectText(1,2);
This will select the second letter in RadComboBox 's text.
Regards,
Rosi
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.