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

display a dropdown list when grid cell clicked

9 Answers 320 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Colin
Top achievements
Rank 1
Colin asked on 02 Dec 2011, 10:19 PM
Instead of enable the textbox for editing, is there any way to bind a dropdown list, please advise.

Thanks

9 Answers, 1 is accepted

Sort by
0
Mirco
Top achievements
Rank 1
answered on 03 Dec 2011, 05:42 PM
Thanks for posting.
This is what i am looking for too.
Hope to get feedback soon as possible.

Cheers
0
Rosen
Telerik team
answered on 05 Dec 2011, 03:28 PM
Hi Mirco,

I'm afraid that this is not possible with current version if the grid. However, we have managed to address this limitation and this will be supported with the next version of the widget.

Greetings,
Rosen
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Mirco
Top achievements
Rank 1
answered on 05 Dec 2011, 03:31 PM
Thank for answering.

Any idea about the next release date ?

Thx

Mirco
0
Rosen
Telerik team
answered on 05 Dec 2011, 06:06 PM
Hello Mirco,

There will be a service pack most probably in the following months, however it will be available only for our trial and commercial license holders. 

Regards,
Rosen
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Leo
Top achievements
Rank 1
answered on 22 Dec 2011, 07:21 PM
Hi kelin,

You may want to try this as a workaround.

Take a look at my post in this thread:


This is something that I’ve been working on so I hope it helps you.

0
Mirco
Top achievements
Rank 1
answered on 23 Dec 2011, 01:48 AM
I am going to try.
Many Thanks. 

Mirco
0
Zachary
Top achievements
Rank 1
answered on 29 Jan 2012, 04:59 PM
I have gotten this to work in the last major 2011 release as follows with a grid bound to a local json object. So this does not require a table or kendo dropdown list to be created and works fine for basic edit scenario.  In my case I needed a drop down for a language column that contained a list of language culture names

1.   bind my model to the schema like I would any other grid/field LanguageName: { type: 'string', editable: false },
from    schema: {
                        model: {
                            id: 'TranslationTextId',
                            fields: {
                                TranslationTextId: {
                                    editable: false,
                                    nullable: true
                                },
                                Text: { type: 'string', editable: true },
                                LanguageName: { type: 'string', editable: false }, 
                            }
                        }

2. In the column configuration I define the template and then a function (in this case called GetCultureList) that sets my option's selected attribute .
  { field: 'LanguageName', title: 'Language',
                        template:
                        '<select name="LanguageName">#=translation' +  GetCultureList(LanguageName)#</select>'
                    },
0
underscore
Top achievements
Rank 1
answered on 21 Feb 2012, 08:45 AM
Hi Zachary, could you show your GetCultureList() function? Thanks!
0
underscore
Top achievements
Rank 1
answered on 22 Feb 2012, 02:31 PM
Just to add the problem: when a custom function is being called from the template as above, the passed ID is not being resolved, only later when it's being too late for any conditional statement based on the ID, true?
Tags
Grid
Asked by
Colin
Top achievements
Rank 1
Answers by
Mirco
Top achievements
Rank 1
Rosen
Telerik team
Leo
Top achievements
Rank 1
Zachary
Top achievements
Rank 1
underscore
Top achievements
Rank 1
Share this question
or