Hi,
I have a simple Grid with a gridTemplateColumn with inside 2 asp imageButton who perform specific action.
When i click on this button appear in the grid the auto-generated edit form.
How can i disable this ?
I try to put in the RadGrid definition and in the MasterTableView AllowAutomaticInserts to false but without result.
Here is the definition of my Grid:
Any idee?
Thanks.
Edwin.
I have a simple Grid with a gridTemplateColumn with inside 2 asp imageButton who perform specific action.
When i click on this button appear in the grid the auto-generated edit form.
How can i disable this ?
I try to put in the RadGrid definition and in the MasterTableView AllowAutomaticInserts to false but without result.
Here is the definition of my Grid:
<telerik:RadGrid ID="RadGrid1" CssClass="grid" runat="server" Skin="Office2007" |
GridLines="None" PageSize="10" Height="300px" OnNeedDataSource="RadGrid1_OnNeedDataSource" |
AutoGenerateColumns="false" ShowFooter="true" AllowAutomaticUpdates="false" |
AllowAutomaticInserts="false" AllowAutomaticDeletes="false" AutoGenerateEditColumn="false"> |
<MasterTableView TableLayout="Fixed" ClientDataKeyNames="AddressID" AutoGenerateColumns="false" |
Width="100%" AllowAutomaticUpdates="false" AllowAutomaticInserts="false" AllowAutomaticDeletes="false"> |
<Columns> |
<telerik:GridBoundColumn DataField="AddressId" HeaderText="Id" AllowFiltering="false"> |
<HeaderStyle HorizontalAlign="Left" Width="20" /> |
<ItemStyle HorizontalAlign="Left" Width="20" /> |
</telerik:GridBoundColumn> |
<telerik:GridBoundColumn DataField="Name" HeaderText="Naam"> |
<ItemStyle HorizontalAlign="Left" /> |
</telerik:GridBoundColumn> |
<telerik:GridBoundColumn DataField="AddressTypeObj.Name" HeaderText="Adres type"> |
<ItemStyle HorizontalAlign="Left" /> |
</telerik:GridBoundColumn> |
<telerik:GridTemplateColumn UniqueName="TemplateActions" AllowFiltering="false"> |
<HeaderTemplate> |
<table border="0" cellpadding="0" cellspacing="0"> |
<tr> |
<td colspan="3" align="center"><p>Acties</p></td> |
</tr> |
</table> |
</HeaderTemplate> |
<ItemTemplate> |
<table border="0" cellpadding="0" cellspacing="0" width="100%"> |
<tr> |
<td style="width:50%; border:0px; text-align:center;"> |
<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server"> |
<asp:ImageButton ImageUrl="../Images/edit.gif" AlternateText="Editeren" CausesValidation="false" runat="server" ID="btn_Edit" OnClick="Edit_OnClick" CommandName="Edit" CommandArgument='<%#Eval("AddressId") %>' /> |
</telerik:RadCodeBlock> |
</td> |
<td style="width:50%; border:0px; text-align:center;"> |
<telerik:RadCodeBlock ID="RadCodeBlock2" runat="server"> |
<asp:ImageButton ImageUrl="../Images/recyclebin.gif" AlternateText="Verwijderen" CausesValidation="false" runat="server" ID="btn_Delete" OnClick="Delete_OnClick" CommandName="Edit" CommandArgument='<%#Eval("AddressId") %>' /> |
</telerik:RadCodeBlock> |
</td> |
</tr> |
</table> |
</ItemTemplate> |
<ItemStyle HorizontalAlign="Center" /> |
<HeaderStyle HorizontalAlign="Center" /> |
</telerik:GridTemplateColumn> |
</Columns> |
</MasterTableView> |
<PagerStyle Mode="NextPrevAndNumeric" NextPageText="Volgende pagina" PrevPageText="Vorige pagina" NextPagesToolTip="Volgende pagina" PrevPagesToolTip="Vorige pagina" PagerTextFormat="Pagina: {4} Pagina {0} tot {3} op {5}" /> |
</telerik:RadGrid> |
Any idee?
Thanks.
Edwin.