Results 1 to 5 of 5

Thread: Modern NestedList getItemTextTpl, getTitleTextTpl causes error

    Looks like we can't reproduce the issue or there's a problem in the test case provided.
  1. #1
    Touch Premium Member
    Join Date
    Sep 2011
    Posts
    99

    Default Modern NestedList getItemTextTpl, getTitleTextTpl causes error

    Ext version tested:
    • Ext 6.0.1.250 Modern
    Browser versions tested against:
    • Chrome 45.0.2454.93 m
    Description:
    • Setting configuration for getItemTextTpl and/or getTitleTextTpl causes a console error: Cannot override method getItemTextTpl on bNimble.bNestedList instance.This seems to be because neither parameter is defined in NestedList.js's config:
    Steps to reproduce the problem:
    • Create an app with a NestedList with a config for getItemTextTpl and/or getTitleTextTpl
    • Run it with the debugger open

  2. #2
    Sencha User
    Join Date
    Nov 2014
    Posts
    3,120

    Default

    Hi Mike--

    I'm not able to reproduce the error. Can you fork the Fiddle I've included below and modify it to show the error?

    Thanks!
    Joel

    https://fiddle.sencha.com/#fiddle/u7i

  3. #3
    Touch Premium Member
    Join Date
    Sep 2011
    Posts
    99

    Default

    Hi Joel,
    Apparently it has to do with using Ext.create. See https://fiddle.sencha.com/#fiddle/u9l

    The error occurs inside Ext.Configurator.configure.

  4. #4
    Sencha Premium User
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    19,258

    Default

    This isn't a bug, the class system is raising an error because it's not an allowed thing to do:

    Cannot override method getItemTextTpl on Ext.dataview.NestedList instance.

  5. #5
    Touch Premium Member
    Join Date
    Sep 2011
    Posts
    99

    Default

    It is a documented feature in both Touch and Ext JS Modern.
    http://docs.sencha.com/extjs/6.0/6.0.1-modern/#!/api/Ext.dataview.NestedList-method-getItemTextTpl

    The bug is that getItemTextTpl is not included in config! It did not matter in Touch because Touch did not check for adding unrecognized functions in the config. Ext JS does. That's fine. Just fix the config. Please.

Similar Threads

  1. NestedList getItemTextTpl is not get called.
    By hhzhang314 in forum Sencha Touch 2.x: Q&A
    Replies: 2
    Last Post: 21 Aug 2012, 2:09 PM
  2. [FIXED] [B2] getItemTextTpl does not work for Ext.dataview.NestedList
    By tvdgeer in forum Sencha Touch 2.x: Bugs
    Replies: 6
    Last Post: 27 Jun 2012, 1:36 AM
  3. NestedList - getItemTextTpl override
    By jjh in forum Sencha Architect 2.x: Help & Discussions
    Replies: 2
    Last Post: 15 Feb 2012, 12:04 PM
  4. [FIXED] Ext.dataview.NestedListView.getTitleTextTpl and getItemTextTpl not called
    By alopatia in forum Sencha Touch 2.x: Bugs
    Replies: 5
    Last Post: 14 Feb 2012, 1:35 AM
  5. NestedList.getItemTextTpl
    By momesana in forum Sencha Touch 1.x: Discussion
    Replies: 3
    Last Post: 28 Nov 2011, 3:01 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •