Reputation: 15185
I have created a lot of java script functions to encapsulate crud operations for a kendo grid with the ability to edit data in a new page or a popup dialog. I am new to javascript. Is there a way to embed the grid and popup functionality into a script file. Right now i am using _partial views to and derived classes to do what I want.
Upvotes: 1
Views: 219
Reputation: 2337
You can extend the base grid widget and then override the methods to create a new grid that's customized.
Like this...
var CustomGrid = kendo.ui.Grid.extend({
// override the prototype or add custom methods here
});
Here is an article explaining more about how to do that:
http://www.kendoui.com/blogs/teamblog/posts/12-10-16/inheriting_from_custom_widgets.aspx
Upvotes: 1