Persist CheckBox When Paging With RadSlider

3 posts, 0 answers
  1. omer
    omer avatar
    65 posts
    Member since:
    Nov 2010

    Posted 08 Mar 2012 Link to this post


    Hello!

    I have a GridView which paging with RadSlider. Also my GridView has pager. From my gridview i resolve paging using "OnPageIndexChanging". But when i checked CheckBoxes in my GridView and then sliding my slider, selected checkboxes are clearing.
    is theere any way to persist checkboxes when paging with slider? 

    using sql data source for binding data to my gridview and my slider markup is like this

    <telerik:RadSlider runat="server" ID="RadSlider3" IsSelectionRangeEnabled="true"
        SelectionStart="0" SelectionEnd="5" SmallChange="0.01"  
        MinimumValue="0.01" MaximumValue="5.00"
        AutoPostBack="true" OnClientValueChanging="OnClientValueChanging3"
        OnClientSlideStart="OnClientSlideStart3" OnClientSlideEnd="OnClientSlideEnd3"
        ShowDecreaseHandle="false" ShowIncreaseHandle="false" EnableEmbeddedSkins="False"
        Skin="Custom" Height="60px" Width="220px" ThumbsInteractionMode="Push" 
        style="margin-left: 10px"     />



    any help?

    Regards
  2. Slav
    Admin
    Slav avatar
    1356 posts

    Posted 13 Mar 2012 Link to this post

    Hello Omer,

    Please provide a more detailed description of your implementation since currently I am mostly guessing as to what your setup is. I noticed that you have configured the RadSlider with a range, which is more suitable for filtering the GridView, as usually only one sliding handle is used for paging the items. Is the provided code sample from your actual setup and are you using the RadSlider as a pager, or does it serve another purpose?

    Also, the described issue appears to be related to databinding of the GridView. I would suggest checking if the correct values are passed from your datasource to the checkboxes in the grid control and if this datasource is successfully updated when a checkbox is checked.

    Greetings,
    Slav
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. omer
    omer avatar
    65 posts
    Member since:
    Nov 2010

    Posted 14 Mar 2012 Link to this post

    Thank you for you response. 
    I am sorry for that couldnt explain my setup enougly. ) 
    Here is the second try.
    I have a GridView with CheckBox TemplateField.
    When user checkbox checking, CheckBoxCheckedChanged event firing some events and adding clicked row to another
    GridView. When unchecking events removing involved row from second GridView and unchecking primary gridview row.
    But i hade some changes in this codes. Added CheckBox templatefield like primary GridView to secondaryGW and when user checking row in second GridView, events removing this rows and uchecking involved row in primary GridView. 
    Codes basicly working like in this link before my changes.(data binding with sql data source in aspx page. not in page load)
     http://archive.aspsnippets.com/demos/CopyRowsFromOneGridViewtoAnother.aspx 

    By the way radSliders (range sliders) filtering This Primary GridView results like in this example http://demos.telerik.com/aspnet-ajax/slider/examples/rangeslider/defaultcs.aspx

    I combined this 2 scripts and in new combined scripts when i checking rows in Primary GW everything working fine but when also sliding sliders for filtering GW clearing checked rows. How can i persist this checked rows also when sliding with sliders. 

    Thank you for your time and Thanks in advance. 

    Ömer


      edit : i solved my problem with this video. 
    http://www.youtube.com/watch?v=wYBLJ5vqikg 


    Thank you 
Back to Top