This is a migrated thread and some comments may be shown as answers.

Rad List View is not returning automatically from Insert Mode to Edit Mode

2 Answers 91 Views
ListView
This is a migrated thread and some comments may be shown as answers.
Balageetha
Top achievements
Rank 1
Balageetha asked on 11 Aug 2014, 07:15 AM
Hi,

           I am using a Rad List View with the Layout Template,Item Template and EditItem Template...while clicking the Edit it is automatically switching to the EditItemTemplate,In the EditItemTemplate I have two buttons Update and Cancel when i click cancel it is automatically coming back to the Item Template  but when i click on the Update Button on the EditItemTemplate it is not returning back to the ItemTemplate. I have tried the solutions in the Forum but nothing worked fine.

          I have attached my code here.


 <rad:RadFormDecorator ID="RadFormDecorator1"  runat="server" EnableRoundedCorners="true" />
    <rad:RadSkinManager  ID="QsfSkinManager" runat="server" ShowChooser="false"></rad:RadSkinManager>
    <rad:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <rad:AjaxSetting AjaxControlID="rcmbchecklist">
                <UpdatedControls>
                    <rad:AjaxUpdatedControl ControlID="ListViewPanel" />
                </UpdatedControls>
            </rad:AjaxSetting>
             <rad:AjaxSetting AjaxControlID="rcmbchecklist">
                <UpdatedControls>
                    <rad:AjaxUpdatedControl ControlID="ListViewPanel" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </rad:AjaxSetting>
            <rad:AjaxSetting AjaxControlID="ListViewPanel">
                <UpdatedControls>
                    <rad:AjaxUpdatedControl ControlID="ListViewPanel" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </rad:AjaxSetting>
            <rad:AjaxSetting AjaxControlID="rcmblibrary">
                <UpdatedControls>
                    <rad:AjaxUpdatedControl ControlID="rcmbsection" />
                </UpdatedControls>
            </rad:AjaxSetting>
            <rad:AjaxSetting AjaxControlID="rcmbsection">
                <UpdatedControls>
                    <rad:AjaxUpdatedControl ControlID="rcmbchecklist" />
                </UpdatedControls>
            </rad:AjaxSetting>
            <rad:AjaxSetting AjaxControlID="rcmbchecklist">
                <UpdatedControls>
                    <rad:AjaxUpdatedControl ControlID="rlvsessionrecordings" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </rad:AjaxSetting>
            <rad:AjaxSetting AjaxControlID="rlvsessionrecordings">
                <UpdatedControls>
                    <rad:AjaxUpdatedControl ControlID="rlvsessionrecordings" LoadingPanelID="RadAjaxLoadingPanel1" />
                    <rad:AjaxUpdatedControl ControlID="RadWindowManager1" />
                </UpdatedControls>
            </rad:AjaxSetting>
            <rad:AjaxSetting AjaxControlID="btnadd">
                <UpdatedControls>
                    <rad:AjaxUpdatedControl ControlID="rlvsessionrecordings" LoadingPanelID="RadAjaxLoadingPanel1" />
                    <rad:AjaxUpdatedControl ControlID="lblMessage" />
                    <%-- <rad:AjaxUpdatedControl ControlID="hfdChecklistitem" />--%>
                    <rad:AjaxUpdatedControl ControlID="rtxtchecklistitem" UpdatePanelRenderMode="Inline" />
                </UpdatedControls>
            </rad:AjaxSetting>
            <rad:AjaxSetting AjaxControlID="rcmblibrary">
                <UpdatedControls>
                    <rad:AjaxUpdatedControl ControlID="rcmbsection" LoadingPanelID="RadAjaxLoadingPanel2" />
                </UpdatedControls>
            </rad:AjaxSetting>
            <rad:AjaxSetting AjaxControlID="rcmbsection">
                <UpdatedControls>
                    <rad:AjaxUpdatedControl ControlID="rcmbchecklist" LoadingPanelID="RadAjaxLoadingPanel2" />
                </UpdatedControls>
            </rad:AjaxSetting>
          
        </AjaxSettings>
    </rad:RadAjaxManager>
     <rad:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel2" runat="server" BackgroundPosition="Center" Skin="Silk" InitialDelayTime="0" MinDisplayTime="1000" Transparency="25"></rad:RadAjaxLoadingPanel>
    <rad:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" BackgroundPosition="Top" Skin="Silk" InitialDelayTime="0" MinDisplayTime="1000" Transparency="25">
    
    </rad:RadAjaxLoadingPanel>
    <asp:ValidationSummary ID="ValidationSummaryctrl" ShowMessageBox="true" ShowSummary="false"
        runat="server" HeaderText="The following error(s) have occurred:" />
    <asp:Label ID="lblMessage" runat="server" Font-Bold="true" ForeColor="Green" Style="font-weight: 500"
        Visible="false"></asp:Label>
    <table style="width: 35%; height: 400px;">
        <tr>
            <td class="RequiredField">
                <asp:Label ID="lbllibrary" runat="server" Text="Library"></asp:Label>
            </td>
            <td style="width: 80%">
                <rad:RadComboBox ID="rcmblibrary" runat="server" DataValueField="LibraryID" DataTextField="LibTitle"
                    AutoPostBack="true" OnSelectedIndexChanged="rcmblibrary_SelectedIndexChanged"
                    CausesValidation="false">
                </rad:RadComboBox>
            </td>
            <td class="RequiredField">
                <asp:Label ID="lblsection" runat="server" Text="Section"></asp:Label>
            </td>
            <td colspan="1">
                <rad:RadComboBox ID="rcmbsection" runat="server" DataValueField="SectionID" DataTextField="SectionTitle"
                    AutoPostBack="true" OnSelectedIndexChanged="rcmbsection_SelectedIndexChanged"
                    CausesValidation="false">
                </rad:RadComboBox>
            </td>
            <td class="RequiredField">
                <asp:Label ID="lblchecklist" runat="server" Text="Checklist"></asp:Label>
            </td>
            <td>
                <rad:RadComboBox ID="rcmbchecklist" runat="server" DataValueField="ChecklistHeaderID"
                    DataTextField="ChecklistName" AutoPostBack="true" OnSelectedIndexChanged="rcmbchecklist_SelectedIndexChanged"
                    CausesValidation="false">
                </rad:RadComboBox>
            </td>
        </tr>
        <tr>
            <td class="RequiredField">
                <asp:Label ID="lblchecklistitem" runat="server" Text="ChecklistItem  "></asp:Label>
            </td>
            <td colspan="3">
                <%--  <asp:HiddenField runat="server" ID="hfdChecklistitem" />--%>
                <rad:RadTextBox ID="rtxtchecklistitem" runat="server" Width="200px">
                </rad:RadTextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Checklist Item is Required."
                    Display="None" ControlToValidate="rtxtchecklistitem"></asp:RequiredFieldValidator>
                <asp:Button ID="Button3" Text="Add Checklist Item" CssClass="FormButton" Width="120px"
                    runat="server" OnClick="btnAddChecklistItems_OnClick"></asp:Button>
            </td>
            <%-- <td colspan="1">
                <asp:Button ID="btnadd" Text="Add Checklist Item" CssClass="FormButton" Width="120px"
                    runat="server" OnClick="btnAddChecklistItems_OnClick"></asp:Button>
            </td>--%>
        </tr>
        <tr style="height: 200%;">
            <td colspan="6" style="text-top;">
                <rad:RadDataPager ID="RadDataPager1" runat="server" PagedControlID="rlvsessionrecordings"
                    PageSize="25">
                    <Fields>
                        <rad:RadDataPagerButtonField FieldType="FirstPrev" />
                        <rad:RadDataPagerButtonField FieldType="Numeric" PageButtonCount="5" />
                        <rad:RadDataPagerButtonField FieldType="NextLast" />
                        <rad:RadDataPagerPageSizeField PageSizeComboWidth="60" PageSizeText="Page size: " />
                        <rad:RadDataPagerGoToPageField CurrentPageText="Page: " TotalPageText="of" SubmitButtonText="Go"
                            TextBoxWidth="30" />
                        <rad:RadDataPagerTemplatePageField>
                            <PagerTemplate>
                                <b>Items
                                    <asp:Label runat="server" ID="CurrentPageLabel" Text="<%# Container.Owner.StartRowIndex+1%>" />
                                    to
                                    <asp:Label runat="server" ID="TotalPagesLabel" Text="<%# Container.Owner.TotalRowCount > (Container.Owner.StartRowIndex+Container.Owner.PageSize) ? Container.Owner.StartRowIndex+Container.Owner.PageSize : Container.Owner.TotalRowCount %>" />
                                    of
                                    <asp:Label runat="server" ID="TotalItemsLabel" Text="<%# Container.Owner.TotalRowCount%>" />
                                    <br />
                                </b>
                            </PagerTemplate>
                        </rad:RadDataPagerTemplatePageField>
                    </Fields>
                </rad:RadDataPager>
                <rad:RadSplitter ID="radsplitter2" runat="server" Orientation="Horizontal" Width="1150"
                    Height="450" BorderStyle="Solid" BackColor="#b2e1ff">
                    <rad:RadPane ID="RadPane1" runat="server" Scrolling="Y" BorderStyle="Solid" BackColor="#b2e1ff"
                        Height="390">
                        <asp:Panel ID="Panel" runat="server">
                            <rad:RadWindowManager ID="RadWindowManager1" runat="server">
                                <Windows>
                                    <rad:RadWindow ID="DialogWindow" runat="server" Modal="True" Title="Picture" Top="-10"
                                        Height="400" Left="-10" AutoSizeBehaviors="Width, Height" AutoSize="true" KeepInScreenBounds="false"
                                        InitialBehavior="None" ShowContentDuringLoad="false" VisibleStatusbar="false"
                                        Behaviors="Close , Reload" OnClientShow="OnClientShow" VisibleOnPageLoad="false">
                                        <ContentTemplate>
                                            <div style="width: 200px; height: 200px;">
                                                <rad:RadBinaryImage ID="RadBinaryImage1" runat="server" AlternateText="Contact Photo"
                                                    ToolTip='<%#Eval("ChecklistItemDesc") %>' Width="400px" Height="200px" ResizeMode="Fill"
                                                    AutoAdjustImageControlSize="true" DataValue='<%# Eval("Picture") == DBNull.Value? new System.Byte[0]: Eval("Picture") %>'>
                                                </rad:RadBinaryImage>
                                            </div>
                                        </ContentTemplate>
                                    </rad:RadWindow>
                                </Windows>
                            </rad:RadWindowManager>
                            <rad:RadAjaxPanel ID="RadAjaxPane1" runat="server" ClientEvents-OnRequestStart="OnRequestStart"
                                LoadingPanelID="RadAjaxLoadingPanel1">
                                <asp:Panel ID="ListViewPanel" runat="server">
                                    <rad:RadListView ID="rlvsessionrecordings" runat="server" ItemPlaceholderID="pnlholder"
                                        Width="100%" AllowPaging="true" OnNeedDataSource="rlvsessionrecordings_NeedDataSource"
                                        OnItemDataBound="rlvsessionrecordings_OnItemDataBound" OnItemCommand="rlvsessionrecordings_ItemCommand" 
                                        BackColor="#b2e1ff" BorderStyle="Solid">
                                        <LayoutTemplate>
                                            <fieldset style="width: 100%; border-style: solid">
                                                <legend><strong>
                                                    <h2>
                                                        Checklist Header</h2>
                                                </strong></legend>
                                                <table cellpadding="0" cellspacing="0" width="100%;" style="clear: both; background-color: #b2e1ff">
                                                    <tr>
                                                        <td>
                                                            <asp:PlaceHolder ID="pnlholder" runat="server"></asp:PlaceHolder>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </fieldset>
                                        </LayoutTemplate>
                                        <ItemTemplate>
                                            <fieldset style="float: left; width: 98%; height: 240px; overflow: auto; background-color: b2e1ff;">
                                                <legend><b>
                                                    <%# Eval("ChecklistName")%></b></legend>
                                                <table cellpadding="0" cellspacing="0" width="85%">
                                                    <tr>
                                                        <td class="RequiredField" style="width: 20%">
                                                            Checklist Item
                                                        </td>
                                                        <td class="RequiredField" style="width: 40%;">
                                                            <rad:RadTextBox ID="RadTextBox1" TextMode="MultiLine" Rows="3" Width="280px" Height="50px"
                                                                runat="server" Text='<%#Bind("ChecklistItemDesc")%>' Enabled="false">
                                                            </rad:RadTextBox>
                                                        </td>
                                                        <td class="RequiredField" style="width: 25%" colspan="3">
                                                            Checklist Status
                                                        </td>
                                                        <td>
                                                            <rad:RadComboBox ID="ddlStatus" runat="server" DataValueField="StatusID" DataTextField="StatusDesc"
                                                                Width="100px" DropDownWidth="200" AutoPostBack="true">
                                                            </rad:RadComboBox>
                                                        </td>
                                                        <td class="RequiredField" style="width: 25%" colspan="3">
                                                            Library :
                                                            <%# Eval("LibTitle")%>
                                                        </td>
                                                        <td class="RequiredField" style="width: 25%" colspan="2">
                                                            Section :
                                                            <%# Eval("SectionTitle")%>
                                                        </td>
                                                    </tr>
                                                    <tr style="height: 20px">
                                                    </tr>
                                                    <tr>
                                                        <td class="RequiredField">
                                                            Findings
                                                        </td>
                                                        <td>
                                                            <rad:RadTextBox ID="RadTextBox2" TextMode="MultiLine" Rows="3" Width="280px" Height="50px"
                                                                runat="server" Text='<%#Bind("Findings")%>' Enabled="false">
                                                            </rad:RadTextBox>
                                                        </td>
                                                        <td class="RequiredField" colspan="3">
                                                            Recommendation
                                                        </td>
                                                        <td colspan="3">
                                                            <rad:RadTextBox ID="txtrecommendation" runat="server" TextMode="MultiLine" Rows="3"
                                                                Width="300px" Height="50px" Text=' <%# Eval("Recommendation")%>' Enabled="false">
                                                            </rad:RadTextBox>
                                                        </td>
                                                    </tr>
                                                    <tr style="height: 20px">
                                                    </tr>
                                                    <tr>
                                                        <td class="RequiredField" style="width: 20%">
                                                            Percentage of Compliance
                                                        </td>
                                                        <td class="RequiredField" style="width: 13%;">
                                                            <rad:RadNumericTextBox ID="RadNumericTextBox1" runat="server" Enabled="false" Text='<%#Bind("PercentCompliant")%>'>
                                                            </rad:RadNumericTextBox>
                                                        </td>
                                                        <td colspan="3" style="text-align: left;">
                                                            <asp:Label ID="lvlbPicture" runat="server" Text="Picture" CssClass="RequiredField"
                                                                Visible='<%#LinkPictureVisibility(Eval("InspectionChecklistItemID")) %>'></asp:Label>
                                                            <asp:LinkButton runat="server" ID="lvlbtnImgView" CommandName="ViewImg" Text="View"
                                                                CausesValidation="false" ForeColor="BlueViolet" Visible='<%#LinkPictureVisibility(Eval("InspectionChecklistItemID")) %>'>
                                                            </asp:LinkButton>
                                                            <asp:Label ID="lblImageName" Text='<%# Eval("ImageName")%>' ForeColor="Green" Font-Bold="true"
                                                                runat="server" Visible='<%#LinkPictureNameVisibility(Eval("InspectionChecklistItemID")) %>'></asp:Label>
                                                        </td>
                                                        <td colspan="2">
                                                            <asp:Label ID="vllblDocument" runat="server" Text="Document" CssClass="RequiredField"
                                                                Visible='<%#LinkDocVisibility(Eval("InspectionChecklistItemID")) %>'></asp:Label>
                                                            <asp:HiddenField ID="hInspectionChecklistItemID" runat="server" Value='<%#Eval("InspectionChecklistItemID") %>' />
                                                            <asp:LinkButton runat="server" ID="vllbtnDocView" CommandName="View" Text="View"
                                                                CausesValidation="false" ForeColor="BlueViolet" Visible='<%#LinkDocVisibility(Eval("InspectionChecklistItemID")) %>'>
                                                            </asp:LinkButton>
                                                            <asp:Label ID="lblDocumentName" Text='<%#Eval("FullFileName")%>' runat="server" ForeColor="Green"
                                                                Font-Bold="true" Visible='<%#LinkDocNameVisibility(Eval("DocumentID")) %>'></asp:Label>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td colspan="7" style="text-align: center;">
                                                            <asp:Button ID="btnedit" CommandName="Edit" Text="Edit" CssClass="FormButton" Width="55px"
                                                                runat="server" CausesValidation="false"></asp:Button>
                                                            &nbsp &nbsp
                                                            <asp:Button ID="btndelete" CommandName="Delete" Text="Delete" CssClass="FormButton"
                                                                Width="55px" runat="server" CausesValidation="false" OnClientClick="javascript:if(!confirm('Are you sure you want to remove this item?')){return false;}">
                                                            </asp:Button>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </fieldset>
                                        </ItemTemplate>
                                        <EditItemTemplate>
                                            <fieldset style="float: left; width: 98%; overflow: auto; height: 240px; background-color: #B6CCF0">
                                                <legend><b>
                                                    <%# Eval("ChecklistItemDesc") %></b> </legend>
                                                <table cellpadding="0" cellspacing="0" width="85%">
                                                    <tr>
                                                        <td class="RequiredField" style="width: 20%">
                                                            Checklist Item
                                                            <asp:HiddenField ID="hfdDocumentID" runat="server" Value='<%#Eval("DocumentID") %>' />
                                                            <asp:HiddenField ID="hfdVersionID" runat="server" Value='<%#Eval("VersionID") %>' />
                                                            <asp:HiddenField ID="hInspectionChecklistItemID" runat="server" Value='<%#Eval("InspectionChecklistItemID") %>' />
                                                        </td>
                                                        <td class="RequiredField" style="width: 40%;">
                                                            <rad:RadTextBox ID="RadTextBox1" TextMode="MultiLine" Rows="3" Width="300px" Height="50px"
                                                                Enabled="false" runat="server" Text='<%#Bind("ChecklistItemDesc")%>'>
                                                            </rad:RadTextBox>
                                                            <asp:HiddenField ID="hfdPicture" runat="server" Value='<%#Eval("Picture") %>' />
                                                        </td>
                                                        <td class="RequiredField" style="width: 25%" colspan="4">
                                                            Library :
                                                            <%# Eval("LibTitle")%>
                                                        </td>
                                                        <td class="RequiredField" style="width: 25%" colspan="2">
                                                            Section :
                                                            <%# Eval("SectionTitle")%>
                                                        </td>
                                                    </tr>
                                                    <tr style="height: 20px">
                                                    </tr>
                                                    <tr>
                                                        <td class="RequiredField">
                                                            Findings
                                                        </td>
                                                        <td colspan="2">
                                                            <rad:RadTextBox ID="TextBox3" TextMode="MultiLine" Rows="3" Width="300px" Height="50px"
                                                                runat="server" Text='<%#Bind("Findings")%>'>
                                                            </rad:RadTextBox>
                                                            <asp:HiddenField ID="hfldid" runat="server" Value='<%#Eval("InspectionChecklistItemID") %>' />
                                                        </td>
                                                        <td class="RequiredField" colspan="3">
                                                            Recommendation
                                                        </td>
                                                        <td colspan="2">
                                                            <rad:RadTextBox ID="TextBox4" TextMode="MultiLine" Rows="3" Width="300px" Height="50px"
                                                                runat="server" Text='<%#Bind("Recommendation")%>'>
                                                            </rad:RadTextBox>
                                                        </td>
                                                    </tr>
                                                    <tr style="height: 20px">
                                                    </tr>
                                                    <tr>
                                                        <table>
                                                            <tr>
                                                                <td class="RequiredField" style="width: 11%">
                                                                    Percentage of Compliance
                                                                    <%-- <asp:Label ID="lblPercentageComplaint" runat="server" Text="Percentage of Compliance"></asp:Label>--%>
                                                                </td>
                                                                <td class="RequiredField" style="width: 23%; left: 50%; text-align: left;">
                                                                    <rad:RadNumericTextBox ID="TextBox6" ShowSpinButtons="true" runat="server" Text='<%#Bind("PercentCompliant")%>'>
                                                                    </rad:RadNumericTextBox>
                                                                </td>
                                                                <td class="RequiredField">
                                                                    <asp:Label ID="lblUploadPic" runat="server" Text="Upload Picture"></asp:Label>
                                                                </td>
                                                                <td>
                                                                    <rad:RadUpload ID="RadUpload1" runat="server" AllowedFileExtensions=".jpg,.jpeg,.gif,.png"
                                                                        ControlObjectsVisibility="None" InputSize="12" Width="180px" MaxFileInputsCount="1"
                                                                        OverwriteExistingFiles="true" CssClass="radUploadStyle">
                                                                    </rad:RadUpload>
                                                                    <asp:LinkButton runat="server" ID="lvlbtnImgRemove" CommandName="RemoveImg" Text="Remove"
                                                                        Visible='<%#LinkPictureVisibility(Eval("InspectionChecklistItemID")) %>' ForeColor="BlueViolet"
                                                                        OnClientClick="javascript:if(!confirm('Are you sure you want to remove this Picture?')){return false;}">
                                                                    </asp:LinkButton>
                                                                    <asp:LinkButton runat="server" ID="lvlbtnImgView" CommandName="ViewImg" Text="View"
                                                                        ForeColor="BlueViolet" Visible='<%#LinkPictureVisibility(Eval("InspectionChecklistItemID")) %>'>
                                                                    </asp:LinkButton>
                                                                    <asp:Label ID="lblImageName" Text='<%# Eval("ImageName")%>' ForeColor="Green" Font-Bold="true"
                                                                        runat="server" Visible='<%#LinkPictureNameVisibility(Eval("InspectionChecklistItemID")) %>'></asp:Label>
                                                                </td>
                                                                <td class="RequiredField">
                                                                    <asp:Label ID="lblUploadDoc" runat="server" Text="Upload Document"></asp:Label>
                                                                </td>
                                                                <td>
                                                                    <rad:RadUpload ID="RadUploadDocument" runat="server" AllowedFileExtensions=".pdf,.docx,.xlsx"
                                                                        ControlObjectsVisibility="None" OverwriteExistingFiles="true" InputSize="12"
                                                                        Width="160px" CssClass="radUploadStyle" MaxFileInputsCount="1">
                                                                    </rad:RadUpload>
                                                                    <asp:LinkButton runat="server" ID="LinkButton1" CommandName="RemoveDoc" Text="Remove"
                                                                        CausesValidation="false" Visible='<%#LinkDocVisibility(Eval("InspectionChecklistItemID")) %>'
                                                                        ForeColor="BlueViolet" OnClientClick="javascript:if(!confirm('Are you sure you want to remove this Document?')){return false;}">
                                                                    </asp:LinkButton>
                                                                    <asp:LinkButton runat="server" ID="vllbtnDocView" CommandName="View" Text="View"
                                                                        CausesValidation="false" ForeColor="BlueViolet" Visible='<%#LinkDocVisibility(Eval("InspectionChecklistItemID")) %>'>
                                                                    </asp:LinkButton>
                                                                    <asp:Label ID="lblDocumentName" Text='<%#Eval("FullFileName")%>' runat="server" ForeColor="Green"
                                                                        Font-Bold="true" Visible='<%#LinkDocNameVisibility(Eval("DocumentID")) %>'></asp:Label>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td align="center" colspan="7" style="text-align: center">
                                                                    <asp:Button ID="Button1" Text="Update" CssClass="FormButton" Width="55px" runat="server"
                                                                        CommandName="Update" CausesValidation="false" />
                                                                    &nbsp
                                                                    <asp:Button ID="Button2" Text="Cancel" CssClass="FormButton" Width="55px" runat="server"
                                                                        CommandName="Cancel" CausesValidation="false" />
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </tr>
                                                </table>
                                            </fieldset>
                                        </EditItemTemplate>
                                    </rad:RadListView>
                                </asp:Panel>
                            </rad:RadAjaxPanel>
                        </asp:Panel>
                    </rad:RadPane>
                </rad:RadSplitter>
                <rad:RadDataPager ID="RadDataPager2" runat="server" PagedControlID="rlvsessionrecordings"
                    BackColor="#eeeeee" PageSize="25">
                    <Fields>
                        <rad:RadDataPagerButtonField FieldType="FirstPrev" />
                        <rad:RadDataPagerButtonField FieldType="Numeric" PageButtonCount="5" />
                        <rad:RadDataPagerButtonField FieldType="NextLast" />
                        <rad:RadDataPagerPageSizeField PageSizeComboWidth="60" PageSizeText="Page size: " />
                        <rad:RadDataPagerGoToPageField CurrentPageText="Page: " TotalPageText="of" SubmitButtonText="Go"
                            TextBoxWidth="30" />
                        <rad:RadDataPagerTemplatePageField>
                            <PagerTemplate>
                                <b>Items
                                    <asp:Label runat="server" ID="CurrentPageLabel" Text="<%# Container.Owner.StartRowIndex+1%>" />
                                    to
                                    <asp:Label runat="server" ID="TotalPagesLabel" Text="<%# Container.Owner.TotalRowCount > (Container.Owner.StartRowIndex+Container.Owner.PageSize) ? Container.Owner.StartRowIndex+Container.Owner.PageSize : Container.Owner.TotalRowCount %>" />
                                    of
                                    <asp:Label runat="server" ID="TotalItemsLabel" Text="<%# Container.Owner.TotalRowCount%>" />
                                    <br />
                                </b>
                            </PagerTemplate>
                        </rad:RadDataPagerTemplatePageField>
                    </Fields>
                </rad:RadDataPager>
              
            </td>
        </tr>
    </table>
</asp:Content>



Waiting for your Reply.

Thanks.

2 Answers, 1 is accepted

Sort by
0
Viktor Tachev
Telerik team
answered on 13 Aug 2014, 02:40 PM
Hello,

I have inspected the provided code and noticed that some controls on the page were Ajax-enabled by both RadAjaxManager and RadAjaxPanel. Please note that you should not Ajax-enable controls multiple times as this may cause them to work incorrectly. Moreover, there are duplicate settings in the RadAjaxManager.

Try to remove the RadAjaxPanel from the page and also replace the duplicate settings from the RadAjaxManager and the controls should work as expected.

Regards,
Viktor Tachev
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Balageetha
Top achievements
Rank 1
answered on 20 Aug 2014, 08:42 AM
Hi,

                 I have removed the duplicate settings and also it didnt work and I have found the solution.

                The solution is ,
                    RadListView1.ClearEditItems();
                    RadListView1.Rebind();

                In the Update command I have used this and now it is working fine i.e.,the Edit Item Template is returning back to the ItemTemplate after the Updation.




Tags
ListView
Asked by
Balageetha
Top achievements
Rank 1
Answers by
Viktor Tachev
Telerik team
Balageetha
Top achievements
Rank 1
Share this question
or