locked
DynamicField (dropdown) set selected items RRS feed

  • Question

  • User-484343887 posted

    I have foreign key which is *translated* on the screen as a dropdown list. Now, is there a way for me to set its selected item? My dropdown list is of type *Office* and based on the client ip I am able to set the selected office. So, someone in London would have "London" being pre-selected.

    thanks

    --tolga

    Monday, October 6, 2008 1:17 PM

All replies

  • User-797310475 posted

    Hi tolga,

    have a look at the ForeignKey_Edit field template. It has the OnDataBinding function, which performs something similar. Instead of the Row property, you will have to pass in your Office object to the GetForeignKeyString method.

    Monday, October 6, 2008 1:59 PM