javascript - migration of Ext.Net 1.6 to Ext.Net 2.1 with MVC destroys renderer functionality -
so have large project creating sample of migration ext.net 1.6 ext.net 2.1 mvc 4. doing have stumbled upon error, (after making web-application conform master page) renderer gridcolumn throws following errors:
uncaught typeerror: object function string() { [native code] } has no method 'format' uncaught typeerror: cannot call method 'removechild' of null
the renderer in "headcontent" placeholder while gridpanel in "maincontent"
renderer function looks follows:
<script type="text/javascript"> var template = '<span style="color:{0};">{1}</span>'; var listname = function (value, meta, record) { return string.format(template, (record.data.blockstatus == "free") ? "green" : "red", value); }; </script>
a general sample page use of ext.net work without problems.
any ideas on how fix this?
in ext js 4, string.format
removed , replaced ext.string.format
function. more information available in ext js documentation, see
http://docs.sencha.com/ext-js/4-2/#!/api/ext.string-method-format
also see item #40
of ext.net 2.0 breaking changes,
http://examples.ext.net/#/getting_started/introduction/breaking_changes/
hope helps.
Comments
Post a Comment