Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > GridView > Bind only visible rows from GridViewRow in radgridview

Not answered Bind only visible rows from GridViewRow in radgridview

Feed from this thread
  • Ashwini avatar

    Posted on Feb 4, 2012 (permalink)

    Hi 

    I have one RadGridView and Bind 32 rows.
     <grid:GridViewColumn >
                                                <grid:GridViewColumn.Header>
                                                    <TextBlock   x:Name=" txtRead
    " telerikControls:LocalizationManager.ResourceKey="Write" MouseLeftButtonUp=" txtRead
    _MouseLeftButtonUp" Style="{StaticResource UnderlineStyle}"></TextBlock>
                                                </grid:GridViewColumn.Header>
                                                <grid:GridViewColumn.CellTemplate>
                                                    <DataTemplate>
                                                        <my:CustomCheckbox x:Name="tglBuswrite" CheckStatus="{Binding write}" IsThreeState="True" CheckStatusChanged="CustomCheckbox_CheckStatusChanged"></my:CustomCheckbox>
                                                    </DataTemplate>
                                                </grid:GridViewColumn.CellTemplate>
                                            </grid:GridViewColumn>

    code behind code:
    private void txtRead_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
     {
              
                IList<GridViewRow> list = Radgvcustom.ChildrenOfType<GridViewRow>();
    }
      Here I am getting only visible rows count 
    Please if u have any solution help me 


    Thanks 
    Ashwini..
      

    Reply

  • Maya Maya admin's avatar

    Posted on Feb 6, 2012 (permalink)

    Hi Ashwini,

    This would be the expected behavior since RadGridView is virtualized and only the visible visual elements are created. You can refer to our online documentation for a reference.
    The recommended approach is always to work with at data level in such cases (you can use Items collection of RadGridView). 

    Greetings,
    Maya
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>

    Reply

  • Ashwini avatar

    Posted on Feb 9, 2012 (permalink)

    hello maya,

    Thanks for your reply and I have one more problem
        
    here If I have Changed any selection mode like check, uncheck or none in check box in Radgridview. When I scroll up and down selection mode is changed. please do you have any solution for that?

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > GridView > Bind only visible rows from GridViewRow in radgridview
Related resources for "Bind only visible rows from GridViewRow in radgridview"

Silverlight Grid Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  ]