Sliders in GridView

Last post 09-30-2009 4:03 PM by anuana2002. 4 replies.

Sort Posts:

  • Sliders in GridView

    12-14-2007, 6:43 AM
    • Participant
      1,221 point Participant
    • geoffHome
    • Member since 10-17-2003, 6:51 PM
    • Posts 346

     I'm experiencing a very odd behaviour.  It's odd to me at least.

    I've created a Gridview that gets populated with several rows from a database. 

    I have an ItemTemplate field that has at least 2 sliders included.

    On first use I get several rows all displaying the the 2 sliders per row of the GridView.

    However after I start Debugging only the first row of the GridView shows the Sliders and all subsequent rows have blank slider templates.  This remains the case from then on.

    Anyone got any idea why this is happening.  I apologise but this probably is only meaningful to someone else who may have experienced it.

     <code>

     <ItemTemplate>
                           
                                        <asp:TextBox ID="Slider3" runat="server"/>
                                        <asp:TextBox ID="Slider3_BoundControl" runat="server" Width="20"/>
                                   
                            <cc1:SliderExtender ID="SliderExtender3" runat="server"
                                BehaviorID="Slider3"
                                TargetControlID="Slider3"
                                BoundControlID="Slider3_BoundControl"
                                Orientation="Horizontal"
                                EnableHandleAnimation="true"
                                TooltipText="Slider: value {0}. Please slide to change value."
                                Maximum="7"
                                Minimum="0" />

    </code> 

     

  • Re: Sliders in each Gridview row

    05-19-2009, 8:37 PM
    • Member
      8 point Member
    • johnson12345
    • Member since 05-16-2009, 9:04 PM
    • Posts 10

    I'm having the same problem trying to include 1 slider extender in every row of the gridview.  Only the first row of the gridview renders the slider control and the remaining rows show textboxes where the slider show be.  Any ideas?

     

    <ItemTemplate>

    <asp:Label ID="TextBox1" runat="server" Text='<%# Bind("priority") %>'></asp:Label>

    <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>

    <cc1:SliderExtender ID="SliderExtender1" runat="server" BehaviorID="TextBox2" TargetControlID="TextBox2"

    BoundControlID="TextBox1" Orientation="Horizontal" EnableHandleAnimation="True"

    TooltipText="Set Priority Between 1-100">

    </cc1:SliderExtender>

    </ItemTemplate>

  • Re: Sliders in each Gridview row

    05-25-2009, 7:59 PM
    • Member
      8 point Member
    • johnson12345
    • Member since 05-16-2009, 9:04 PM
    • Posts 10
    Does anyone any ideas about this?  Thanks!
  • Re: Sliders in GridView

    09-30-2009, 10:48 AM
    • Member
      6 point Member
    • anuana2002
    • Member since 09-30-2009, 10:47 AM
    • Posts 6

    I am also having the same trouble. Has anyone figured out yet? Please help.


  • Re: Sliders in GridView

    09-30-2009, 4:03 PM
    • Member
      6 point Member
    • anuana2002
    • Member since 09-30-2009, 10:47 AM
    • Posts 6

    The problem is solved by removing BehaviorID="txtRatings" from the declaration.Cool

Page 1 of 1 (5 items)