-
19 Sep 2010 8:42 PM #1
scroll multiselect to selected item
scroll multiselect to selected item
hi everyone
I have a multiselect component in Ext js 3. I have a number of entries in it. Now i want to select an entry and scroll multiselect to make it visible to the user. I am able to select an entry but i cannot scroll multiselect.
I have used dataview component and i do this same function using following:
dataviewObj.container.dom.scrollTop = (42 * index);
but cannot implement this is multiselect.
Can someone please tell me how to achieve this with multiselect????
Thank you alot...regards
-
21 Sep 2010 5:03 AM #2Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- Frederick MD, NYC, DC
- Posts
- 16,170
- Vote Rating
- 32
Do you want to scroll all selected items into the view? This doesn't make sense to me. It breaks typical UI selection patterns.

Jay Garcia @ModusJesus || Modus Create co-founder
Ext JS in Action author
Sencha Touch in Action author
Get in touch for Ext JS & Sencha Touch Touch Training
We are also working on Video-based Sencha Touch training: Check it out here.
-
21 Sep 2010 2:21 PM #3
scroll to selected item in multiselect
scroll to selected item in multiselect
hi thanks for replying. I want to select an item (that i m doing with select() method). But I want to scroll to that item in multiselect. I am able to scroll dataview (dataviewObj.container.dom.scrollTop = (42 * index)
but how to scroll multiselect? as scrolltop doesn't work.
Is there any way to do this????
Regards
-
30 Sep 2010 2:30 PM #4
There is really no way to scroll multiselect programmatically ????????
Please somebody help...
-
30 Sep 2010 11:19 PM #5
-
3 Oct 2010 1:57 PM #6
hi thanks for replying.
I tried to implement this function before also but i still dont get any result.
I tried following:
Thanks alot for helpCode:var multiselect = msForm.items.items[0]; multiselect.view.select(15); multiselect.getEl().scrollIntoView();
Regards
-
3 Oct 2010 9:23 PM #7
And which scrollable element are you hoping that it will scroll to move that element into view??
Search the forum: http://www.google.com/coop/cse?cx=01...%3Az7of1ufqccu
Read the docs too: http://extjs.com/deploy/dev/docs/
Scope: http://extjs.com/forum/showthread.ph...642#post257642
-
3 Oct 2010 9:23 PM #8
And anyway, you are asking for the MULTISELECT to be scrolled into view. Read it!
Search the forum: http://www.google.com/coop/cse?cx=01...%3Az7of1ufqccu
Read the docs too: http://extjs.com/deploy/dev/docs/
Scope: http://extjs.com/forum/showthread.ph...642#post257642
-
4 Oct 2010 1:38 PM #9
hi animal thanks alot for help.... Sorry but i m not an expert in extjs.... i tried to add container in scrollIntoView() function like:
I am not sure whether i m trying correct or not. but can u please give an example or so. I tried to implement in multiselect-demo.html only but i dont get any result.Code:multiselect.getEl().scrollIntoView(multiselect.container, false);
Thanks alot for help
Regards
Similar Threads
-
Scroll to an selected Item in a List
By milo08 in forum Sencha Touch 1.x: DiscussionReplies: 8Last Post: 2 Dec 2012, 11:52 PM -
ux.MultiSelect ->Scroll Increment
By madirishman in forum Ext 3.x: Help & DiscussionReplies: 0Last Post: 5 May 2010, 10:42 AM -
Sort MultiSelect box by selected items
By hadi78 in forum Ext 3.x: Help & DiscussionReplies: 1Last Post: 14 Dec 2009, 2:58 PM -
[FIXED] Selected Tree Item not Shown as Selected After Reordering the Tree Item
By nyklogistics in forum Ext GWT: Bugs (2.x)Replies: 5Last Post: 26 Jun 2009, 2:42 AM -
How do i get the selected items (multiselect)
By Naokai in forum Ext 2.x: Help & DiscussionReplies: 1Last Post: 30 Mar 2009, 5:39 AM


Reply With Quote