or
<telerik:RadGrid ID="grdPPExceptions" runat="server" GridLines="None" AllowPaging="True" AllowAutomaticUpdates="true" AllowAutomaticDeletes="false" AllowAutomaticInserts="false" AllowSorting="True" AutoGenerateColumns="False" AllowMultiRowEdit="false"> <MasterTableView CommandItemDisplay="none" AllowSorting="true" TableLayout="Fixed" AllowMultiColumnSorting="false" EditMode="InPlace" AutoGenerateColumns="false" NoMasterRecordsText="No Positive Pay exceptions today." DataKeyNames="AcctNo,ExceptionID"> <Columns> <telerik:GridDropDownColumn DataField="AcctNo" HeaderText="Account" DataType="System.Int64" UniqueName="AcctNo" SortExpression="AcctNo" DataSourceID="odsPPAccounts" Visible="false" ListTextField="DisplayNameAcct" ListValueField="FullAcctNo" CurrentFilterFunction="EqualTo"> <FilterTemplate> <telerik:RadComboBox ID="cboAcctNoFilter" runat="server" DataSourceID="odsPPAccounts" DataTextField="DisplayNameAcct" DataValueField="FullAcctNo" AppendDataBoundItems="true" SelectedValue='<%# CType(Container, GridItem).OwnerTableView.GetColumn("AcctNo").CurrentFilterValue %>' OnClientSelectedIndexChanged="cboAcctNoFilter2_SelectedIndexChanged" Width="140px"> <Items> <telerik:RadComboBoxItem Text="(No Filter)" /> </Items> </telerik:RadComboBox> </FilterTemplate> <HeaderStyle Width="160px" HorizontalAlign="Center" /> </telerik:GridDropDownColumn> </Columns> <DetailTables> <telerik:GridTableView CommandItemDisplay="None" AllowSorting="true" TableLayout="Fixed" AllowMultiColumnSorting="false" EditMode="InPlace" AutoGenerateColumns="false" NoDetailRecordsText="No Positive Pay exceptions for this account today."> <ParentTableRelation> <telerik:GridRelationFields MasterKeyField="AcctNo" DetailKeyField="ExceptionID" /> </ParentTableRelation> <Columns> <telerik:GridNumericColumn DataField="SerialNo" HeaderText="Serial No." DataType="System.Int32" UniqueName="SerialNo" SortExpression="SerialNo" ColumnEditorID="gceSerialNo" AllowFiltering="false"> <HeaderStyle Width="90px" HorizontalAlign="Center" /> <ItemStyle HorizontalAlign="Right" /> </telerik:GridNumericColumn> <telerik:GridNumericColumn DataField="Amount" HeaderText="Amount" DataType="System.Decimal" UniqueName="Amount" SortExpression="Amount" ColumnEditorID="gceAmount" NumericType="Currency" AllowFiltering="false"> <HeaderStyle Width="90px" HorizontalAlign="Center" /> <ItemStyle HorizontalAlign="Right" /> </telerik:GridNumericColumn> </Columns> </telerik:GridTableView> </DetailTables> </MasterTableView></telerik:RadGrid>button.Attributes.Add("href", "#")
on the ItemDataBound event, but it still does a post back.<telerik:RadAjaxManager runat="server" ID="RadAjaxManager1" OnAjaxRequest="RadAjaxManager1_AjaxRequest" ClientEvents-OnRequestStart="RequestStart" ClientEvents-OnResponseEnd="ResponseEnd"> <AjaxSettings> <telerik:AjaxSetting AjaxControlID="FavouritesMenu"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="FavouritesMenu" /> <telerik:AjaxUpdatedControl ControlID="RadGrid1" /> <telerik:AjaxUpdatedControl ControlID="StatusBarLabel" /> </UpdatedControls> </telerik:AjaxSetting> </AjaxSettings></telerik:RadAjaxManager> <telerik:RadContextMenu ID="Menu" runat="server" DefaultGroupSettings-OffsetX="500" Flow="Vertical" OnItemClick="Menu_ItemClick" Skin="Office2007"> <Items> <telerik:RadMenuItem Text="Add" Value="Add"> </telerik:RadMenuItem> <telerik:RadMenuItem Style="left: 790px; top: 130px" Text="Remove" Value="Remove"> </telerik:RadMenuItem> </Items> <ExpandAnimation Type="None" /> <CollapseAnimation Type="None" /> </telerik:RadContextMenu> <telerik:RadGrid ID="RadGrid1" runat="server" OnNeedDataSource="RadGrid1_NeedDataSource" enableajax="true" ShowGroupPanel="True" Width="100%" AllowSorting="True" AllowMultiRowSelection="True" OnCreateColumnEditor="RadGrid1_CreateColumnEditor" Height="100%" Skin="Vista" OnUpdateCommand="RadGrid1_UpdateCommand" OnDeleteCommand="RadGrid1_DeleteCommand" OnItemDataBound="RadGrid1_ItemDataBound" ClientSettings-ClientEvents-OnRowSelecting="RestrictSelect" PageSize="50" AllowCustomPaging="True" AllowPaging="true"> </telerik:RadGrid>