Home Javascript InnerHtml not working with razor devexpress
Reply: 0

Javascript InnerHtml not working with razor devexpress

achmad darmawan
1#
achmad darmawan Published in 2017-11-13 08:00:28Z

i want to show a combobox from devexpress using innerHtml. but is not working. please help me. thanks...

and this is my javascript :

 var divContent = document.createElement("div");
 var devexCombo = '@@Html.DevExpress().ComboBox(settings => { settings.Name = "DepartmentId"; settings.Width = 300; settings.SelectedIndex = 0;' +
                     ' settings.Properties.DropDownStyle = DevExpress.Web.ASPxEditors.DropDownStyle.DropDownList;' + 
                     ' settings.Properties.IncrementalFilteringMode = DevExpress.Web.ASPxEditors.IncrementalFilteringMode.StartsWith;' + 
                     ' settings.Properties.TextField = "Text"; settings.Properties.ValueField = "Id"; settings.Properties.ValueType = typeof(int);' + 
                     ' settings.Properties.DropDownRows = 10; }).BindList(ViewBag.DepartmentList).Bind(Model.DepartmentId).GetHtml()';
 divContent.innerHTML = devexCombo;
You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.30815 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO