-
6 Nov 2012 1:26 PM #1
ExtJS Custom Scrollbars
ExtJS Custom Scrollbars
Hi all,
I'm fairly new to Ext JS and have been getting stuck trying to customize the scrollbar. I know there have been a few threads relating to this topic before, but they don't really have any concrete examples. I found this port of ScrollPane here: http://www.sencha.com/forum/showthre....ux.ScrollPane, and tried using that in a render listener, however, the scrollbar does not change at all. Is it due to compatibility issues since I'm working in Ext JS 4 whereas the original port was written for an earlier version? I've also tried using the jQuery version of ScrollPane to no avail.
Does anyone have any experience getting custom scrollbars to work in Ext JS? Any help would be greatly appreciated!
Thanks!
-
8 Nov 2012 7:53 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,714
- Vote Rating
- 436
Why not take that code and change it to work with 4.x then?
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.
-
8 Nov 2012 9:32 AM #3
I wish I knew how. I am starting to look into it though. Going to try to understand the logic behind the code first. I just realized as well, should I have posted this under questions instead?
-
8 Nov 2012 3:13 PM #4
Updating on my progress:
I have been able to successfully add jScrollPane scrollbars via jQuery by runningin the Firebug console.Code:$(function(){ $('.x-grid-view').jScrollPane(); });
However, certain issues are coming up. Some of my grids turn blank upon function execution. One other problem is I'm not sure where exactly to call the code in Ext JS. I've tried using listener with afterrender, render, as well as afterlayout to no avail. Does anyone have experience integrating jScrollPane/jQuery with Ext JS?
Thanks!


Reply With Quote