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

CommandItemTemplate

3 Answers 241 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Babu Puchakayala
Top achievements
Rank 1
Babu Puchakayala asked on 08 Jul 2010, 04:30 AM
Hi,

I am using Commanditemtemplete. The display is not proper in commanditemtemplete. Please see the figure below. The image is coming up and text is coming down. I tried to fix this using tr and td. but when i click edit button the edit option should disappear and edit and cancel button should show up. If i use tr, td the images are visible. Please help me to fix this.

here is my code
<CommandItemTemplate> 
                                <table> 
                                    <tr class="customFont"
                                        <td align="left"
                                            <b>Bulk Actions</b> 
                                        </td> 
                                        <td align="left"
                                            <asp:LinkButton ID="btnEditSelected" runat="server" OnClick="btnEditSelected_click" 
                                                Visible='<%# rg200.EditIndexes.Count == 0 %>'><img style="border:0px;vertical-align:middle;" alt="" src="Images/edit-icon-v5.gif" /> Edit Selected</asp:LinkButton> 
                                                &nbsp;&nbsp;&nbsp; 
                                        </td> 
                                        <td align="left"
                                            <asp:LinkButton ID="btnUpdateEdited" runat="server" OnClick="btnUpdateEdited_click" 
                                                Visible='<%# rg200.EditIndexes.Count > 0 %>'><img style="border:0px;vertical-align:middle;" alt="" src="Images/Updatee.gif" /> Update Editing</asp:LinkButton> 
                                                &nbsp;&nbsp;&nbsp; 
                                        </td> 
                                        <td align="left"
                                            <asp:LinkButton ID="btnCancel" runat="server" OnClick="btnCancel_click" Visible='<%# rg200.EditIndexes.Count > 0 || rg200.MasterTableView.IsItemInserted %>'><img style="border:0px;vertical-align:middle;" alt="" src="Images/delete-icon.png" /> Cancel Editing</asp:LinkButton> 
                                            &nbsp;&nbsp;&nbsp; 
                                        </td> 
                                        <td align="left"
                                            <asp:LinkButton ID="LinkButton2" runat="server" CommandName="InitInsert" Visible='<%# !rg200.MasterTableView.IsItemInserted %>'><img style="border:0px;vertical-align:middle;" alt="" src="Images/add-icon.png" /> Add New Record</asp:LinkButton> 
                                            &nbsp;&nbsp;&nbsp; 
                                        </td> 
                                        <td align="left"
                                            <asp:LinkButton ID="LinkButton1" OnClientClick="javascript:return confirm('Delete all selected Records?')" 
                                                runat="server" CommandName="DeleteSelected"><img style="border:0px;vertical-align:middle;" alt="" src="Images/delete-icon.png" /> Delete Selected</asp:LinkButton> 
                                            &nbsp;&nbsp;&nbsp; 
                                         </td> 
                                        <td align="left"
                                            <asp:LinkButton ID="LinkButton4" runat="server" CommandName="Rebind"><img style="border:0px;vertical-align:middle;" alt="" src="Images/Refresh.gif" /> Refresh</asp:LinkButton> 
                                            &nbsp;&nbsp;&nbsp; 
                                        </td> 
                                    </tr> 
                                </table> 
                            </CommandItemTemplate> 



 I want to show export options (just images) like we have in CommandItemSettings. How to do that in Commanditemtemplete? is there any backend code to write for that. Please help in this issue.

Thanks.

3 Answers, 1 is accepted

Sort by
0
Radoslav
Telerik team
answered on 12 Jul 2010, 11:49 AM
Hello Babu,

I could not reproduce the described issue. I am sending you a simple example, which contains a RadGrid with CommandItemTemplate, based on your code. Please check it out and let me know what differs in your case. Also it will be helpful if you could send us a simple project that could be used for reproducing the problem. You could open a formal support ticket from your Telerik account and attach a ZIP file there. Thus we will be able to gather more details about your scenario and provide you with more to-the-point answer.

Additionally please check out the following online example which demonstrates how to show an export button into the RadGrid's CommandItemTemplete:
http://demos.telerik.com/aspnet-ajax-beta/grid/examples/generalfeatures/pdfexport/defaultcs.aspx

Sincerely yours,
Radoslav
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Babu Puchakayala
Top achievements
Rank 1
answered on 12 Jul 2010, 02:49 PM
HI,

But its still getting error. I dont know where i am doing mistake. I am sending my complete aspx page can you see it and tell me. Now I am getting one more error like when i click on the edit select for the first time the form is not editing and if i click second time it is editing but not dispalying update and cancel buttons in commanditem template. I tried to fix this but still i am getting same thing. Can you help me sir.  i see you have radspell in your app_data folder but i dont have it. Do i need that? I am using the latest version of telerik controls.

here is my complete aspx file.

<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/MasterPage.master"
    CodeFile="Tsk200.aspx.cs" Inherits="Tak200" EnableEventValidation="false" %>
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="CSS_ScriptPlaceHolder" runat="Server">
    <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
        <link href="CSS/Css.css" rel="stylesheet" type="text/css" />
 
        <script type="text/javascript">
 
            function onAgrtypeOther() {
                if (document.getElementById('tabTskDet_tabAgreInfo_ddlAgreementType').selectedIndex == 4)
                    document.getElementById('trAgrTypeOther').style.visibility = 'visible';
                else
                    document.getElementById('trAgrTypeOther').style.visibility = 'hidden';
                return false;
            }
            function onPertypeOther() {
                if (document.getElementById('tabTskDet_tabPermit_ddlPermitType').selectedIndex == 3)
                    document.getElementById('tdPerTypeOther').style.visibility = 'visible';
                else
                    document.getElementById('tdPerTypeOther').style.visibility = 'hidden';
                return false;
            }
            function onSitetypeOther() {
                if (document.getElementById('tabTskDet_tabGenTskDet_ddlSiteType').selectedIndex == 4)
                    document.getElementById('tabTskDet_tabGenTskDet_tdSiteTypeOth').style.visibility = 'visible';
                else
                    document.getElementById('tabTskDet_tabGenTskDet_tdSiteTypeOth').style.visibility = 'hidden';
                return false;
 
            }
            function onPwrtypeOther() {
                if (document.getElementById('tabTskDet_tabGenTskDet_ddlPwrStatus').selectedIndex == 4)
                    document.getElementById('tabTskDet_tabGenTskDet_tdPwrStatusOth').style.visibility = 'visible';
                else
                    document.getElementById('tabTskDet_tabGenTskDet_tdPwrStatusOth').style.visibility = 'hidden';
                return false;
            }
            function onEqiLoctypeOther() {
                if (document.getElementById('tabTskDet_tabGenTskDet_ddlEquiLocDesc').selectedIndex == 3)
                    document.getElementById('tabTskDet_tabGenTskDet_tdEquiLocDescOth').style.visibility = 'visible';
                else
                    document.getElementById('tabTskDet_tabGenTskDet_tdEquiLocDescOth').style.visibility = 'hidden';
                return false;
            }
            function showOthRea() {
                var dt1 = new Date(document.getElementById("tabTskDet_tabGenTskDet_txtConstSchCompDate").value);
                var dt2 = new Date(document.getElementById("tabTskDet_tabGenTskDet_txtConstActCompDate").value);
                if (dt1 < dt2) {
                    document.getElementById("tabTskDet_tabGenTskDet_tdDtLateRea306").style.display = "block"
                }
                else {
                    document.getElementById("tabTskDet_tabGenTskDet_tdDtLateRea306").style.display = "none"
                    document.getElementById("tabTskDet_tabGenTskDet_lblDueDtLateRea").value = ''
                }
            }
            function showOthRea303() {
                var dt1 = new Date(document.getElementById("tabTskDet_tabGenTskDet_txtContSchComDt").value);
                var dt2 = new Date(document.getElementById("tabTskDet_tabGenTskDet_txtConstActComDt").value);
                if (dt1 < dt2) {
                    document.getElementById("tabTskDet_tabGenTskDet_tdDtLateRea303").style.display = "block"
                }
                else {
                    document.getElementById("tabTskDet_tabGenTskDet_tdDtLateRea303").style.display = "none"
                    document.getElementById("tabTskDet_tabGenTskDet_lbl303DueDtLateRea").value = ''
                }
            }
            function DisplayDateToday(sender, args) {
                if (sender._selectedDate == null) {
                    sender._selectedDate = new Date();
                }
            }
            function onRequestStart(sender, args) {
                if (args.get_eventTarget().indexOf("ExportToExcelButton") >= 0 ||
                    args.get_eventTarget().indexOf("ExportToWordButton") >= 0 ||
                    args.get_eventTarget().indexOf("ExportToPdfButton") >= 0 ||
                    args.get_eventTarget().indexOf("ExportToCsvButton") >= 0) {
 
                    args.set_enableAjax(false);
                }
            }
            function RowContextMenu(sender, eventArgs) {
                var menu = $find("<%=RadMenu1.ClientID %>");
                var evt = eventArgs.get_domEvent();
 
                if (evt.target.tagName == "INPUT" || evt.target.tagName == "A") {
                    return;
                }
 
                var index = eventArgs.get_itemIndexHierarchical();
                document.getElementById("radGridClickedRowIndex").value = index;
 
                sender.get_masterTableView().selectItem(sender.get_masterTableView().get_dataItems()[index].get_element(), true);
 
                menu.show(evt);
 
                evt.cancelBubble = true;
                evt.returnValue = false;
 
                if (evt.stopPropagation) {
                    evt.stopPropagation();
                    evt.preventDefault();
                }
            }
            function openpopup() {
                radopen(null, "winPTD")
            }
        </script>
 
        <style>
            .modalBackground
            {
                background-color: Gray;
                filter: alpha(opacity=70);
                opacity: 0.7;
            }
            .AjaxCalendar .ajax__calendar_container
            {
                border: 1px solid #646464;
                background-color: White;
                color: Black;
            }
            .AjaxCalendar .ajax__calendar_other .ajax__calendar_day, .AjaxCalendar .ajax__calendar_other .ajax__calendar_year
            {
                color: #999999;
            }
            .AjaxCalendar .ajax__calendar_hover .ajax__calendar_day, .AjaxCalendar .ajax__calendar_hover .ajax__calendar_month, .AjaxCalendar .ajax__calendar_hover .ajax__calendar_year
            {
                color: Red;
            }
            .AjaxCalendar .ajax__calendar_active .ajax__calendar_day, .AjaxCalendar .ajax__calendar_active .ajax__calendar_month, .AjaxCalendar .ajax__calendar_active .ajax__calendar_year
            {
                background-color: #78C43C;
                color: Black;
                text-align: center;
                font-weight: bold;
            }
            .rgPageFirst, .rgPagePrev, .rgPageNext, .rgPageLast
            {
                display: none !important;
            }
            div.RadGrid_Default .rgHeader, div.RadGrid_Default th.rgResizeCol
            {
                background-image: none;
            }
            .GridEditRow_Vista input
            {
                width: 100px;
            }
            .bigModuleBottom td
            {
                padding: 0;
            }
        </style>
    </telerik:RadCodeBlock>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="PagePlaceholder" runat="Server">
    <div style="width: 100%; padding-top: 20px">
        <telerik:RadStyleSheetManager ID="RadStyleSheetManager1" runat="server" />
        <table style="width: 98%">
            <tr>
                <td colspan="2">
                    <asp:Label runat="server" Font-Bold="true" Font-Size="14pt" ID="lblTskName"></asp:Label>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
                        <Scripts>
                            <%--Needed for JavaScript IntelliSense in VS2010--%>
                            <%--For VS2008 replace RadScriptManager with ScriptManager--%>
                            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
                            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
                            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
                        </Scripts>
                    </telerik:RadScriptManager>
                    <%--<asp:UpdatePanel ID="rg200UpdatePanel" runat="server">
                        <ContentTemplate>--%>
                    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
                        <ClientEvents OnRequestStart="onRequestStart" />
                        <AjaxSettings>
                            <telerik:AjaxSetting AjaxControlID="rg200">
                                <UpdatedControls>
                                    <telerik:AjaxUpdatedControl ControlID="rg200" LoadingPanelID="RadAjaxLoadingPanel1" />
                                    <telerik:AjaxUpdatedControl ControlID="RadMenu1" />
                                </UpdatedControls>
                            </telerik:AjaxSetting>
                            <telerik:AjaxSetting AjaxControlID="RadMenu1">
                                <UpdatedControls>
                                    <telerik:AjaxUpdatedControl ControlID="rg200" LoadingPanelID="RadAjaxLoadingPanel1" />
                                    <telerik:AjaxUpdatedControl ControlID="RadMenu1" />
                                </UpdatedControls>
                            </telerik:AjaxSetting>
                        </AjaxSettings>
                    </telerik:RadAjaxManager>
                    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Default">
                    </telerik:RadAjaxLoadingPanel>
                    <input type="hidden" id="radGridClickedRowIndex" name="radGridClickedRowIndex" />
                    <telerik:RadGrid ID="rg200" runat="server" AutoGenerateColumns="False" PageSize="30"
                        Height="550px" Width="100%" AllowPaging="True" AllowSorting="True" AllowMultiRowSelection="True"
                        EnableHeaderContextMenu="True" GridLines="None" EnableHeaderContextFilterMenu="True"
                        AllowMultiRowEdit="true" AllowFilteringByColumn="True" OnPreRender="rg200_PreRender"
                        OnItemCreated="rg200_ItemCreated" EnableViewState="true" OnUpdateCommand="rg200_UpdateCommand"
                        AllowAutomaticDeletes="false" AllowAutomaticInserts="false" AllowAutomaticUpdates="false"
                        OnPageIndexChanged="rg200_PageIndexChanged" OnItemCommand="rg216_ItemCommand"
                        OnSortCommand="rg200_SortCommand" OnCancelCommand="rg200_CancelCommand">
                        <HeaderStyle Height="20px" BackColor="#004000" Font-Size="8pt" Font-Bold="True" ForeColor="White"
                            HorizontalAlign="Center" BorderColor="White" BorderWidth="1px" />
                        <ExportSettings IgnorePaging="true" ExportOnlyData="true">
                            <Pdf AllowModify="false" AllowPrinting="true" PageBottomMargin="" PageFooterMargin=""
                                PageHeaderMargin="" PageHeight="11in" PageLeftMargin="" PageRightMargin="" PageTopMargin=""
                                PageWidth="14in" />
                        </ExportSettings>
                        <MasterTableView GridLines="None" DataKeyNames="orderId" CommandItemDisplay="Top"
                            EditMode="EditForms">
                            <CommandItemTemplate>
                                <div style="padding: 5px 5px;">
                                    <table>
                                        <tr>
                                            <td align="left">
                                                <b>Bulk Actions</b>    
                                            </td>
                                            <td align="left">
                                                <asp:LinkButton ID="btnEditSelected" runat="server" CommandName="EditSelected" Visible='<%# rg200.EditIndexes.Count == 0 %>'><img  style="border:0px;vertical-align:middle;" alt="" src="Images/Edit.gif" />Edit selected</asp:LinkButton>
                                                    
                                            </td>
                                            <td align="left">
                                                <asp:LinkButton ID="btnUpdateEdited" runat="server" CommandName="UpdateEdited" Visible='<%# rg200.EditIndexes.Count >  0 %>'><img style="border:0px;vertical-align:middle;" alt="" src="Images/Update.gif" />Update</asp:LinkButton>
                                                    
                                            </td>
                                            <td align="left">
                                                <asp:LinkButton ID="btnCancel" runat="server" CommandName="CancelAll" Visible='<%# rg200.EditIndexes.Count > 0 || rg200.MasterTableView.IsItemInserted %>'><img style="border:0px;vertical-align:middle;" alt="" src="Images/Cancel.gif" />Cancel editing</asp:LinkButton>
                                                    
                                            </td>
                                            <td align="right">
                                                <img style="border: 0px; vertical-align: middle;" alt="" src="Images/AddRecord.gif" />
                                            </td>
                                            <td align="left">
                                                <asp:LinkButton ID="LinkButton2" runat="server" CommandName="InitInsert" Visible='<%# !rg200.MasterTableView.IsItemInserted %>'>Add New Record</asp:LinkButton>
                                                    
                                            </td>
                                            <td align="right">
                                                <img style="border: 0px; vertical-align: middle;" alt="" src="Images/Delete.gif" />
                                            </td>
                                            <td align="left">
                                                <asp:LinkButton ID="LinkButton1" OnClientClick="javascript:return confirm('Delete all selected Records?')"
                                                    runat="server" CommandName="DeleteSelected">Delete Selected</asp:LinkButton>
                                                    
                                            </td>
                                            <td align="right">
                                                <img style="border: 0px; vertical-align: middle;" alt="" src="Images/Refresh.gif" />
                                            </td>
                                            <td align="left">
                                                <asp:LinkButton ID="LinkButton4" runat="server" CommandName="Rebind">Refresh</asp:LinkButton>
                                                                         
                                                                         
                                                                         
                                                                         
                                            </td>
                                            <%--<div style="padding: 5px 5px;">
                                                Custom command item template    
                                                <asp:LinkButton ID="btnEditSelected" runat="server" CommandName="EditSelected" Visible='<%# rg200.EditIndexes.Count == 0 %>'><img style="border:0px;vertical-align:middle;" alt="" src="Images/Edit.gif" />Edit selected</asp:LinkButton>  
                                                <asp:LinkButton ID="btnUpdateEdited" runat="server" CommandName="UpdateEdited" Visible='<%# rg200.EditIndexes.Count > 0 %>'><img style="border:0px;vertical-align:middle;" alt="" src="Images/Update.gif" />Update</asp:LinkButton>  
                                                <asp:LinkButton ID="btnCancel" runat="server" CommandName="CancelAll" Visible='<%# rg200.EditIndexes.Count > 0 || rg200.MasterTableView.IsItemInserted %>'><img style="border:0px;vertical-align:middle;" alt="" src="Images/Cancel.gif" />Cancel editing</asp:LinkButton>  
                                                <asp:LinkButton ID="LinkButton2" runat="server" CommandName="InitInsert" Visible='<%# !rg200.MasterTableView.IsItemInserted %>'><img style="border:0px;vertical-align:middle;" alt="" src="Images/AddRecord.gif" />Add new</asp:LinkButton>  
                                                <asp:LinkButton ID="LinkButton3" runat="server" CommandName="PerformInsert" Visible='<%# rg200.MasterTableView.IsItemInserted %>'><img style="border:0px;vertical-align:middle;" alt="" src="Images/Insert.gif" /> Add this Customer</asp:LinkButton>  
                                                <asp:LinkButton ID="LinkButton1" OnClientClick="javascript:return confirm('Delete all selected customers?')"
                                                    runat="server" CommandName="DeleteSelected"><img style="border:0px;vertical-align:middle;" alt="" src="Images/Delete.gif" />Delete selected customers</asp:LinkButton>  
                                                <asp:LinkButton ID="LinkButton4" runat="server" CommandName="RebindGrid"><img style="border:0px;vertical-align:middle;" alt="" src="Images/Refresh.gif" />Refresh customer list</asp:LinkButton>
                                            </div>--%>
                                            <td align="left">
                                                <asp:ImageButton ID="ExportToWordButton" runat="server" ImageUrl="~/images/ExportToWord.gif"
                                                    ToolTip="Export to Word" OnClick="ExportWord_Click" />
                                                   
                                                <asp:ImageButton ID="ExportToExcelButton" runat="server" ImageUrl="~/images/ExportToExcel.gif"
                                                    ToolTip="Export to Excel" OnClick="ExportExcel_Click" />
                                                    
                                                <asp:ImageButton ID="ExportToPdfButton" runat="server" ImageUrl="~/images/ExportToPdf.gif"
                                                    ToolTip="Export to Pdf" OnClick="ExportPdf_Click" />
                                                    
                                                <asp:ImageButton ID="ExportToCsvButton" runat="server" ImageUrl="~/images/ExportToCsv.gif"
                                                    ToolTip="Export to Csv" OnClick="ExportCsv_Click" />
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                            </CommandItemTemplate>
                            <Columns>
                                <telerik:GridClientSelectColumn UniqueName="ClientSelectColumn" HeaderStyle-Width="3%"
                                    ItemStyle-Width="3%">
                                    <HeaderStyle Width="3%"></HeaderStyle>
                                    <ItemStyle Width="3%"></ItemStyle>
                                </telerik:GridClientSelectColumn>
                                <telerik:GridBoundColumn UniqueName="sId" HeaderText="sId" DataField="sId" ReadOnly="true"
                                    Visible="false">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn UniqueName="orderId" HeaderText="orderId" Visible="false"
                                    ReadOnly="true" DataField="orderId">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn UniqueName="Customer Name" HeaderText="Customer Name" DataField="Customer Name"
                                    ReadOnly="true">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn UniqueName="Market Name" HeaderText="Market Name" DataField="Market Name"
                                    ReadOnly="true">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn UniqueName="LOB" HeaderText="LOB" DataField="LOB" ReadOnly="true">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn UniqueName="Headend Name" HeaderText="Headend Name" DataField="Headend Name"
                                    ReadOnly="true">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn UniqueName="Project Name" HeaderText="Project Name" DataField="Project Name"
                                    ReadOnly="true">
                                </telerik:GridBoundColumn>
                                <telerik:GridTemplateColumn UniqueName="Site Name" HeaderText="Site Name" DataField="SiteName"
                                    ReadOnly="true">
                                    <ItemTemplate>
                                        <asp:LinkButton ID="lnkSiteName" runat="server" Text='<%# Eval( "Site Name" ) %>'
                                            ForeColor="Blue" CommandName="sitename"></asp:LinkButton>
                                    </ItemTemplate>
                                </telerik:GridTemplateColumn>
                                <telerik:GridBoundColumn UniqueName="Task Status" HeaderText="Task Status" DataField="Task Status"
                                    ReadOnly="true">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn UniqueName="Clarify Account Nbr" HeaderText="Clarify Account Nbr"
                                    DataField="Clarify Account Nbr">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn UniqueName="Site ID" HeaderText="Site ID" DataField="Site ID">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn UniqueName="Quote ID" HeaderText="Quote ID" DataField="Quote ID">
                                </telerik:GridBoundColumn>
                                <telerik:GridCheckBoxColumn UniqueName="EDP Created?" HeaderText="EDP Created?" DataField="EDP Created?">
                                </telerik:GridCheckBoxColumn>
                                <telerik:GridEditCommandColumn UniqueName="EditCommandColumn" Visible="false" Display="false">
                                </telerik:GridEditCommandColumn>
                            </Columns>
                            <EditFormSettings EditFormType="Template">
                                <FormTemplate>
                                    <table id="Table1" cellspacing="1" cellpadding="1">
                                        <tr>
                                            <td>
                                                <telerik:RadTabStrip runat="server" ID="RadTabStrip1" Orientation="HorizontalTop"
                                                    SelectedIndex="0" MultiPageID="RadMultiPage1">
                                                    <Tabs>
                                                        <telerik:RadTab Text="Task Data" PageViewID="RadPageView1">
                                                        </telerik:RadTab>
                                                        <telerik:RadTab Text="Notes" PageViewID="RadPageView2">
                                                        </telerik:RadTab>
                                                    </Tabs>
                                                </telerik:RadTabStrip>
                                                <telerik:RadMultiPage runat="server" ID="RadMultiPage1" SelectedIndex="0">
                                                    <telerik:RadPageView runat="server" ID="RadPageView1">
                                                        <table id="Table3" cellspacing="1" cellpadding="1" width="250" border="0" class="module">
                                                            <tr>
                                                                <td>
                                                                </td>
                                                                <td>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>
                                                                    Clarify Account Nbr:
                                                                </td>
                                                                <td>
                                                                    <asp:TextBox ID="TextBox1" runat="server" Text='<%# Eval( "Clarify Account Nbr" ) %>'>
                                                                    </asp:TextBox>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>
                                                                    Site ID:
                                                                </td>
                                                                <td>
                                                                    <asp:TextBox ID="TextBox2" runat="server" Text='<%# Eval( "Site ID") %>' TabIndex="1">
                                                                    </asp:TextBox>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>
                                                                    Quote ID:
                                                                </td>
                                                                <td>
                                                                    <asp:TextBox ID="TextBox3" runat="server" Text='<%# Eval( "Quote ID") %>' TabIndex="2">
                                                                    </asp:TextBox>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>
                                                                    EDP Created?:
                                                                </td>
                                                                <td>
                                                                    <asp:CheckBox ID="CheckBox1" runat="server" Text='<%# Eval( "EDP Created?") %>' TabIndex="3">
                                                                    </asp:CheckBox>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td align="right" colspan="2">
                                                                    <asp:Button ID="btnUpdate" Text='<%# (Container is GridEditFormInsertItem) ? "Insert" : "Update" %>'
                                                                        runat="server" CommandName='Update'></asp:Button
                                                                    <asp:Button ID="btnCancel" Text="Cancel" runat="server" CausesValidation="False"
                                                                        CommandName="Cancel"></asp:Button>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </telerik:RadPageView>
                                                    <telerik:RadPageView runat="server" ID="RadPageView2">
                                                    </telerik:RadPageView>
                                                </telerik:RadMultiPage>
                                            </td>
                                        </tr>
                                    </table>
                                </FormTemplate>
                            </EditFormSettings>
                        </MasterTableView>
                        <ClientSettings EnableRowHoverStyle="true" ReorderColumnsOnClient="false" AllowDragToGroup="false"
                            AllowColumnsReorder="True">
                            <Scrolling AllowScroll="true" EnableVirtualScrollPaging="false" UseStaticHeaders="true" />
                            <Selecting AllowRowSelect="true" EnableDragToSelectRows="True"></Selecting>
                            <Resizing AllowRowResize="true" AllowColumnResize="True" EnableRealTimeResize="True"
                                ResizeGridOnColumnResize="False"></Resizing>
                            <ClientEvents OnRowContextMenu="RowContextMenu"></ClientEvents>
                        </ClientSettings>
                        <PagerStyle Mode="NextPrevAndNumeric" AlwaysVisible="true"></PagerStyle>
                    </telerik:RadGrid>
                    <telerik:RadContextMenu ID="RadMenu1" runat="server" OnItemClick="RadMenu1_ItemClick"
                        EnableRoundedCorners="true" EnableShadows="true">
                        <Items>
                            <telerik:RadMenuItem Text="Edit Task" />
                            <telerik:RadMenuItem Text="Complete Task" />
                        </Items>
                    </telerik:RadContextMenu>
                    <%--</ContentTemplate>
                    </asp:UpdatePanel>--%>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                      
                </td>
            </tr>
        </table>
        <asp:UpdatePanel ID="upPopups" runat="server">
            <ContentTemplate>
                <telerik:RadWindowManager ID="RadWindowManager1" runat="server">
                    <Windows>
                        <telerik:RadWindow ID="winPTD" runat="server" ShowContentDuringLoad="false" Width="400px"
                            Height="350px" BackColor="Green" Title="Search" Behaviors="Default" Animation="FlyIn"
                            Skin="Forest">
                            <ContentTemplate>
                                <div style="padding-top: 15px; padding-left: 20px; padding-right: 20px">
                                    <div>
                                        <iframe enableviewstate="false" style="width: 100%; border-style: none; border-width: 0px"
                                            id="ifrmPopups" runat="server"></iframe>
                                    </div>
                                    <asp:UpdateProgress ID="UpdateProgress2" AssociatedUpdatePanelID="upPopups" DisplayAfter="1"
                                        runat="server">
                                        <ProgressTemplate>
                                            <iframe frameborder="0" src="about:blank" class="iframestyle"></iframe>
                                            <div class="iframeDiv">
                                                <img src="Images/rotate_large.gif" alt="" />
                                            </div>
                                            <div>
                                            </div>
                                        </ProgressTemplate>
                                    </asp:UpdateProgress>
                                </div>
                            </ContentTemplate>
                        </telerik:RadWindow>
                    </Windows>
                </telerik:RadWindowManager>
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
</asp:Content>
0
Radoslav
Telerik team
answered on 15 Jul 2010, 10:35 AM
Hello Babu,

I examined the code you post and it is looks correct, however it is not runnable and I could not reproduce the described issue. Could you please try disabling the ajax from the page and let me know if any javascript or server side errors are occurred, when you click on the Edit Selected LinkButton.
Also could you please send us a simple runnable example. You could open a formal support ticket from your Telerik account and attach a ZIP file there. In that way we can reproduce and pinpoint the problems you're facing on our side, understand the logic of your application and provide a solution.
Additionally the RadSpell folder into the App_Data folder is used only when you have RadShell control and this folder is auto generated from the Visual Studio when the RadControls web site project is created.

Looking forward for your reply.

All the best,
Radoslav
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Grid
Asked by
Babu Puchakayala
Top achievements
Rank 1
Answers by
Radoslav
Telerik team
Babu Puchakayala
Top achievements
Rank 1
Share this question
or