This topic is locked

In-place editing for drop down list

12/7/2015 7:07:53 AM
PHPRunner General questions
J
jdu001 author

In the code for the blog example "in-place editing" is a drop down list for Category ID.

In the explanation from how to achieve the blog example "Excel like grid in PHPRunner applications" is the code explained in point 2. ('View as' Custom) for a Text box and a Check box.

How does the code look like for a drop down list, in this case for Category ID.

Sergey Kornilov admin 12/7/2015

There are two different approaches and two different articles. You need to check this one:

http://xlinesoft.com/blog/2015/11/12/in-place-editing/

J
jdu001 author 12/8/2015

Hello Sergey,
I have copied the code and it works fine for a text box.

In the In place editing example there is a drop down list on Category ID.

I have a similar drop down list depending on values in the database. If I make the Category ID custom value as in the example, I see the key-number and not the CategoryName. How can I present the CategoryName?

Sergey Kornilov admin 12/8/2015

I don't understand. Are we still talking about in-place editing functionality or about dropdowns setup in general? If latter, you can simply choose any field as 'Display field' while setting up your dropdown box.