Base solution for your next web application
Open Closed

PowerTools Entity Generator Navigation Properties Edit Modal Lookup Always Lookup Control, Not DropDown #6961


User avatar
0
schlarmanp created

I've generated a test lookup entity "TestLookup" with just one property "LookupDescription" (string).

I then generated a test entity "TestEntity" with one property "Description" and one navigation property "TestLookupId" which references "TestLookup". "LookupDescription" is the display property. I've tried generating with setting the "nullable" checkbox check and also unchecked.

Regardless, when I generate "TestEntity" and test the UI, the edit modal always displays the lookup control with the "Pick" search button (magnifying glass) icon. I don't want this. I simply want a dropdown list containing the lookup values.

How do I accomplish this via PowerTools?

Cheers

Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)

4 Answer(s)
  • User Avatar
    0
    yekalkan created

    Rad tool doesn't have this option.

    You can create a feature request on https://github.com/aspnetzero/aspnet-zero-core/issues

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    schlarmanp created

    Is there any write-up or guidance how to modify the generated code to accomplish this?

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    atlscoob created

    I agree, having an example on the easiest way to convert these controls to simple drop-downs would be very helpful.

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Thanks @schlarmanp for creating the issue https://github.com/aspnetzero/aspnet-zero-core/issues/2378.

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)