Wanting supress hyperlink in dynamicfield, but not loose dropdown list in edit mode. RRS feed

All replies

  • User-330204900 posted

    You could add the AllowNavigation="false" to the DynamicControl/DynamicField in the markup of course this requires that this is a custom page. AllowNavigation is a property of the ForeignKeyField FielTemplate so the other thing you could do is create your own variant of the ForeignKeyField  and ForeignKeyField_Edit and then use UIHint to control the ForeignKey fields.

    Sunday, October 5, 2008 3:53 PM
  • User1641955678 posted

    If you simply never want this linking behavior, then the simplest thing to do is to just modify the existing field template.  Specifically, try going to DynamicData\FieldTemplates\ForeignKey.ascx.cs and change 'private bool _allowNavigation = true;' to be false by default.


    Sunday, October 5, 2008 10:59 PM