-
13 Nov 2011 11:28 AM #1
Configuring a list with emptyText defined causes an Error
Configuring a list with emptyText defined causes an Error
REQUIRED INFORMATION
Sencha Touch version tested:- Sencha 2 rev PR2
- Safari
- Chrome
- Mobile Safari
- HTML5
- Describe the problem in greater detail here, summarizing the behavior.
Using setEmptyText on initialization seems to work the FIRST TIME, but if you change it again, the same error appears.Code:TypeError: 'undefined' is not an object (evaluating 'innerItem.innerHTML = this.getItemTpl().apply(data)')
Steps to reproduce the problem:- Create a list
- Define the 'emptyText' attribute
- load the list and watch it break
- no errors should appear
- subsequent alterations of the empty text should work as expected
- defining the list with 'emptyText' breaks the list. Subsequently changing the 'emptyText' with 'setEmptyText' also breaks the list.
Code:{ xtype: 'list', id: 'testList', cls: 'test_list_container', store: 'TestStore', emptyText: 'Test Empty Text' // this breaks it }Twitter: lylepratt
-
13 Nov 2011 2:04 PM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,641
- Vote Rating
- 434
Thank you for the report.
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
15 Nov 2011 10:42 AM #3Sencha - Sencha Touch Dev Team
- Join Date
- Mar 2007
- Location
- Redwood City, California
- Posts
- 3,652
- Vote Rating
- 14
Fixed several issues with emptyText, this will be part of the next release.
-
29 Nov 2011 1:02 AM #4
I'm still having the same error (ST PR2) during calling a .load() method of my store after making into them some changes. Is bug fixed already or would be in ST2 release (not PR)?
-
29 Nov 2011 8:54 AM #5Sencha - Sencha Touch Dev Team
- Join Date
- Mar 2007
- Location
- Redwood City, California
- Posts
- 3,652
- Vote Rating
- 14
The next PR (PR3).
-
13 Dec 2011 8:14 AM #6
Still getting an error in PR3.
Still getting an error in PR3.
I'm still getting the following error after upgrading to PR3:
TypeError: 'undefined' is not an object (evaluating 'innerItem.innerHTML = this.getItemTpl().apply(data)')
The error occurs only when there is data for the list. If there is no data for the list, the emptyText message is displayed properly and no error is displayed on the console.
-
20 Jan 2012 2:26 AM #7
Problems with emptyText persist in PR3
Problems with emptyText persist in PR3
I am get the same error in PR3, additionally the emptyText does not disappear after setting it with setEmptyText() and thenadding items to the list. Setting setEmptyText('') (empty string) or setEmptyText(null) does not have any effect either.
-
20 Jan 2012 8:49 AM #8Sencha - Sencha Touch Dev Team
- Join Date
- Mar 2007
- Location
- Redwood City, California
- Posts
- 3,652
- Vote Rating
- 14
DataView had some restructuring done to better facilitate this for the next release. DataView is now broken into an outer container which handles things like emptyText and an inner container which is created either as a set of managed elements or a set of managed components. Previously emptyText resided within the inner container which was causing problems when it was interacting with the managed elements/components.
Success! Looks like we've fixed this one. According to our records the fix was applied for
TOUCH-1027
in
2.0.


Reply With Quote