Dropdownlist autobinding DOM

4 posts, 0 answers
  1. Jeff
    Jeff avatar
    18 posts
    Member since:
    Jun 2012

    Posted 20 Jun 2012 Link to this post

    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
  2. Alexander Valchev
    Admin
    Alexander Valchev avatar
    2875 posts

    Posted 25 Jun 2012 Link to this post

    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!
  3. Kendo UI is VS 2017 Ready
  4. Jeff
    Jeff avatar
    18 posts
    Member since:
    Jun 2012

    Posted 25 Jun 2012 Link to this post

    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.
  5. Alexander Valchev
    Admin
    Alexander Valchev avatar
    2875 posts

    Posted 26 Jun 2012 Link to this post

    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!
Back to Top
Kendo UI is VS 2017 Ready