ItemCommandDisplay problem

2 posts, 1 answers
  1. Andy Green
    Andy Green avatar
    120 posts
    Member since:
    Jul 2009

    Posted 08 Feb 2010 Link to this post

    Hi

    In the ItemCreated event of a RadGrid I have the fiollowing:

    Me

     

    .rgJobPlans.MasterTableView.CommandItemSettings.AddNewRecordText = "Add New Template"

     


    It works OK with the bar at the bottom, but now I would like to have the bar at the top, and the line doesn't work unless I hit the refresh icon.

    Whats going on?

    Andy
  2. Answer
    Daniel
    Admin
    Daniel avatar
    4946 posts

    Posted 08 Feb 2010 Link to this post

    Hello Andy,

    Please try this approach:
    Protected Sub Page_PreRender(sender As Object, e As EventArgs) Handles Me.PreRender
        If Not IsPostBack Then
            RadGrid1.MasterTableView.CommandItemSettings.AddNewRecordText = "Add New Template"
            RadGrid1.Rebind()
        End If
    End Sub

    Best regards,
    Daniel
    the Telerik team

    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
    Follow the status of features or bugs in PITS and vote for them to affect their priority.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top