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


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



    .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?

  2. Answer
    Daniel avatar
    4949 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"
        End If
    End Sub

    Best regards,
    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.
Back to Top