I have this thing in my grid view
<ItemTemplate>
<asp:ImageButton ID="ImageButton1" runat="server" AlternateText="Delete Customer"
OnClientClick="javascript:if(!confirm('This action will move the selected employee to his source store . Are you sure?')){return false;}"
CausesValidation="false"
OnClick = "RadGrid1_ItemDeleted1"
CommandName="Delete"
CommandArgument='<%# Eval("EmployeeNumber") %>'
ImageUrl="~/_Layouts/delete/images.jpg" />
</ItemTemplate>
Now in the click event how to I get the row for which the delete was clicked.
<
telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="true" PageSize="100" OnPageIndexChanged="RadGrid1_PageIndexChanged">
<MasterTableView CommandItemDisplay="TopAndBottom" PagerStyle-Position="TopAndBottom"
AutoGenerateColumns="true">
<ItemStyle Wrap="True" />
<HeaderStyle Wrap="False" Width="200px" />
<FilterItemStyle Wrap="False" />
<PagerStyle Mode="NextPrevAndNumeric" />
<CommandItemTemplate>
<telerik:RadMenu ID="RadOptionsMenu" runat="server" ClickToOpen="false"
EnableRoundedCorners="true" EnableShadows="true"
OnItemClick="RadOptionsMenu_Clicked"
Skin="Vista">
<CollapseAnimation Duration="200" Type="OutQuint" />
<Items>
<telerik:RadMenuItem AccessKey="x" CssClass="MenuText" Text="Export">
<Items>
<telerik:RadMenuItem runat="server" Text="Excel">
</telerik:RadMenuItem>
</Items>
</telerik:RadMenuItem>
</Items>
</telerik:RadMenu>
<table width="100%">
<tr>
<td style="height: 10px;">
</td>
</tr>
</table>
</CommandItemTemplate>
</MasterTableView>
<ClientSettings>
</ClientSettings>
</telerik:RadGrid>
RadAjaxPanel also.
Please help me.
Thanks
Ratheesh
protected void makeStockChart() { RadChart stockChart = new RadChart(); stockChart.ChartTitle.Visible = false; stockChart.Appearance.Border.Visible = false; stockChart.Legend.Appearance.Visible = false; stockChart.PlotArea.YAxis.Appearance.Visible = Telerik.Charting.Styles.ChartAxisVisibility.False; stockChart.PlotArea.Appearance.FillStyle.MainColor = System.Drawing.Color.White; stockChart.PlotArea.Appearance.FillStyle.SecondColor = System.Drawing.Color.White; stockChart.PlotArea.Appearance.Border.Color = System.Drawing.Color.White; // Create a ChartSeries and assign its name and chart type ChartSeries chartSeries = new ChartSeries(); chartSeries.Name = "Count"; chartSeries.Type = ChartSeriesType.Bar; // Open SQL Connection SqlConnection connection = new SqlConnection(ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString); connection.Open(); SqlCommand command = new SqlCommand("GetStockData", connection); command.CommandType = CommandType.StoredProcedure; SqlDataReader reader = command.ExecuteReader(); while (reader.Read()) { // Pretty up the value string value = string.Format("{0:d}", (reader.GetValue(1))); // Set value and value text ChartSeriesItem chartSeriesItem = new ChartSeriesItem(Convert.ToDouble(reader.GetValue(1)), value); chartSeriesItem.Name = reader.GetValue(0).ToString(); chartSeries.AddItem(chartSeriesItem); } // Close SQL Connection connection.Close(); // add the series to the RadChart Series collection stockChart.Series.Add(chartSeries); // add the RadChart to the page. this.stockChart.Controls.Add(stockChart); }| <telerik:RadTimePicker ID="RadTimePicker1" Skin="mySkin" EnableEmbeddedSkins="false" runat="server" > |
| <TimeView runat="server" StartTime="07:00:00" EndTime="20:00:10" /> |
| </telerik:RadTimePicker> |
| /*time view*/ |
| table.RadCalendarTimeView_mySkin |
| { |
| border-collapse:separate; |
| border:1px solid #75b064; |
| background:#ffffff; |
| font:11px "segoe ui",arial,sans-serif; |
| } |
| .RadCalendarTimeView_mySkin th |
| { |
| border:0; |
| border-bottom:1px solid #a8cf9d; |
| padding:0 0 1px; |
| background:#caf2c2 0 -1000px repeat-x url('../_images/Calendar/sprite_green.gif'); |
| color:#006e0b; |
| text-align:center; |
| line-height:23px; |
| cursor:default; |
| font-weight:normal; |
| } |
| table.RadCalendarTimeView_mySkin td |
| { |
| border:0; |
| border-left:1px solid #acdb9c; |
| padding:2px 2px 3px; |
| } |
| table.RadCalendarTimeView_mySkin td:first-child |
| { |
| border-left:0; |
| } |
| .RadCalendarTimeView_mySkin a |
| { |
| display:block; |
| padding:2px 6px; |
| text-align:center; |
| color:#000000; |
| text-decoration:none; |
| } |
| .RadCalendarTimeView_mySkin td.rcSelected a |
| { |
| border:1px solid; |
| padding:1px 5px; |
| background:#fa83fc 0 -1700px repeat-x url('../_images/Calendar/sprite_green.gif'); |
| } |
| .RadCalendarTimeView_mySkin td.rcHover a |
| { |
| border:1px solid #299926; |
| color:#299926; |
| padding:1px 5px; |
| background:#ff80fd 0 -1600px repeat-x url('../_images/Calendar/sprite_green.gif'); |
| } |
| .RadCalendarTimeView_mySkin .rcFooter |
| { |
| border:0; |
| border-top:1px solid #75b064; |
| padding:0; |
| } |
<asp:UpdateProgress ID="updProgress" AssociatedUpdatePanelID="updPanel" runat="server"> <ProgressTemplate> <asp:Panel ID="progressPanel" runat="server" CssClass="IPUpdateProgress"> <table align="center"> <tr> <td align="center" valign="middle"> <asp:Label ID="lblUpdateInProgress" runat="server" CssClass="IPLabelText" Text="Update in progress..."></asp:Label> <asp:Image ID="imgGlobalProcessing" runat="server" ImageUrl="/Images/ajax-loader.gif" /> </td> </tr> </table> </asp:Panel> </ProgressTemplate></asp:UpdateProgress><asp:UpdatePanel runat="server" ID="updPanel" UpdateMode="Conditional" ChildrenAsTriggers="true"> <Triggers> <asp:AsyncPostBackTrigger ControlID="lnxbtnNew" EventName="Click" /> <asp:AsyncPostBackTrigger ControlID="drxlstSearch" EventName="SelectedIndexChanged" /> <asp:AsyncPostBackTrigger ControlID="tbxSelectedValue" EventName="TextChanged" /> </Triggers> <ContentTemplate> <telerik:RadWindow runat="server" ID="rwNewExport" Modal="true" Title="Create New Export" Skin="IP" EnableEmbeddedSkins="false" AutoSize="true" VisibleStatusbar="false"> <ContentTemplate> <table cellspacing="0" cellpadding="2" width="580px"> <tr> <td colspan="3"><asp:Label ID="lbxNewValidationError" CssClass="IPValidationError" runat="server"></asp:Label></td> </tr> <tr> <td> <asp:Label ID="Label111" runat="server" CssClass="IPLabelText">Export Country</asp:Label> </td> <td> <asp:DropDownList ID="drxlstNewExportCountry" runat="server" CssClass="IPDropDownList" Width="400px"> </asp:DropDownList> </td> <td rowspan="2"> <asp:LinkButton ID="lnxbtnSaveNew" runat="server" Style="padding-right: 4px; padding-left: 4px; padding-bottom: 4px; padding-top: 4px" CssClass="IPLinkButton">Go</asp:LinkButton> </td> </tr> <tr> <td> <asp:Label ID="Label112" runat="server" CssClass="IPLabelText">Import Country</asp:Label> </td> <td> <asp:DropDownList ID="drxlstNewImportCountry" runat="server" CssClass="IPDropDownList" Width="400px"> </asp:DropDownList> </td> </tr> <tr> <td colspan="3"> </td> </tr> <tr runat="server" id="rowTemplateHeader" class="IPGridHeader"> <td colspan="3"> <asp:Label ID="Label113" runat="server">Create New Export From Template</asp:Label> </td> </tr> <tr runat="server" id="rowTemplate"> <td> <asp:Label ID="Label114" runat="server" CssClass="IPLabelText">Template</asp:Label> </td> <td> <asp:DropDownList ID="drxlstTemplates" runat="server" CssClass="IPDropDownList" Width="400px"> </asp:DropDownList> </td> <td> <asp:LinkButton ID="lnxbtnSaveFromTemplate" runat="server" Style="padding-right: 4px; padding-left: 4px; padding-bottom: 4px; padding-top: 4px" CssClass="IPLinkButton">Go</asp:LinkButton> </td> </tr> </table> </ContentTemplate> </telerik:RadWindow> </ContentTemplate></asp:UpdatePanel>