Ext.Net.MVC TextFieldFor issue

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Ext.Net.MVC TextFieldFor issue

    Hello,

    In case where EmptyText equal Value, TextFieldFor omit value and set only empty text.

    Example:

    m.City == "City"

    X.TextFieldFor(m => m.City)
       .EmptyText("City")
    and

    X.TextField()
        .Name("City")
        .Value(Model.City)
       .EmptyText("City")
    set only empty text.

    update:
    Temporary fix:
                              X.TextFieldFor(m => m.City, false)
                                  .CustomConfig(cc => cc.Add(new { value = Model.City }))
    Extjs example:
    https://fiddle.sencha.com/#fiddle/15pu
    Last edited by Yury; Feb 17, 2016 at 10:27 AM.

Similar Threads

  1. [CLOSED] Custom TextFieldfor helper
    By infonext in forum 2.x Legacy Premium Help
    Replies: 7
    Last Post: Jan 09, 2014, 4:25 AM
  2. Replies: 0
    Last Post: Dec 24, 2013, 4:03 PM
  3. Replies: 3
    Last Post: Dec 05, 2012, 1:38 PM
  4. [CLOSED] Pecilluar issue in the DropDown, UI Issue
    By Shanth in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Feb 22, 2012, 12:02 PM

Posting Permissions