This question is locked. New answers and comments are not allowed.
Hi,
I have a standard razor MVC3 project that I am trying to add Telerik extensions to. I have followed the procedures (you need to make this better, so many people have problems with this) and I am nearly there.
I am just trying to add a simple combobox. The combobox appears and is correctly bound to my data. The problem is that I can't click on it ie it doesn't drop down. I have the same problem with a dropdownlist if I try this.
I'm guessing this is a javascript problem? Please help!!!!!!!!!!!!!!!!
The combo displays as
<div class="t-widget t-combobox t-header"><div class="t-dropdown-wrap t-state-default"><input class="t-input" id="ComboBox-input" name="ComboBox-input" type="text" value="Item1" /><span class="t-select t-header"><span class="t-icon t-arrow-down">select</span></span></div><input id="ComboBox" name="ComboBox" style="display:none" type="text" value="1" /></div>
My javascript (@(Html.Telerik().ScriptRegistrar()) added before closing body tag) displays as
Thanks, Graeme
I have a standard razor MVC3 project that I am trying to add Telerik extensions to. I have followed the procedures (you need to make this better, so many people have problems with this) and I am nearly there.
I am just trying to add a simple combobox. The combobox appears and is correctly bound to my data. The problem is that I can't click on it ie it doesn't drop down. I have the same problem with a dropdownlist if I try this.
I'm guessing this is a javascript problem? Please help!!!!!!!!!!!!!!!!
The combo displays as
<div class="t-widget t-combobox t-header"><div class="t-dropdown-wrap t-state-default"><input class="t-input" id="ComboBox-input" name="ComboBox-input" type="text" value="Item1" /><span class="t-select t-header"><span class="t-icon t-arrow-down">select</span></span></div><input id="ComboBox" name="ComboBox" style="display:none" type="text" value="1" /></div>
My javascript (@(Html.Telerik().ScriptRegistrar()) added before closing body tag) displays as
| <script type="text/javascript" src="/Scripts/2012.1.301/jquery-1.7.1.min.js"></script> | |
| <script type="text/javascript" src="/Scripts/2012.1.301/telerik.common.min.js"></script> | |
| <script type="text/javascript" src="/Scripts/2012.1.301/telerik.list.min.js"></script> | |
| <script type="text/javascript" src="/Scripts/2012.1.301/telerik.combobox.min.js"></script> | |
| <script type="text/javascript"> | |
| //<![CDATA[ | |
| jQuery(document).ready(function(){ | |
| jQuery('#ComboBox').tComboBox({autoFill:false, highlightFirst:false, data:[{"Text":"Item1","Value":"1"},{"Text":"Item2","Value":"2"},{"Text":"Item3","Value":"3"}], index:0});}); | |
| //]]> | |
| </script> | |
Thanks, Graeme
