Ext.Net.MVC TextFieldFor issue

  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 11:27 AM.

Similar Threads

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

Posting Permissions