disable (or hide) pager controls

3 posts, 0 answers
  1. Bruce
    Bruce avatar
    33 posts
    Member since:
    Oct 2006

    Posted 25 Mar 2009 Link to this post

    I want to disable (or hide) pager controls (for example, when a user edits a record (or adds a new record)).

    How do I do this on the server-side w vb code?
  2. Daniel
    Admin
    Daniel avatar
    4945 posts

    Posted 25 Mar 2009 Link to this post

    Hello Bruce,

    Test the following code-snippet:
    Protected Sub RadGrid1_PreRender(sender As Object, e As EventArgs) 
        If RadGrid1.EditIndexes.Count > 0 OrElse RadGrid1.MasterTableView.IsItemInserted Then 
            For Each item As GridItem In RadGrid1.MasterTableView.GetItems(GridItemType.Pager) 
                item.Enabled = False 
            Next 
        End If 
    End Sub 

    Let us know if you have more questions.

    Best regards,
    Daniel
    the Telerik team

    Check out Telerik Trainer , the state of the art learning tool for Telerik products.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Bruce
    Bruce avatar
    33 posts
    Member since:
    Oct 2006

    Posted 26 Mar 2009 Link to this post

    Just what I was looking for - thanks!
Back to Top