473,386 Members | 1,819 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

spinning data

Hi Friends,
In ext-touch-debug.js file there is a function with the name Ext.Picker in which there is code for placing the values in the spinner. Here is the code

Expand|Select|Wrap|Line Numbers
  1. Ext.Picker = Ext.extend(Ext.Panel, {
  2. …………….
  3. …………..
  4. …………
  5. for (i = 0, ln = this.slots.length; i < ln; i++) {
  6. slot = this.slots[i]; // alert('i value is..... '+i);
  7. //alert("display field is....."+this.displayField);
  8. // key
  9. slotItem = {
  10. xtype: 'dataview',
  11. itemSelector: this.pickerItemCls,
  12. isSlot: true,
  13. flex: 1,
  14. listeners: {
  15. itemtap: this.onItemTap,
  16. scope: this
  17. },
  18. scroll: {
  19. direction: 'vertical',
  20. scrollbars: false,
  21. snapping: true,
  22. deceleration: 0.006,
  23. friction: 0.2,
  24. index: i,
  25. listeners: {
  26. scrollend: this.onScrollEnd,
  27. scope: this
  28. }
  29. },
  30. tpl: '<ul class="x-picker-{align}"><tpl for="."><li class="x-picker-item {cls} <tpl if="extra">x-picker-invalid</tpl>">{' + this.displayField + '}</li></tpl></ul>',
  31. store: new Ext.data.Store({
  32. model: this.model,
  33. data: slot.items
  34. })
  35. };
  36. if (this.useTitles) {
  37. slotItem.dockedItems = [{
  38. xtype: 'toolbar',
  39. dock: 'top',
  40. title: slot.title || slot.text
  41. }];
  42. }
  43. // alert(items.push(slotItem));
  44. items.push(slotItem);
  45. }
  46. }
The above code is used to configure the spinner.Now I have created a image buttons Shake and lock as shown in figure on url http://www.urbanspoon.com/spin-widget
My requirement is:
1. When I click on Shake image the Spinner will dynamically scroll and select some random values. The spinner is configured in the above for loop so I try to call that function in the onclick event of Shake button and tried to control the spinner. But I failed to control the Scroll the Spinner.
2. In the same when I click on Lock image its relevant Spinner has to be locked and unlocked.

I tried in different ways but I Strucked to find a solution to those 2 functionalites. Please help me its urgent.
for reference please visit http://www.urbanspoon.com/spin-widget
Thanks in Advance......
Sep 20 '10 #1
0 1134

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: John Cosmas | last post by:
I've encountered a table that stores dates in Gregorian format so that the dates and time looks like straight integers that cannot be easily discrened as a date or time by just looking at it. I'm...
0
by: bungle | last post by:
Hi, Does anyone know how Reporting Services displays the spinning image while a report is being generated? I want to do something similar with CSV imports into SQL and was hoping to find out...
0
by: Cable | last post by:
Greetings, We have a production website, and within that website we have an 'Admin' section of the website. Two separate ASP.NET/C# web applications. Recently when trying to log into the admin...
6
by: benz | last post by:
I am trying to fork and exec a child by python. Additionally, I am attempting to have a spinning slash while the child is running. My code is as below: import sys, os, time def...
4
by: Daniel | last post by:
I've been asking around and reading but I cannot find a definitive answer. I have customers that need information from our calendar application. The data will come from SQL Server 2000. The...
1
by: SGT0349 | last post by:
Tasked with writing one of my first VB programs. Task is to read a CSV file and store it in a SQL data base file, then display in a grid format screen. Have created the SQL data base record (set up...
5
by: Markus Ernst | last post by:
Hello A class that composes the output of shop-related data gets some info from the main shop class. Now I wonder whether it is faster to store the info in the output class or get it from the...
0
by: Rico | last post by:
Hello, I know this sounds trivial or maybe even silly, but I'd like to replicate that little spinning green circle that Microsoft is using in their applications when a process is running? I'd...
1
by: sjambok | last post by:
I've done it before... on a different site. Set up all the test enviorns I could... no change, no clue. No .htaccess to block any transactions.. at least what I could see up to the root level. ...
3
by: elyfrank | last post by:
Hi guys, Anybody knows how to get rid of Item remaining at the bottom of the page and the Internet explorer tab spinning at the top? I can't find the problem. These are the two pages I have the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.