or
<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" Height="120px" Width="680px"><telerik:RadRotator ID="RadRotator1" runat="server" Height="120px" Width="680px" ScrollDuration="500"
ScrollDirection="Right" FrameDuration="1500" ItemWidth="120px" ItemHeight="100px" RotatorType="AutomaticAdvance"DataSourceID="SqlDataSource1"><ItemTemplate><asp:Image ID="image1" runat="server" CssClass="image" ImageAlign="left" Visible="true"
ImageUrl='<%# String.Format("~/images/movies/{0}", DataBinder.Eval(Container.DataItem, "imagename")) %>' /></ItemTemplate> </telerik:RadRotator><asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:cinema mistakesConnectionString %>"SelectCommand="SELECT TOP 10 [imagename] FROM [movie] ORDER BY [mid] DESC"></asp:SqlDataSource> </telerik:RadAjaxPanel>Protected
Sub RadGridApprovers_ItemCommand(ByVal source As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles RadGridApprovers.ItemCommand
If e.CommandName = "Delete" Then
'do something
End If
End Sub
My question is: does the delete happen first or whatever commands I includein this function?
thank you
Recurrence Rule Text: DTSTART:20101124T173647Z DTEND:20000102T000000Z RRULE:FREQ=DAILY;UNTIL=20101130T000000Z;INTERVAL=1;BYDAY=MO,TU,WE,TH,FR Scheduled Dates 11/24/2010 5:36:47 PM 11/25/2010 5:36:47 PM 11/26/2010 5:36:47 PM 11/29/2010 5:36:47 PM
protected void Page_Load(object sender, EventArgs e) { this.RecurrenceEditor1.StartDate = Convert.ToDateTime("11/24/2010 5:36:47 PM"); this.RecurrenceEditor1.RecurrenceRuleText = "DTSTART:20101124T173647Z DTEND:20000102T000000Z RRULE:FREQ=DAILY;UNTIL=20101130T000000Z;INTERVAL=1;BYDAY=MO,TU,WE,TH,FR"; }<telerik:GridTemplateColumn DataField="rblLIST" HeaderText="rbl" UniqueName="rBL"> <EditItemTemplate> <asp:RadioButtonList ID="RadioButtonList1" runat="server" AutoPostBack = "true" onselectedindexchanged="RadioButtonList1_SelectedIndexChanged" RepeatDirection="Horizontal"> <asp:ListItem Text="Yes" Value="1"></asp:ListItem> <asp:ListItem Text="No" Value="2"></asp:ListItem> </asp:RadioButtonList> </EditItemTemplate> </telerik:GridTemplateColumn> <telerik:GridTemplateColumn DataField="CountryName" HeaderText="Country" UniqueName="CountryName"> <ItemTemplate> <asp:Label ID="Label3" runat="server" Text='<%# Eval("CountryName") %>'></asp:Label> </ItemTemplate> <EditItemTemplate> <telerik:RadComboBox ID="rcbCountries" runat="server" AutoPostBack="true" Skin="Vista" DataTextField="Name" DataValueField="CountryID"> </telerik:RadComboBox> </EditItemTemplate> </telerik:GridTemplateColumn>Hi there,
I have a page with RadSplitter which contains RadGrid and my custom user control (Footer) in two separate
RadPanes. I enabled ajax on the grid, but I would like to update the footer with ajax as well. In code
below I have tried inserting the footer id or the id of a panel that wraps the footer as ControlID in
AjaxUpdateControl tag. None of them worked and they even caused that the RadGrid doesn't work properly
(when I click on the next page button, it doesn't change the page, but loading icon is shown).
The footer user control contains only <%Reponse.Write(DateTime.Now);%>.
What am I missing?
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> <AjaxSettings> <telerik:AjaxSetting AjaxControlID="RadGrid"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="RadGrid" UpdatePanelHeight="100%" />
<telerik:AjaxUpdatedControl ControlID="***WhatShouldBeHere?***" UpdatePanelHeight="100%" /> </UpdatedControls> </telerik:AjaxSetting> </AjaxSettings> </telerik:RadAjaxManager> <telerik:RadSplitter ID="RadSplitter" runat="server" Orientation="Horizontal"> <telerik:RadPane ID="TitleRadPane" runat="server" Height="26px" > <!-- ...... --> </telerik:RadPane> <telerik:RadPane ID="ContentRadPane" runat="server" Scrolling="None"> <telerik:RadGrid ID="RadGrid" DataSourceID="MasterObjectDataSource" EnableLinqExpressions="false" OnUpdateCommand="UpdateGrid" OnInsertCommand="UpdateGrid" OnDeleteCommand="DeleteItem" runat="server"> <ClientSettings> <Scrolling AllowScroll="True" UseStaticHeaders="True" /> <Selecting AllowRowSelect="true" /> </ClientSettings> <MasterTableView CommandItemDisplay="Top" AllowSorting="true" DataSourceID="MasterObjectDataSource" AllowFilteringByColumn="True" IsFilterItemExpanded="False" DataKeyNames="Id"> <CommandItemTemplate> <!-- .... --> </CommandItemTemplate> <EditFormSettings UserControlName="AreaDetail.ascx" EditFormType="WebUserControl"> <EditColumn UniqueName="DummyEditColumnUniqueName"> </EditColumn> </EditFormSettings> <RowIndicatorColumn> <HeaderStyle Width="20px"></HeaderStyle> </RowIndicatorColumn> <ExpandCollapseColumn> <HeaderStyle Width="20px"></HeaderStyle> </ExpandCollapseColumn> <Columns> <!-- .... --> </Columns> </MasterTableView> <SelectedItemStyle Wrap="True" /> <SortingSettings SortedBackColor="" EnableSkinSortStyles="false" /> </telerik:RadGrid> </telerik:RadPane> <telerik:RadPane ID="FooterRadPane" runat="server" Height="100"> <asp:Panel ID="FooterPanel" runat="server"> <metTrade:Footer ID="Footer" runat="server"> </metTrade:Footer> </asp:Panel> </telerik:RadPane> </telerik:RadSplitter>Protected Overloads Overrides Sub OnPreRenderComplete(ByVal e As EventArgs) Dim menu As RadContextMenu = rgvSchedules.HeaderContextMenu
Dim item As New RadMenuItem() item.Text = "Paste Results" item.PostBack = True menu.Items.Add(item) MyBase.OnPreRenderComplete(e) End Subdtv = dst.Tables("SourceTable").DefaultView()dtv.Sort = sortstringDGrid.DataSource = dtv_stat
DGrid.DataBind()