This is a migrated thread and some comments may be shown as answers.

[Solved] ForeignKey Column - PopUp mode

1 Answer 122 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Mark Shortt
Top achievements
Rank 1
Mark Shortt asked on 02 May 2012, 05:21 PM
Hi

I'm trying out the ForeignKey Column mode on the grid, and it's working brilliantly in the grid if the mode is set to inline

My problem is if I change the edit mode to PopUp the lookup table doesn't appear. Can you tell me if there is a way to get this working in PopUp mode?

Thanks

Mark 

1 Answer, 1 is accepted

Sort by
0
Muhamad Tassadaque Zia
Top achievements
Rank 1
answered on 28 May 2012, 12:47 PM
For Popup/Inform edit mode you need to add an [UIHint("GridForeignKey")] attribute to your model property  in order to make your Popup view use this editor template. Also make sure that GridForeignKey.ascx editor template is in your editor template folder
Tags
Grid
Asked by
Mark Shortt
Top achievements
Rank 1
Answers by
Muhamad Tassadaque Zia
Top achievements
Rank 1
Share this question
or