This is a migrated thread and some comments may be shown as answers.

[Solved] Create client side a combobox with static data?

1 Answer 91 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Julien
Top achievements
Rank 1
Julien asked on 29 Mar 2012, 03:33 PM
Hi,

I've to generate on the fly, client side, several combo-box.

I already know which data will be bound to the combobox.

Is there any way to create a combo-box and then bind some data on it?

If it can help, I have the same exact combobox generated in the parent div.(the only difference will be the id/name)

Thank you

1 Answer, 1 is accepted

Sort by
0
Petur Subev
Telerik team
answered on 30 Mar 2012, 11:22 AM
Hi Julien,

Creating ComboBoxes on the client side is not supported. Nevertheless you could try to generate the needed Html to create the combobox
e.g.
<div class="t-widget t-combobox t-header">
    <div class="t-dropdown-wrap t-state-default">
        <input class="t-input" id="TEST-input" name="TEST-input" type="text" />
        <span class="t-select t-header">
            <span class="t-icon t-arrow-down">select</span>
        </span>
    </div>
    <input id="TEST" name="TEST" style="display:none" type="text" />
</div>
And then call our initialization script 
e.g.
$('#TEST').tComboBox({autoFill:false, highlightFirst:false});
Also make sure you have added all the needed scripts for the ComboBox on the page.

Or you could try our Kendo ComboBox.

I hope this helps.


All the best,
Petur Subev
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now.
Tags
ComboBox
Asked by
Julien
Top achievements
Rank 1
Answers by
Petur Subev
Telerik team
Share this question
or