or
Hi,
I would like to pop up the context menu when an image (Downward arrow in the screenshot) is left clicked in radgrid. Moreover, options in the context menu and its navigate url will vary for each row in grid. How would you implement such scenario? In all your examples, you just have one context menu for all the rows in grid. How do you dynamically populate the context menu based on some radgrid row data?
Thanks,
Prashanth

EnablePostBackOnRowClick
andEnableRowHoverStyle
.<telerik:RadAjaxPanel ID="LatePanel" runat="server" width="100%" height="300px" scrollbars="vertical" > <telerik:RadGrid ID="rgOustandingInv" runat="server" OnNeedDataSource="rgOustandingInv_NeedDataSource" EnableViewState="true" OnItemCommand="rgOustandingInv_ItemCommand" AllowFilteringByColumn="True" AllowSorting="True" PageSize="10" AllowPaging="True" EnableNoRecordsTemplate="true"> <MasterTableView Width="100%" CommandItemDisplay="Top" CommandItemSettings-ShowAddNewRecordButton="false" CommandItemSettings-ShowRefreshButton="false" AutoGenerateColumns="false" AllowFilteringByColumn="True" TableLayout="Auto" > <PagerStyle Mode="NextPrevNumericAndAdvanced" /> <CommandItemSettings ShowExportToWordButton="true" ShowExportToExcelButton="true" ShowExportToCsvButton="true" /> <Columns> <telerik:GridBoundColumn FilterControlWidth="105px" DataField="invoiceNo" HeaderText="Invoice No" SortExpression="invoiceNo" UniqueName="invoiceNo" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false"/> <telerik:GridBoundColumn FilterControlWidth="105px" DataField="amount" HeaderText="Amount" SortExpression="amount" UniqueName="amount" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false"/> <telerik:GridBoundColumn FilterControlWidth="105px" DataField="status" HeaderText="Invoice / Payment Status" SortExpression="status" UniqueName="status" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false"/> <telerik:GridDateTimeColumn FilterControlWidth="105px" DataField="schedPayDate" HeaderText="Scheduled Date of Payment" SortExpression="schedPayDate" UniqueName="schedPayDate" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false"/> <telerik:GridBoundColumn FilterControlWidth="105px" DataField="contractId" HeaderText="Contract" SortExpression="contractId" UniqueName="contractId" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false"/> <telerik:GridBoundColumn FilterControlWidth="105px" DataField="contractRelease" HeaderText="contractRelease" SortExpression="contractRelease" UniqueName="contractRelease" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false" Visible="false"/> <telerik:GridBoundColumn FilterControlWidth="105px" DataField="poNo" HeaderText="PO" SortExpression="poNo" UniqueName="poNbr" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false"/> <telerik:GridBoundColumn FilterControlWidth="105px" DataField="poRelease" HeaderText="poRelease" SortExpression="poRelease" UniqueName="poRelease" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false" Visible="false"/> <telerik:GridBoundColumn FilterControlWidth="105px" DataField="poRevision" HeaderText="PO" SortExpression="poRevision" UniqueName="poRevision" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false" Visible="false"/> </Columns> <NoRecordsTemplate> <div>There are no records to display</div> </NoRecordsTemplate> </MasterTableView> <ClientSettings EnablePostBackOnRowClick="true" EnableRowHoverStyle="true" /> </telerik:RadGrid> </telerik:RadAjaxPanel><%@ Page Language="VB" AutoEventWireup="false" %><%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" ><head id="Head1" runat="server"> <title>Test</title></head><body> <form id="form1" runat="server"> <asp:ScriptManager ID="ScriptManager2" runat="server" /> <asp:DetailsView ID="DetailsView1" runat="server" AutoGenerateRows="False" DataKeyNames="UName" DataSourceID="DetailsViewDataSource"> <Fields> <asp:TemplateField> <ItemTemplate> <telerik:RadComboBox runat="Server" ID="RadComboBox2" EmptyMessage="Select a User" DataSourceID="ComboBoxDataSource" DataValueField="Key" DataTextField="UName" Width="325px" EnableAutomaticLoadOnDemand="true" ItemsPerRequest="10" ShowMoreResultsBox="True" /> </ItemTemplate> </asp:TemplateField> </Fields> </asp:DetailsView> <asp:SqlDataSource ID="ComboBoxDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:MyConnectionString %>" ProviderName="System.Data.SqlClient" SelectCommand="Select UName, Key From User" > </asp:SqlDataSource> <asp:SqlDataSource ID="DetailsViewDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:MyConnectionString %>" ProviderName="System.Data.SqlClient" SelectCommand="SELECT UName From User WHERE Key = 1" > </asp:SqlDataSource> </form></body></html>
protected void TabSelected(object sender, EventArgs e) { if (tabStrip1.SelectedTab == Tab1) { Session["SessionData-AchFilter"] = "ALL"; tabStrip1.SelectedIndex = 0; } if (tabStrip1.SelectedTab == Tab2) { Session["SessionData-AchFilter"] = "NOT"; tabStrip1.SelectedIndex = 1; } if (tabStrip1.SelectedTab == Tab3) { Session["SessionData-AchFilter"] = "APP"; tabStrip1.SelectedIndex = 2; } if (tabStrip1.SelectedTab == Tab4) { Session["SessionData-AchFilter"] = "UNA"; tabStrip1.SelectedIndex = 3; } if (tabStrip1.SelectedTab == Tab5) { Session["SessionData-AchFilter"] = "REJ"; tabStrip1.SelectedIndex = 4; } }if (tabStrip1.SelectedTab == Tab1) { Session["SessionData-AchFilter"] = "ALL"; tabStrip1.SelectedIndex = 0; ForceDataReload(AchRadGridView); }'ForceDataReload(AchRadGridView);' worked when I was doing the same desired "refresh" on a basic button://protected void ALL_Click1(object sender, EventArgs e)//{// if (Globals.Page.IsValid)// {// Session["SessionData-AchFilter"] = "ALL";// ForceDataReload(AchRadGridView);// }//}<
telerik:RadComboBox ID="rcbItemName" runat="server" AllowCustomText="True" CausesValidation="False" MarkFirstMatch="True" />