Quantcast
Channel: AjaxControlToolkit Work Item Rss Feed
Viewing all articles
Browse latest Browse all 4356

Commented Unassigned: ChangedText event firing when setting Text in behind code [28014]

$
0
0
Is there a way to set the sliders value without the TextChanged event firing?

I only need this to fire when a user actually moves the slider, and not when the value is changed by the behind code.
Comments: Thank you for your FAST reply! I am basically using the DEMO code you provide as an example. The only way I can see to set the Sliders Position or Value is to set the Textbox.text property. My project is quite LARGE, so here is a quick breakdown: I am using the slider to Display and set the Dim value of a Lighting Control device. During Page_Load, I obtain the current setting from the device and set the slider: ``` string curVal = GetDimDevicelevel("Livingroom", "A2").ToString(); Slider1.text = curVal; ``` Then, say I change the Dimmer at the control device. (Not using the slider) When the screen refreshes, it tries to change the Text of the slider. (Which I need it to do) But, this also causes the TextChanged event to execute. (I do NOT want) It would be nice to have another event added to the Slider, maybe call it "HandleDragComplete". This would fire only after the slider has been moved and then the mouse was released. This would allow users to set the sliders value and move the sliders position without firing an event. Then instead of TextChanged, users would use the new event to handle Slider changes.

Viewing all articles
Browse latest Browse all 4356

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>