In my Sencha Touch app I had a component dataview. I had included an index bar and I needed to scroll to the relevant items when I click on index bar. This is what I did.
Here recordIndex is the index of the component in dataview that we need to scroll to.
hey,
ReplyDeleteIts not work for me
I have this error Uncaught TypeError: Cannot read property 'element' of undefineditemsingletap
Can you post your code snippet here.
ReplyDelete```itemsingletap: function(list, index, target, record, e, eOpts ) {
Deletep_scor_controller.ok = false;
p_scor_controller.tap = true,
p_scor_controller.scrollRecord = this.getViewItems()[index].element.getY();```
I have a list of people that when I click on a personage it displays its coordinates.
DeleteI want me when I return in the person of the list, the scroll is until the person I click previously
Now, is "this" a data view? I think there is a problem in scope.
ReplyDeleteits a list
Deleteyou have idea what i need to do
DeleteCheck here[1]. There is a function "scrollToSelectedItem" and it is working.
Delete[1] https://github.com/Raxa/doctorsnearme/blob/master/app/view/ContactList.js
you know why my list.getItemMap() function return Array with 0 element when my list have 13 element
DeleteHey buddy!! What amazing and useful information you are sharing here, thanks for sharing. I would love to share this information on mine post also so that the visitors of my blog also get a chance to become familiar with this information.
ReplyDeleteSencha Touch Development Company
Hire Sencha Touch Developer
ReplyDeleteEnjoyed reading the article above, really explains everything in detail, the article is very interesting and effective. Thank you and good luck for the upcoming articles Nodejs training