View Full Version : Slider render to a panel in a window??

24 Mar 2011, 4:34 AM
I want to put a slider on a panel that'll be in a popup window, the code with the window works fine but once I started working with the slider and panel I get exceptions... I looked at the samples and found the slider, but I only found singleslider in the API and the only other difference is that in the sample the sliders are rendered to <div>... if that even makes a difference.

var mySlide = new Ext.slider.SingleSlider({
width: 200,
increment: 1,
minValue: 0,
maxValue: 10, // store.getCount

this.playerPanel = new Ext.Panel({
id: 'playerpanel',
layout: 'fit',
defaults: {xtype: 'button'},
items: [this.mySlide
text: 'Previous Step',
handler: function(){
alert("Move previous steps");
text: 'Next Step',
handler: function(){
alert("Move next step");

If I comment out this piece it'll work fine.
Any ideas??


24 Mar 2011, 5:09 AM
Can I add a renderto: in the slider and reference my panel? As simple as

renderTo: this.playerPanel,


24 Mar 2011, 5:29 AM
well that got rid of my error but now it doesn't show up... :-/

24 Mar 2011, 7:49 AM
If I try to render to mypanel.body it throws exception... nobody can help me out??!?

24 Mar 2011, 9:21 AM
Apparently it didn't like this.mySlide, mySlide works... (:|