WebGrid Community Server

Welcome to WebGrid Community Server Sign in | Join | Help
in Search

Dropdown without using a Foreign Key?

Last post 08-06-2008, 15:09 by ajunell. 2 replies.
Sort Posts: Previous Next
  •  08-06-2008, 5:16 711

    Dropdown without using a Foreign Key?

    I've searched the forum and I'm pretty sure the answer to my question is 'no', but I thought I'd ask anyway.  I would like to have a column in the Webgrid be a dropdown box, but without having to setup a table to contain the values for the dropdown.  There are only three potential values for the dropdown box, so the overhead of a table and join seems like overkill.  A workaround that I considered is to just use Validation to test if the value entered in the column is equal to one of the three allowed values, but I haven't been able to get the Validation to work either.

    Any ideas?

    Thanks,

    Alan

  •  08-06-2008, 7:30 713 in reply to 711

    Re: Dropdown without using a Foreign Key?

    I'm working on foreign key where you do not need a database connection, and can create drop down boxes dynamically and also map these as a foreign key. (Beta is available in premium section, however there are still some take until I'm done with this.)

    Olav Botterli, WebGrid Founding Developer
  •  08-06-2008, 15:09 715 in reply to 713

    Re: Dropdown without using a Foreign Key?

    Thanks Olav, that would be great. 
View as RSS news feed in XML
Powered by Community Server, by Telligent Systems