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

[Solved] Adding Datepicker, Dropdown and other controls to Kendo Grid

5 Answers 347 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Venkat
Top achievements
Rank 1
Venkat asked on 21 Oct 2014, 12:25 PM
Hi,

We have an requirement that allow a user to enter multiple records at a same time. As I have seen the demo, I feel the batch editing is good option for us.

But we might have a issue that, we need to allow user to select a data from different controls such as Dropdown list, Datepicker and may be some other. In one of the demo sample, I have seen that Dropdown list is added to a column by specifying Foreign Key column mapping (If I am not wrong, that has been done by using Entity Framework).
 
We are using Model class as source to bind the Grid and we are not using Entity Framework here. By binding Model class is it possible that, we can add these different controls to the columns and is there any examples or sample code?

Regards!

5 Answers, 1 is accepted

Sort by
0
Accepted
Alexander Popov
Telerik team
answered on 23 Oct 2014, 08:15 AM
Hi Venkat,

Using Entity Framework is in no way required for using the ForeignKey column builder, or any other for that matter. Basically, the ForeignKey column builder accepts a few parameters which are used to populate the Grid's columns.values option  and to generate JavaScript code that initializes a properly working DropDownList in the columns.editor option. Bound columns use an editor that best matches the type of the field they are bound to, although you could easily override those by using the EditorTemplateName method and create custom editor template. Both the custom and the default editor templates usually reside in the Views\Shared\EditorTemplates folder. I would recommend checking our offline demos, which are located in the Kendo UI installation path, under the \wrappers\aspnetmvc\Examples directory. 

Regards,
Alexander Popov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Venkat
Top achievements
Rank 1
answered on 23 Oct 2014, 11:15 AM
Hi,

Thanks Alexander, will check the given links and let you know.
0
Venkat
Top achievements
Rank 1
answered on 23 Oct 2014, 11:16 AM
Hi,

Thanks Alexander, will check the given links and let you know.

Regards!
0
Venkat
Top achievements
Rank 1
answered on 25 Oct 2014, 11:41 AM
Hi Alexander,

The examples given by you were very helpful and it's working fine at the moment.

Now I am working on Date Picker and will inform on the same.

Thanks again!

Regards!
0
Venkat
Top achievements
Rank 1
answered on 28 Oct 2014, 05:57 AM
Hi Alexander,

These are working good. Thanks for your reply and I have marked your post to Answered!

Regards!
Tags
Grid
Asked by
Venkat
Top achievements
Rank 1
Answers by
Alexander Popov
Telerik team
Venkat
Top achievements
Rank 1
Share this question
or