Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
625
WebTextEdit not working with AJAX Slider Extender
posted

I am trying to use the AJAX Slider extender with a WebTextEditor, mainly because I wished to capture the client side event 'TextChanged'.

However the control does not seem to be working. I have the following code in my page

<igtxt:WebTextEdit ID="txtSliderValue3" runat="server" BorderColor="Black" BorderStyle="Inset"

BorderWidth="1px" Font-Names="Times New Roman" Font-Bold="true" Font-Size="8pt"

ReadOnly="true" Width="30px" Height="24px">

</igtxt:WebTextEdit>

<asp:TextBox ID="txtSliderValue2" runat="server" BorderColor="Black" BorderStyle="Inset"

BorderWidth="1px" Font-Names="Times New Roman" Font-Bold="true" Font-Size="8pt"

ReadOnly="true" Width="30px" Height="24px">

</asp:TextBox>

<br /><br />

<asp:TextBox ID="txtSlider2" runat="server" Width="40">

</asp:TextBox>

<cc2:SliderExtender ID="SliderExtender2" runat="server" TargetControlID="txtSlider2"

BoundControlID="txtSliderValue3"

Minimum="0" Maximum="100" Length="150" Steps="100" Orientation="Horizontal"

EnableHandleAnimation="true">

</cc2:SliderExtender>

When I set the BoundControlID of the SliderExtender to 'txtSliderValue2' (ordinary asp textbox) the slider value shows correctly as the slider is moved.

When I set the BoundControlID to 'txtSliderValue3' (Infragistics WebTextEditor) the slider value does not appear.

I am using NetAdvantage 8.1 with VS2008.

Any help appreciated.

Confused

Parents
No Data
Reply
  • 24497
    posted

    Hi,

    I guess your extender comes from toolkit or something like that and you probably have source code for it. The best way is to look how that extender is implemented. If it tries to find "target" as <input> with id equal to TargetControlID in order to set its "value", then it will not work with any of Infragistics editors. For WebTextEdit the "target" element could be actual <input> field (you should look at generated html to find its exact value) used by editor. However, if you (or extender, or whoever) modify "value" of that field directly, then you will not be able to get it back, it will be lost on postback or any other action (like focus, blur, etc).

    In order for extender to work with WebTextEditor, the extender should get reference to the javascript object of editor and use its member function setValue(newValue).

Children