How to add MultihadleSlider to .ascx page

Last post 07-17-2009 1:24 AM by sumanlucid. 3 replies.

Sort Posts:

  • How to add MultihadleSlider to .ascx page

    05-19-2009, 12:38 AM
    • Member
      36 point Member
    • sabarishbabu
    • Member since 08-01-2008, 3:59 PM
    • Posts 77

    Hi,

    1.This works like a dream when written inside an .aspx page. When segemented into an .ascx control (for greater flexibility), I am not able to move the handle. The code is identical (scriptmanager component only included once).

    2.Its possible to add MultiHandleSlider to .ascx page?.

    Thanks

    Sabarish

  • Re: How to add MultihadleSlider to .ascx page

    05-19-2009, 2:35 AM
    Answer
    • All-Star
      30,408 point All-Star
    • HeartattacK
    • Member since 01-08-2007, 5:53 PM
    • Dhaka, Bangladesh
    • Posts 3,280
    • Moderator

    This is my user control code that's working:

     

    <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="test.ascx.cs" Inherits="SchmitsList.controls.test" %>
    <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc21" %>
    <table>
        <tr valign="middle">
            <td>
                <asp:TextBox ID="multiHandle2_1_BoundControl" runat="server" Width="30" Text="25" />
            </td>
            <td valign="top">
                <asp:TextBox ID="sliderTwo" runat="server" Style="display: none;" />
                <cc21:MultiHandleSliderExtender ID="multiHandleSliderExtenderTwo" runat="server"
                    BehaviorID="multiHandleSliderExtenderTwo" TargetControlID="sliderTwo" Minimum="0"
                    Maximum="100" Length="175" TooltipText="{0}" Orientation="Vertical" EnableHandleAnimation="true"
                    EnableKeyboard="false" EnableMouseWheel="false" ShowHandleDragStyle="true" ShowHandleHoverStyle="true">
                    <MultiHandleSliderTargets>
                        <cc21:MultiHandleSliderTarget ControlID="multiHandle2_1_BoundControl" />
                        <cc21:MultiHandleSliderTarget ControlID="multiHandle2_2_BoundControl" />
                    </MultiHandleSliderTargets>
                </cc21:MultiHandleSliderExtender>
            </td>
            <td style="padding-left: 21px">
                <asp:TextBox ID="multiHandle2_2_BoundControl" runat="server" Width="30" Text="75" />
            </td>
        </tr>
    </table>

     

    Note the second line where I registert the toolkit.

    All that glitters is gold-
    Only shooting stars break the mold.

    Read my blog: www.heartysoft.com

    Tell me what tutorials / articles / videos you want to see on my site.
  • Re: How to add MultihadleSlider to .ascx page

    05-19-2009, 3:36 AM
    • Member
      36 point Member
    • sabarishbabu
    • Member since 08-01-2008, 3:59 PM
    • Posts 77

    Hi,

    Thank you for your reply. its work for me.

    Thanks

    Sabarish

  • Re: How to add MultihadleSlider to .ascx page

    07-17-2009, 1:24 AM
    • Member
      17 point Member
    • sumanlucid
    • Member since 02-09-2009, 1:18 AM
    • Posts 16

    Hai it will work if we use only one usercontrol in a webpage try using the same user control again in ur webpage it won  work... its because the behavior id set will not differ if any number of user controls are dervied ... actually behavior id is just a clientID it will change... it has a fix in toolkit only... i hav posted the patch in forums use it all multihandle slider problems will be addressed in that patch


    SumanRaj
Page 1 of 1 (4 items)