MVC - FormPanelForModelfor Edit generic Object Type

  1. #1

    MVC - FormPanelForModelfor Edit generic Object Type

  2. #2
    If you need specific editor type for property then need to use Field attribute with FieldType property
    [Field(FieldType=typeof(ComboBox))]
    public IDMode CharacteristicValue { get; set; }
    If you need to prevent editing then you can set ReadOnly
    [Field(FieldType=typeof(ComboBox), ReadOnly=true)]
    Unfortuntelly, FormPanelForMode doesn't support reading type from particular property value, it can autoetect editor type from model property type only (or from Field attribute)

Similar Threads

  1. Replies: 0
    Last Post: Oct 06, 2011, 1:38 PM
  2. Replies: 2
    Last Post: May 29, 2011, 3:42 AM
  3. Replies: 12
    Last Post: May 17, 2011, 7:08 AM
  4. Replies: 4
    Last Post: Feb 01, 2011, 11:54 AM
  5. [CLOSED] What the edit type supported by the Grid Panel?
    By Etisbew in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Oct 01, 2009, 6:50 AM

Tags for this Thread

Posting Permissions