Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Telerik MVC Extensions (superseded) > General Discussions > UIHintAttribute cshtml

Not answered UIHintAttribute cshtml

Feed from this thread
  • Louis avatar

    Posted on Jan 7, 2012 (permalink)

    Hello,

    I have a filed decorated like this :

    [UIHint("ListeLocalisations", "Field1", "NoLocalisation", "Field2", "CodeDescription_fr")]
    public int? NoLocalisation { get; set; }

    And in EditorTemplate something like this :

    @using Telerik.Web.Mvc.UI
     
    @(Html.Telerik().DropDownList().Name(ViewData.TemplateInfo.GetFullHtmlFieldName(string.Empty))
    .BindTo(new SelectList((System.Collections.IEnumerable)ViewBag.DropDownListLocalisations, "NoLocalisation", "CodeDescription_fr")))


    I have to create a new cshtml file for each dropdownlist because only some values changes. 
    I want the UIHintAttribute "Field1", "NoLocalisation", etc in the cshtml.  
     How Can I pass the parametres of the IUHINT to the EditorTemplate file?




    Reply

  • Georgi Tunev Georgi Tunev admin's avatar

    Posted on Jan 9, 2012 (permalink)

    Hello Louis,

     This issue is not directly related to our controls - UIHintAttribute and editor templates are coming from the MVC framework itself. I would suggest to check the Net for possible solutions. For example, this blog post might be of help.

    Kind regards,
    Georgi Tunev
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Telerik MVC Extensions (superseded) > General Discussions > UIHintAttribute cshtml