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

[Solved] EditCommand and DeleteCommand event fires

2 Answers 194 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ken
Top achievements
Rank 1
Ken asked on 17 Apr 2008, 10:46 AM

Hi,

 

I do not understand why these events are firing for my grid when all of my columns are read only and I am not using GridEditCommandColumn or GridDeleteCommandColumn

<Columns>

 <telerik:GridButtonColumn CommandName="Edit" Text="Edit" UniqueName= "EditColumn"></telerik:GridButtonColumn>

 <telerik:GridButtonColumn CommandName="Delete" Text="Delete" UniqueName= "DeleteColumn"></telerik:GridButtonColumn>

 <telerik:GridBoundColumn DataField="CustomerID" ReadOnly="true" ></telerik:GridBoundColumn>

 <telerik:GridBoundColumn DataField="CompanyName" ReadOnly="true" ></telerik:GridBoundColumn>

 <telerik:GridBoundColumn DataField="ContactName" ReadOnly="true" ></telerik:GridBoundColumn>

 <telerik:GridBoundColumn DataField="ContactTitle" ReadOnly="true" ></telerik:GridBoundColumn>

 </Columns>

Thanks

Ken

2 Answers, 1 is accepted

Sort by
0
Konstantin Petkov
Telerik team
answered on 18 Apr 2008, 10:23 AM
Hi Ken,

Do you mean the Command events? You have included Button columns with respective CommanName-s which is causing the events to be fired.

Regards,
Konstantin Petkov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Ken
Top achievements
Rank 1
answered on 18 Apr 2008, 10:54 AM
HI Konstantin,

Thanks.

I think it is a bit unusual for the event to be fired (_DeleteCommand, _EditCommand) by just naming a GridButtonColumn Delete or Edit!

But now I know

Great Support


Ken
Tags
Grid
Asked by
Ken
Top achievements
Rank 1
Answers by
Konstantin Petkov
Telerik team
Ken
Top achievements
Rank 1
Share this question
or