Any workaround for the removed setEditorTemplate() without having to use the default AW.Templates.ImageText functionality?
Hi Alex, Greetings,
I always loved the setEditorTemplate() method and I understood from the following posts that it is considered redundant and not supported anymore in the current and future versions:
Post by Alex (ActiveWidgets)[Please comment] Cell editing, changing API (2.0):
/javascript.forum.9201.21/please-comment-cell-editing-changing.html
Post by Rob Francis, Beta4 breaks my setEditorTemplate code - Please help:
/javascript.forum.10775.1/beta4-breaks-my-seteditortemplate-code.html
I was wondering how the functionality can be duplicated without the original setEditoTremplate method in place.
Is there any workaround for the removed setEditoTremplate() without having to go for the contentEditable functionality that is available in the AW.Templates.ImageText class? I would love to see a cell (that is currently being edited) displaying an HTML Textbox and an image (or, lets say, one my template customizations) and display back text once cell editing has been complete.
1. I would never want to staticly use obj.setCellTemplate() because it would display all of the cells in a particular column allowing user modification at all times. I would want to enable/disable this template only when the current cell is in editable mode (ideally the missing setEditorTemplate() was doing this job). I'm thinking of the events 'cellEditStarting' and 'cellEditEnded' -- but what is the best code to write in here?
2. By stepping into the code, I understood that AW.Templates.ImageText is the class that forms the base source for t.startEdit() -- all others Templates (including Input and Combo) inherit from this base class and reuse this browser based contentEditable functionality, if my understanding is correct. It would be a real pain (and might be misleading for me) if I go inherit this class and duplicate the startEditIE and startEditGecko private methods to apply an editor template like behaviour.
Please, Alex and other experts, suggest me a better solution to this problem -- If such a case was already encountered and resolved, please apologize for this duplicate post (I tried my best searching the forums), and kindly share the link.
So far in all the PoC i have done, this is the only show stopper that has kept me from going for the commercial version. I greatly appreciate your advice and the time spent with this.
Thanks
I always loved the setEditorTemplate() method and I understood from the following posts that it is considered redundant and not supported anymore in the current and future versions:
Post by Alex (ActiveWidgets)[Please comment] Cell editing, changing API (2.0):
/javascript.forum.9201.21/please-comment-cell-editing-changing.html
Post by Rob Francis, Beta4 breaks my setEditorTemplate code - Please help:
/javascript.forum.10775.1/beta4-breaks-my-seteditortemplate-code.html
I was wondering how the functionality can be duplicated without the original setEditoTremplate method in place.
Is there any workaround for the removed setEditoTremplate() without having to go for the contentEditable functionality that is available in the AW.Templates.ImageText class? I would love to see a cell (that is currently being edited) displaying an HTML Textbox and an image (or, lets say, one my template customizations) and display back text once cell editing has been complete.
1. I would never want to staticly use obj.setCellTemplate() because it would display all of the cells in a particular column allowing user modification at all times. I would want to enable/disable this template only when the current cell is in editable mode (ideally the missing setEditorTemplate() was doing this job). I'm thinking of the events 'cellEditStarting' and 'cellEditEnded' -- but what is the best code to write in here?
2. By stepping into the code, I understood that AW.Templates.ImageText is the class that forms the base source for t.startEdit() -- all others Templates (including Input and Combo) inherit from this base class and reuse this browser based contentEditable functionality, if my understanding is correct. It would be a real pain (and might be misleading for me) if I go inherit this class and duplicate the startEditIE and startEditGecko private methods to apply an editor template like behaviour.
Please, Alex and other experts, suggest me a better solution to this problem -- If such a case was already encountered and resolved, please apologize for this duplicate post (I tried my best searching the forums), and kindly share the link.
So far in all the PoC i have done, this is the only show stopper that has kept me from going for the commercial version. I greatly appreciate your advice and the time spent with this.
Thanks
Neo (TrioteX)
May 21,