Bind RadSlider with Database

4 posts, 0 answers
  1. Naveed
    Naveed avatar
    5 posts
    Member since:
    Nov 2008

    Posted 06 Jan 2009 Link to this post


    i want to bind RadSlider from database value,
    so how can i bind the RadSlider from Database value.
  2. cbospikes
    cbospikes avatar
    16 posts
    Member since:
    May 2007

    Posted 08 Jan 2009 Link to this post

    try this:

    For Each row As DataRow In futureSegmentsdt.Rows

                        Dim it As New RadSliderItem
                        With it
                            .Value = row.Item("ROUTESEGMENT_GUID").ToString()
                            .Text = row.Item("ROUTESEGMENT_ORIGINDATE").ToString()
                        End With


    This will bind the radslider item values and text

    If you then need to set the value of the radslider to one of the existing radslideritems use this :

    If Not sli.Items.FindItemByValue(routesegmentid) Is Nothing Then
                            sli.Value = sli.Items.FindItemByValue(routesegmentid).Index
    End If

  3. DevCraft R3 2016 release webinar banner
  4. sumanth
    sumanth avatar
    11 posts
    Member since:
    Feb 2009

    Posted 17 Mar 2009 Link to this post


    Plz tell me how to write the same in C# Code

    Thank In Advance
  5. Tsvetie
    Tsvetie avatar
    1517 posts

    Posted 17 Mar 2009 Link to this post

    Please refer to our How to create a RadSliderItem for each record in a DataTable online article for information on databinding a RadSlider and code sample both in VB and C#.

    Kind regards,
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top