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

Dropdownlist autobinding DOM

3 Answers 101 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Jeff
Top achievements
Rank 1
Jeff asked on 20 Jun 2012, 09:20 PM
I'm planning on using kendo ui with server-side javascript for rendering the page content such as NodeJS w/ JSDom.  I've attached an example of a dropdownlist control that I'd be using on all/most pages.  I need the ability to render the content into the DOM and conditionally displaying the dropdownlist rather than only rendering the dropdown onclick.  We need the information written into the DOM so that portion of the DOM can be exposed to search engines crawling when the control is databound (not clicked).  I've attached pictures of the IE and FF DOM after the control has been rendered as well.

Also, do you have an anchor-based example of the dropdownlist control rather than an event-driven example?

Thanks,
Jeff

3 Answers, 1 is accepted

Sort by
0
Alexander Valchev
Telerik team
answered on 25 Jun 2012, 03:27 PM
Hello Jeff,

It is possible to create a DropDownList from existing <select> element with a pre-defined structure. The images could be inserted via template upon the widget's initialization. For example:


I cannot understand your second question, could you please specify what do you mean by "anchor-based" example?

Regards,
Alexander Valchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Jeff
Top achievements
Rank 1
answered on 25 Jun 2012, 04:11 PM
I posted this suggestion on your UserVoice page - http://kendo.uservoice.com/forums/127393-kendo-ui-feedback/suggestions/2953553-completely-render-bound-widgets-within-dom-for-ser.  I'm requesting it as a feature.  The whole point of binding is to have your UI be data-driven and not have the HTML on the page.  I need to bind the controls using templates.  I need Kendo to provide virtualization disabling across all controls to ensure proper SEO for server-side rendering.

I'll separate the anchor dropdown question.  Basically, I want to render the dropdown item template as an anchor rather than using the dropdown in an event driven way.  Mainly, I want to do this for SEO purposes to increase my ability to control links from any individual page.
0
Alexander Valchev
Telerik team
answered on 26 Jun 2012, 12:03 PM
Hello Jeff,

It is a bit unclear what do you mean by "item template as an anchor". Could you please point out a code snippet that you would like to work? Please provide such example and I will forward your feedback to the team for further consideration.

Kind regards,
Alexander Valchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
DropDownList
Asked by
Jeff
Top achievements
Rank 1
Answers by
Alexander Valchev
Telerik team
Jeff
Top achievements
Rank 1
Share this question
or