Changes between Initial Version and Version 1 of Ticket #5503


Ignore:
Timestamp:
Mar 4, 2008, 3:12:48 AM (12 years ago)
Author:
sorvell
Comment:

So it looks like changing the markupFctory function in dojox.grid.data.DojoData? will work:

markupFactory: function(args, node, constructorFunction){
  return new constructorFunction(null, null, args);
}

Passing this to Alex to confirm and implement. Thanks.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #5503

    • Property Owner changed from sorvell to alex
    • Property Milestone changed from 1.1 to 1.2
  • Ticket #5503 – Description

    initial v1  
    1 Currently DojoData class name is hard-coded in its markupFactory. This seems unnecessary and makes inheriting DojoData class more complicated. There's an easy solution: the parser passes the current class to the markupFactory method. See [http://www.dojotoolkit.org/book/dojo-book-0-9-1-0/part-2-dijit-dojo-widget-library/advanced-editing-and-display/grid-1-0/sortin#comment-10713 Override markup factory to return instance of your own class] for discussion.
     1Currently DojoData class name is hard-coded in its markupFactory. This seems unnecessary and makes inheriting DojoData class more complicated. There's an easy solution: the parser passes the current class to the markupFactory method. See [http://www.dojotoolkit.org/book/dojo-book-0-9-1-0/part-2-dijit-dojo-widget-library/advanced-editing-and-display/grid-1-0/sortin#comment-10713 http://localhost/dojo.ssh/dojox/grid/tests/test_tundra_edit.html] for discussion.