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

[Solved] External Grid Editor?

4 Answers 104 Views
Grid
This is a migrated thread and some comments may be shown as answers.
jeff
Top achievements
Rank 1
jeff asked on 26 Feb 2015, 02:57 PM
I have a simple 3 column table, but one of the columns can have a very significant amount of data to edit - the inline editor is far too small, and I can't really use the modal version without major modification (and they nor I like modal windows, if it can be helped), so my option then is to modify the command and make a custom area to do the edits:

01.{ command: [
02.   {
03.    name: "Edit",
04.    click: function(e) {
05.        var tr = $(e.target).closest("tr");
06.        var data = this.dataItem(tr);
07.         
08.        $('#programAdmin').slideUp('slow');
09.        $('#programAdminEdit').slideDown('slow');
10.        $('html, body').animate({
11.            scrollTop : $("#programAdminResults").offset().top
12.        }, 2000);
13.    }
14.   },
15.   {
16.    name: "Remove Notes",
17.    click: function(e) {
18. 
19.    }
20.   }
21. ], title: " ", width: "200px" }],


My question is, how do I grab the field data (let's say the field is called  #=DATA_NOTES#) from the kendo grid from an external element, and make edits? Or is there a better solution here? I'd like to give them a glitzy .kendoEditor();, etc.. 

4 Answers, 1 is accepted

Sort by
0
Accepted
Alexander Popov
Telerik team
answered on 02 Mar 2015, 01:07 PM
Hi Jeff,

I would recommend checking this example, which illustrates how similar behavior could be achieved.

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
jeff
Top achievements
Rank 1
answered on 02 Mar 2015, 08:10 PM
Hi Alex,
Gah, I should have seen that, thank you!
0
jeff
Top achievements
Rank 1
answered on 19 Mar 2015, 03:03 PM
Hi Alexander,
Thank you, that helped immensely. Could you illustrate how to do the same thing, but rather than select the row, click an 'edit' button on a row?

Thank you,

Jeff
0
Alexander Popov
Telerik team
answered on 23 Mar 2015, 08:57 AM
Hi Jeff,

Here is a proof of concept example showing how this could be done on a click of a button.

Regards,
Alexander Popov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
jeff
Top achievements
Rank 1
Answers by
Alexander Popov
Telerik team
jeff
Top achievements
Rank 1
Share this question
or