Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Telerik MVC Extensions (superseded) > Documentation and tutorials > How to use the Telerik Helpers inside your own HTML Helpers
Telerik MVC Extensions are no longer supported (see this page for reference). In case you have inquiries about Kendo UI Complete for ASP.NET MVC, post them in the pertinent Kendo UI forums.

Not answered How to use the Telerik Helpers inside your own HTML Helpers

Feed from this thread
  • James avatar

    Posted on Feb 7, 2011 (permalink)

    Hi Guys,

    Love the telerik MVC2 controls, totally in love.

    I have a question. How can i call the telerik helper to build the HTML string  that represents an instance of  a date picker (could be any control though) inside my own helper.
    i have a function that will, based on preferences of a user.

    so currently the function looks like so

    Public Shared Function RenderSecureDatePicker( _
               ByVal referenceToHelper As HtmlHelper, _
               ByVal Name As String, _
               ByVal dateToRender As Date _
    ) As String
     
     With Telerik.Web.Mvc.UI.HtmlHelperExtension.Telerik(referenceToHelper)
                          datePickerInstance = .DatePicker()
                          datePickerInstance.Name = Name
                          datePickerInstance.Value = dateToRender
                          Return datePickerInstance.ToHtmlString()
                End With
    End Function


    Any idea's? am i going down the right path>

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Telerik MVC Extensions (superseded) > Documentation and tutorials > How to use the Telerik Helpers inside your own HTML Helpers