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

How to disable CommandItemDisplay in the server side?

3 Answers 155 Views
Grid
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 09 Jul 2008, 04:03 AM
Hello.I want to disable commandItem on the server side.
When the person have the permission of edit,the commandItem on the top display. When the person do not have the permission of edit,the commanditem do not display.

3 Answers, 1 is accepted

Sort by
0
John
Top achievements
Rank 1
answered on 09 Jul 2008, 04:09 AM
I play a RadGrid in the usecontrol. When the person haven't the permission of edit, set property 
RadGrid1.MasterTableView.CommandItemDisplay = GridCommandItemDisplay.None; 
        
But it doesn't work.
Why this happen?
0
John
Top achievements
Rank 1
answered on 09 Jul 2008, 04:29 AM
I find the solution. We should set CommandItemDisplay property Value before RadGrid Bind metho called.
0
Shinu
Top achievements
Rank 2
answered on 09 Jul 2008, 05:19 AM
Hi John,

You can also refer the following help document links which explain more about the CommandItem in RadGrid.
Overview
Command item template

Shinu.
Tags
Grid
Asked by
John
Top achievements
Rank 1
Answers by
John
Top achievements
Rank 1
Shinu
Top achievements
Rank 2
Share this question
or