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

Use a Dropdown in a Popup Edit

6 Answers 202 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Christine
Top achievements
Rank 1
Veteran
Christine asked on 13 May 2020, 08:29 PM

 

Is it possible to have a dropdown in the popup edit screen instead of a text box.  I have three fields that I require to be dropdown boxes.   I am at my whits end why this seems so hard.  Is there a easy to understand guide somewhere that explains how to do something lie this?  I thought this would be the least issue making my application but it has turned into a nightmare.  I was told to make a dropdown list (which I have done in another view), but I do not know where or how I need to place the control in the Grid.

Any help would be greatly appreciated.

 

 

6 Answers, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 15 May 2020, 01:48 PM

Hello Christine,

Please refer to this reply to a similar question to find a small implementation of the scenario. You can also check our example in GitHub

Let me know if the above information was useful, or if you have any further questions.

Regards,
Martin
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
0
Christine
Top achievements
Rank 1
Veteran
answered on 15 May 2020, 03:35 PM

 

I have created my own edit screen.  Now my dropdown box does not display the value of the record when it comes up (it is blank) and all other fields show data.  When I click the update button and if I changed the value in the dropdown, surprise it does not change.  I am having a very frustrating time. What am I doing wrong???

Along with that I cannot sort on a screen because the grid is based on a viewmodel that has fields derived from two other models.  When I try to sort I get an error stating that one of the fields is not in the model that the page is based on.  How do I get that to work?  Every time I get something licked I get another issue.  I swore I had this sort working before......

0
Ivan Danchev
Telerik team
answered on 19 May 2020, 02:51 PM

Hello Christine,

Could you isolate the Grid into a sample project and attach it? We will look into your editor implementation and what could be causing editing the record and setting new values not to work as expected.

Regards,
Ivan Danchev
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
0
Christine
Top achievements
Rank 1
Veteran
answered on 20 May 2020, 02:09 PM

I have fixed the drop down issue.  The main problem was the name property of the Dropdown box, I did not realize that I had to use the field name of the ID field.  Once that was fixed the dropdowns worked.

 

I do have one last problem.  The Kendo Grid is based on a Model View and when I sort the view on a field I get a "Invalid Property or field" because some fields are in other tables.  How can I fix that issue?  Once this issue is taken care of I am done. 

0
Accepted
Martin
Telerik team
answered on 22 May 2020, 11:10 AM

Hello Christine,

Unfortunately it would be hard to help you to resolve the problem without being able to debug the code. Kindly provide an isolated example where I can observe the problem, and I will happily assist you.

Regards,
Martin
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
0
Christine
Top achievements
Rank 1
Veteran
answered on 22 May 2020, 01:01 PM
I have the problem fixed.  The component name property was set wrong.  It was not set to the key field.  It is working now.
Tags
DropDownList
Asked by
Christine
Top achievements
Rank 1
Veteran
Answers by
Martin
Telerik team
Christine
Top achievements
Rank 1
Veteran
Ivan Danchev
Telerik team
Share this question
or