This is a migrated thread and some comments may be shown as answers.

ItemCommandDisplay problem

1 Answer 32 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Andy Green
Top achievements
Rank 1
Andy Green asked on 08 Feb 2010, 12:56 PM
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

1 Answer, 1 is accepted

Sort by
0
Accepted
Daniel
Telerik team
answered on 08 Feb 2010, 05:31 PM
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.
Tags
Grid
Asked by
Andy Green
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or