V2.55 equivalent to V1 templates
I have searched high and low for this and cannot seem to find quality information - and my trial and error is getting me nowhere very slowly.
In a V1 implementation of the grid we made extensive use of templates to create cell editors and very complex displays within cells.
Need to migrate to 2.55 for obvious reasons, but need to recreate these templates in the new syntax.
Goals for a template (Input as an example):
1. operate similar to existing grid input (click to edit, highlight text when switching to edit mode
2. at the end of editing, check length of input against a max length and trim extra characters
3. the template should start out as text and switch to the input box - instead of showing the input box the whole time. After editing complete switch back to text.
What is the new syntax for creating it like this:
I prefer to figure out how to properly use these templates instead of creating inline code on the pages where i define the actual grids, because they can become very bloated. If this is a separate file then it helps with performance.
Thanks in advance.
In a V1 implementation of the grid we made extensive use of templates to create cell editors and very complex displays within cells.
Need to migrate to 2.55 for obvious reasons, but need to recreate these templates in the new syntax.
Goals for a template (Input as an example):
1. operate similar to existing grid input (click to edit, highlight text when switching to edit mode
2. at the end of editing, check length of input against a max length and trim extra characters
3. the template should start out as text and switch to the input box - instead of showing the input box the whole time. After editing complete switch back to text.
What is the new syntax for creating it like this:
// **************************************************
// Input Cell Template.
// **************************************************
My.Templates.Input = AW.Templates.Text.subclass();
My.Templates.Input.create = function(){
var obj = this.prototype;
};
I prefer to figure out how to properly use these templates instead of creating inline code on the pages where i define the actual grids, because they can become very bloated. If this is a separate file then it helps with performance.
Thanks in advance.
Ben W (ScheduleForce)
December 8,