View Full Version : why listview's behavior is unexpected?
3 May 2012, 1:19 AM
Hello guys, I am confuse in the way the list is behaving.Here's my code for listview which i completed with the help of bluehipy(http://www.sencha.com/forum/showthread.php?197969-How-to-get-the-checkbox-state-added-in-itemTpl) :- http://www.senchafiddle.com/#b4K8w
I dont understand why in every group items reached at the bottom when i tap on the list item.You can found this behavior when you use the list.I am wondering that "Is it a bug or i am writing something wrong".I only find this behavior when i use 'grouper' config option in my store.
Please help me to find out about the behavior of the list.
Thanks in advance.
5 May 2012, 5:43 AM
What behavior are you seeing? I changed the json, store, and view to be grouped and things work as I would expect.
8 May 2012, 4:20 AM
why list view items go down to the bottom in same group when click on an item?
11 May 2012, 2:57 AM
So, items go down at the bottom in the group when i tap a checkbox is the normal behavior ? Please reply!
16 May 2012, 4:59 AM
Check the grouper syntax on store documentation.
(http://docs.sencha.com/touch/2-0/#!/api/Ext.data.Store-cfg-grouper)You will see that sortProperty is inside the grouper config.
Your store config needs only grouper, you can remove sorter mention from there.
17 May 2012, 1:46 AM
ok removed sorter from the store but no change in list.I dont find anything in documentation which can explain me that why list item goes down to the bottom in the grouper when i click on it?
17 May 2012, 3:59 AM
Hm... the reorder is caused by the record.set('active',active) and I would say it is a bug.
17 May 2012, 4:12 AM
yup.. you are absolutely right it is caused by record.set('active',active).so we have to report this to sencha development team....
17 May 2012, 4:19 AM
hey bluehipy check this out:-http://docs.sencha.com/touch/2-0/source/Model.html#Ext-data-Model-method-set this odd behavior which is , we are facing here , is done by sencha team itself.This is not a bug.
17 May 2012, 4:44 AM
What side of the code would be responsible for store reorder?
17 May 2012, 8:09 PM
see this line below the modifiedFieldNames
/* * If we're passed an object, iterate over that object. NOTE: we pull out fields with a convert function and * set those last so that all other possible data is set before the convert function is called */
17 May 2012, 8:11 PM
I don't think that is about this isssue related to reordering....
Powered by vBulletin® Version 4.1.5 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.