Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
110 views
Dear Sir,
I am using Radcontrols Q1 2007.
I have an hierarchical grid with 1 level of hierarchy. Everything works fine.
But when i do export to excel, it works on the local server, but when i deploy it to my development server, it does not work. The records instead of opening in an excel sheet, directly open on the page. The page is posted back and the records are displayed on the page itself, rather than exporting them to excel.
Please help me sort out this problem.
PS: I cannot upgrade my radcontrols version, as my client does not want to upgrade it.
Please find the code of aspx file.

<%@ Register TagPrefix="telerik" Namespace="Telerik.QuickStart" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.WebControls" Assembly="RadAjax.NET2" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.WebControls" Assembly="RadGrid.NET2" %>
 
 
<tr>
                <td class="text-bold" align="right" colspan="2">
                    <br />
                    <asp:LinkButton ID="lnkExcelExportMaster" runat="server" Text="Export to Excel (Master Data)"
                        ToolTip="Export to Excel (Master Data)" OnClick="lnkExcelMaster_OnClick" Font-Underline="true"></asp:LinkButton>
                            
                    <asp:LinkButton ID="lnkExcelExport" runat="server" Text="Export to Excel" ToolTip="Export to Excel"
                        OnClick="lnkExcel_OnClick" Font-Underline="true"></asp:LinkButton>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">                       
                        <AjaxSettings>
                            <telerik:AjaxSetting AjaxControlID="grdAccomodationDetails">
                                <UpdatedControls>
                                    <telerik:AjaxUpdatedControl ControlID="grdAccomodationDetails" />
                                </UpdatedControls>
                            </telerik:AjaxSetting>
                        </AjaxSettings>
                    </telerik:RadAjaxManager>
                    <telerik:RadGrid ID="grdAccomodationDetails" runat="server" Skin="Web20" Width="95%"
                        ShowStatusBar="true" AutoGenerateColumns="False" PageSize="30" AllowSorting="True"
                        AllowMultiRowSelection="False" AllowPaging="True" OnDetailTableDataBind="grdAccomodationDetails_DetailTableDataBind"
                        OnNeedDataSource="grdAccomodationDetails_NeedDataSource" OnItemCreated="grdAccomodationDetails_ItemCreated">
                        <PagerStyle Mode="NextPrevAndNumeric"></PagerStyle>
                        <MasterTableView Width="100%" DataKeyNames="AccomodationId" AllowMultiColumnSorting="True">
                            <DetailTables>
                                <telerik:GridTableView DataKeyNames="AccomodationDetailsId" Name="InnerAccomodationDetails"
                                    Width="80%" AutoGenerateColumns="false">                                   
                                    <Columns>
                                        <telerik:GridBoundColumn SortExpression="Name" HeaderText="Full Name" HeaderButtonType="TextButton"
                                            DataField="Name" ItemStyle-Width="25%">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn SortExpression="RegistrationNumber" HeaderText="Registration Number"
                                            HeaderButtonType="TextButton" DataField="RegistrationNumber" ItemStyle-Width="15%">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn SortExpression="Sex" HeaderText="Sex" HeaderButtonType="TextButton"
                                            DataField="Sex" ItemStyle-Width="5%">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn SortExpression="Age" HeaderText="Age" HeaderButtonType="TextButton"
                                            DataField="Age" ItemStyle-Width="5%">
                                        </telerik:GridBoundColumn>
                                    </Columns>
                                </telerik:GridTableView>
                            </DetailTables>
                            <Columns>
                                <telerik:GridBoundColumn SortExpression="AccomodationId" HeaderText="Accomodation Id"
                                    HeaderButtonType="TextButton" DataField="AccomodationId" ItemStyle-Width="15%">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn SortExpression="FirstName" HeaderText="First Name" HeaderButtonType="TextButton"
                                    DataField="FirstName">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn SortExpression="MiddleName" HeaderText="Middle Name" HeaderButtonType="TextButton"
                                    DataField="MiddleName">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn SortExpression="LastName" HeaderText="Last Name" HeaderButtonType="TextButton"
                                    DataField="LastName">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn SortExpression="MobileNumber" HeaderText="Mobile Number"
                                    HeaderButtonType="TextButton" DataField="MobileNumber">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn SortExpression="CountofPeople" HeaderText="Total Count"
                                    HeaderButtonType="TextButton" DataField="CountofPeople">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn SortExpression="Address" HeaderText="Address" HeaderButtonType="TextButton"
                                    DataField="Address" Visible="false">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn SortExpression="ResidenceNumber" HeaderText="Residence Number"
                                    HeaderButtonType="TextButton" DataField="ResidenceNumber" Visible="false">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn SortExpression="EmailAddress" HeaderText="Email Address"
                                    HeaderButtonType="TextButton" DataField="EmailAddress" Visible="false">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn Visible="false" HeaderText="Arrival Date" HeaderButtonType="TextButton"
                                    HeaderStyle-HorizontalAlign="Center" DataField="ArrivalDate" DataFormatString="{0:MMM dd, yyyy}">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn Visible="false" HeaderText="Departure Date" HeaderButtonType="TextButton"
                                    HeaderStyle-HorizontalAlign="Center" DataField="DepartureDate" DataFormatString="{0:MMM dd, yyyy}">
                                </telerik:GridBoundColumn>
                            </Columns>
                        </MasterTableView>
                        <ClientSettings ReorderColumnsOnClient="True" AllowDragToGroup="True" AllowColumnsReorder="True">
                            <Selecting AllowRowSelect="true" />
                            <Resizing AllowRowResize="False" AllowColumnResize="True"></Resizing>
                        </ClientSettings>
                    </telerik:RadGrid>
                    <br />
                </td>
            </tr>

The cs code is as follows.
#region ===== NeedDataSource Event of Grid =====
   protected void grdAccomodationDetails_NeedDataSource(object source, Telerik.WebControls.GridNeedDataSourceEventArgs e)
   {
       try
       {
           if (!e.IsFromDetailTable)
           {
               grdAccomodationDetails.DataSource = megautsav.GetMegaUtsavAccomodations();
           }
       }
       catch (Exception ex)
       {
           LogHandler.LogError(long.Parse(Session["UserId"].ToString()), LogHandler.APPLICATION_ERROR, ex.StackTrace.ToString(), ex.Message.ToString());
           Response.Redirect("../Error.aspx?errmsg=" + HttpUtility.UrlEncode(ex.Message.ToString()));
       }
   }
   #endregion
 
   #region ===== Binding Detail Tables of Grid =====
   protected void grdAccomodationDetails_DetailTableDataBind(object source, Telerik.WebControls.GridDetailTableDataBindEventArgs e)
   {
       try
       {
           Telerik.WebControls.GridDataItem dataItem = (Telerik.WebControls.GridDataItem)e.DetailTableView.ParentItem;
           switch (e.DetailTableView.Name)
           {
               case "InnerAccomodationDetails":
                   {
                       string accomodationId = dataItem.GetDataKeyValue("AccomodationId").ToString();
                       e.DetailTableView.DataSource = megautsav.GetMegaUtsavAccomodationDetails(int.Parse(accomodationId));
                       break;
                   }
           }
       }
       catch (Exception ex)
       {
           LogHandler.LogError(long.Parse(Session["UserId"].ToString()), LogHandler.APPLICATION_ERROR, ex.StackTrace.ToString(), ex.Message.ToString());
           Response.Redirect("../Error.aspx?errmsg=" + HttpUtility.UrlEncode(ex.Message.ToString()));
       }
   }
   #endregion
 
   #region ===== ItemCreated Event of Grid =====
   protected void grdAccomodationDetails_ItemCreated(object source, Telerik.WebControls.GridItemEventArgs e)
   {
       if (isExport && (e.Item.ItemType == Telerik.WebControls.GridItemType.Item || e.Item.ItemType == Telerik.WebControls.GridItemType.AlternatingItem || e.Item.ItemType == Telerik.WebControls.GridItemType.Header))
       {
           e.Item.Cells[0].Visible = false;
       }
   }
   #endregion
 
   #region ===== Click of Export to Excel Linkbutton =====
   protected void lnkExcel_OnClick(object sender, EventArgs e)
   {
       try
       {
           isExport = true;
           grdAccomodationDetails.ExportSettings.ExportOnlyData = true;
           grdAccomodationDetails.ExportSettings.OpenInNewWindow = true;
 
           string fileName = "MegaMahotsav Accomodation Details";
           grdAccomodationDetails.ExportSettings.FileName = fileName;
           grdAccomodationDetails.MasterTableView.Width = Unit.Pixel(300);
            
 
           grdAccomodationDetails.MasterTableView.CommandItemDisplay = Telerik.WebControls.GridCommandItemDisplay.None;
           grdAccomodationDetails.MasterTableView.ShowFooter = false;
           grdAccomodationDetails.MasterTableView.ClearEditItems();
           grdAccomodationDetails.MasterTableView.ClearSelectedItems();
           grdAccomodationDetails.MasterTableView.HierarchyDefaultExpanded = true;           
           grdAccomodationDetails.MasterTableView.AllowPaging = false;           
            
           foreach (Telerik.WebControls.GridBoundColumn column in grdAccomodationDetails.MasterTableView.Columns)
           {
               column.Visible = true;
           
           grdAccomodationDetails.Rebind();
           grdAccomodationDetails.GridLines = GridLines.Both;
           grdAccomodationDetails.MasterTableView.ExportToExcel();
           grdAccomodationDetails.MasterTableView.AllowPaging = true;
       }
       catch (Exception ex)
       {
           throw (ex);
       }
   }
   #endregion
 
   #region ===== Click of Export to Excel (Master Data) Linkbutton =====
   protected void lnkExcelMaster_OnClick(object sender, EventArgs e)
   {
       try
       {
           isExport = true;
           grdAccomodationDetails.ExportSettings.ExportOnlyData = true;
           grdAccomodationDetails.ExportSettings.OpenInNewWindow = true;
 
           string fileName = "MegaMahotsav Accomodation Details Master";
           grdAccomodationDetails.ExportSettings.FileName = fileName;
           grdAccomodationDetails.MasterTableView.Width = Unit.Pixel(300);
 
           grdAccomodationDetails.MasterTableView.CommandItemDisplay = Telerik.WebControls.GridCommandItemDisplay.None;
           grdAccomodationDetails.MasterTableView.ShowFooter = false;
           grdAccomodationDetails.MasterTableView.ClearEditItems();
           grdAccomodationDetails.MasterTableView.ClearSelectedItems();
           grdAccomodationDetails.MasterTableView.HierarchyDefaultExpanded = false;
           grdAccomodationDetails.MasterTableView.AllowPaging = false;
 
           foreach (Telerik.WebControls.GridBoundColumn column in grdAccomodationDetails.MasterTableView.Columns)
           {
               column.Visible = true;
           }
           grdAccomodationDetails.Rebind();
           grdAccomodationDetails.GridLines = GridLines.Both;
           grdAccomodationDetails.MasterTableView.ExportToExcel();
           grdAccomodationDetails.MasterTableView.AllowPaging = true;
       }
       catch (Exception ex)
       {
           throw (ex);
       }
   }
   #endregion
Manish
Top achievements
Rank 1
 answered on 15 Nov 2010
2 answers
71 views
I have a simple form with several dropdowns and a Submit button.  I set EnableAutomaticLoadOnDemand="true" on the dropdowns and set the data source in the codebehind like this:

RadComboBox1.DataSource = Context.GetItems()

But I do not call DataBind().

GetItems() is a simple LINQ query that returns an IQueryable.  This is an example:
sch = from h in Context.LktSchoolYearOutcomesENT
                      where !h.Deleted
                      orderby h.LkSchoolYearOutcomeENT.SchoolYearOutcome ascending
                      select new NameValuePair
                      {
                          Name = h.LkSchoolYearOutcomeENT.SchoolYearOutcome,
                          Value = h.LkSchoolYearOutcomeENT.OutcomeId
                      };


When I load the page, submit the form, or click on one of the dropsdowns, every single dropdown does a round trip SELECT from the data source before submitting.  Why is this? 
msigman
Top achievements
Rank 2
 answered on 15 Nov 2010
3 answers
77 views
Hi,

I have the following situation.
I've made a customized Telerik Skin called GUSkin.
I build it to have a final DLL containing all css and images for using it with RadStyleSheetManager (so I can compress them ;-P).
I let my developper do their own css changes by using the classic ASP theme technique.
 Here the problem.

The final code of my skin override the css defined in the ASP Theme folder because the RadStyleSheetManager puts the reference to my customized skin at the end of the head tag of my page:
<head>
   
  <link rel="stylesheet" type="text/css" href="../../App_Themes/GuSkin/GU.css">
  <link rel="stylesheet" type="text/css" href="../../App_Themes/GuSkin/GUIE.css">
  <link rel="stylesheet" type="text/css" href="../../App_Themes/GuSkin/guPrestation.css">
   
  <title>Title</title>
   
  <meta content="no-cache" http-equiv="Pragma">
  <meta content="-1" http-equiv="Expires">
  <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type">
   
  <style type="text/css">
      /* FIX FOR IE 8 Font inconsistency*/
      .RadForm .riTextBox
      {
          font-family: "Segoe UI", Arial, Helvetica, sans-serif !important;
      }
  </style>
   
  <link rel="stylesheet" type="text/css" href="/mysite/Telerik.Web.UI.WebResource.axd?compress=1&_TSM_CombinedScripts_=%3b%3bGuTelerikSkins%3afr-CH%3aebb84cb8-7274-41c6-ae46-f01325da7dfd%3a342f89e1%3ab5feda7d%3ac6c2ea7f%3a13647808%3a696827c7%3bTelerik.Web.UI%2c+Version%3d2010.2.713.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3afr-CH%3a1814ab69-dbf3-46be-b5e4-1b4e7d85f183%3aef4a543%3aed2942d4%3aaac1aeb7%3ac73cf106%3ac86a4a06%3a4c651af2%3a1c2121e%3ae24b8e95%3a9e1572d6%3a8cee9284%3aed057d30%3aa3b7d93f%3ab2b77c33%3a5c10e89c%3a4d471440%3a169db17e%3a1f65231b%3a7f7626a2%3a92753c09%3a91f742eb">
</head>
So when a developper need to change for exemple the border color of a asp:TextBox the RadFormDecorator included in the Skin override the code in Themes CSS.

Is there a way to put Theme css at end of head tag after the telerik one?

Thanks in advance for helping! Your support is great!

Pascal
Kamen Bundev
Telerik team
 answered on 15 Nov 2010
9 answers
165 views
I just installed the new 2010 Q3 version and I cannot find the project update program. Am I missing something? How to I convert my VS2010 project from using Telerik controls 2010 Q2 to 2010 Q3 without removing and adding the referenences manually?

Thanks
Brian Scott
Top achievements
Rank 1
 answered on 15 Nov 2010
2 answers
148 views

Quick question - What's the best way to access a control in a nested GridTableView (specifically lblPassword below) in the code behind?  The password is encrypted in the database and I need to decrypt before displaying on the web page.  

<telerik:RadGrid runat="server" ID="gridDatabases" AutoGenerateColumns="False"
    GridLines="None" Skin="Windows7" Width="100%"                 
    DataSourceID="LinqDataSourceDatabases" 
    OnItemDataBound="gridDatabases_ItemDataBound">
    <MasterTableView DataSourceID="LinqDataSourceDatabases" DataKeyNames="ID">
        <DetailTables>
            <telerik:GridTableView DataKeyNames="ID" DataSourceID="LinqDataSourceUsers" runat="server">
                <ParentTableRelation>
                    <telerik:GridRelationFields DetailKeyField="ID" MasterKeyField="DatabaseDetailID" />                                
                </ParentTableRelation>
                <Columns>
                    <telerik:GridBoundColumn DataField="UserName" HeaderText="User Name" SortExpression="UserName" UniqueName="UserName" />
                    <telerik:GridTemplateColumn HeaderText="Password">
                        <ItemTemplate>
                            <asp:Label runat="server" ID="lblPassword" />
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                </Columns>
            </telerik:GridTableView>
        </DetailTables>
        <ExpandCollapseColumn Visible="True">
        </ExpandCollapseColumn>
        <Columns>
            <telerik:GridBoundColumn DataField="DatabaseName" HeaderText="Database" />
        </Columns>
    </MasterTableView>
</telerik:RadGrid>


I thought I could use the OnItemDatabound event, like this, but I can't seem call FindControl to drill down to get to the nested label control.  This is basically what I'm trying to accomplish, and this would work if the control wasn't in a nested table.

protected void gridUserDetails_ItemDataBound(object sender, GridItemEventArgs e)
{
    if (e.Item.ItemType == GridItemType.Item || e.Item.ItemType == GridItemType.AlternatingItem)
    {
        GridDataItem gridItem = (GridDataItem)e.Item;
        UserDetail userDetail = (UserDetail)gridItem.DataItem;
        Label lblPassword = (Label)gridItem.FindControl("lblPassword");
        string decryptedPassword = DecryptPassword(userDetail.Password);
        lblPassword.Text = decryptedPassword;
    }
}

Any help is greatly appreciated!  Thanks.
Mike
Top achievements
Rank 2
 answered on 15 Nov 2010
1 answer
82 views
Hey,

We have more or less the same issue as "mic" here: Forum post: Targeting a new or blank window.

In short, we are using RadPanelBar as our Quick Launch menu* in SharePoint 2007. When adding a new link to the menu through site settings --> navigation, there is, as mic wrote, the possibility of selecting a check box to enable the "Open in a new window" option. Selecting this option has no effect.

Mic's post is nearly two years old. Is this issue something that has been looked into and if so, has it been resolved?

Regards,
Esp


Telerik.com: Replacing a SharePoint master page's default Quick Launch menu with RadPanelbar
Kalina
Telerik team
 answered on 15 Nov 2010
2 answers
96 views
HI,

I have a Requirement that  Rad Upload inside Ajax Modal Popup Extender.
when i implementing  i getting radupload.uploadfiles.count is 0 (Zero).

Following is the  Aspx code .

                <asp:UpdatePanel ID="updHead" runat="server">
                    <ContentTemplate>
<Ajax:ModalPopupExtender ID="mpeRespond" runat="server" TargetControlID="lblRespond"
                                BackgroundCssClass="modalBackground" PopupControlID="divRespond" CancelControlID="lblRespond"
                                DynamicServicePath="" Enabled="True" />
                            <asp:Label ID="lblRespond" runat="server" meta:resourcekey="lblRespondResource1"></asp:Label>
                            <div id="divRespond" style="display: none; width: 60%;" runat="server" class="popup">
                                <div class="popUpTitle">
                                    <asp:Label ID="lblResponseHead" runat="server" Text="Response" meta:resourcekey="lblResponseHeadResource1"></asp:Label></div>
                                <div class="popupContent">
                                    <div class="infoContainer">
                                        <div class="infoContent">
                                            <span class="mandetory">*</span> Indicates Mandatory Fields.</div>
                                    </div>
                                    <asp:Label ID="lblmsg" runat="server" Visible="False" ForeColor="Red" Font-Bold="True"
                                        meta:resourcekey="lblmsgResource1"></asp:Label>
                                    <span class="mandetory">*</span>
                                    <asp:Label ID="lblShortDesc" runat="server" CssClass="formLabelL" meta:resourcekey="lblShortDescResource1">Short Description : </asp:Label><br />
                                    <asp:RegularExpressionValidator ID="revSubject" runat="server" ControlToValidate="txtShortdesc"
                                        ValidationExpression="[^<>]+" ErrorMessage="Short Description <br/> should not contain '<' '>'"
                                        Display="None" Width="600px" ValidationGroup="Mandatory" meta:resourcekey="revSubjectResource1"></asp:RegularExpressionValidator>
                                    <asp:RequiredFieldValidator ID="rfvShortdesc" runat="server" ControlToValidate="txtShortdesc"
                                        ErrorMessage="Enter<br/>Response<br/>Short<br/>Description" Display="None" ValidationGroup="Mandatory"
                                        meta:resourcekey="rfvShortdescResource1"></asp:RequiredFieldValidator>
                                    <Ajax:ValidatorCalloutExtender ID="vceShortdesc1" runat="server" TargetControlID="revSubject"
                                        Enabled="True">
                                    </Ajax:ValidatorCalloutExtender>
                                    <Ajax:ValidatorCalloutExtender ID="vceshored2" runat="server" TargetControlID="rfvShortdesc"
                                        Enabled="True">
                                    </Ajax:ValidatorCalloutExtender>
                                    <asp:TextBox ID="txtShortdesc" runat="server" Height="50px" TextMode="MultiLine"
                                        MaxLength="140" Width="90%" ToolTip="Enter Short Description For Your Response"
                                        TabIndex="1" onKeyDown="textCounter(140)" onKeyUp="textCounter(140)" meta:resourcekey="txtShortdescResource1"></asp:TextBox>
                                    <div class="info">
                                        <input id="count" readonly="readonly" runat="server" type="text" maxlength="3" value="140"
                                            class="mybox" style="text-align: right;" />
                                        characters left</div>
                                        <asp:UpdatePanel runat ="server" UpdateMode="Always" ><ContentTemplate >
                                    <div>
                                        <table>
                                            <tr align="left" id="trlnkAttach" runat="server">
                                                <td style="background: #f6f4eb; border-top: 1px solid #e8e8e5;">
                                                </td>
                                                <td valign="top" style="text-align: right; background: #f6f4eb; border-top: 1px solid #e8e8e5;">
                                                    <img style="border-width: 0px;" src="../App_Themes/Default/Images/Icons/attachment.png" alt ="Click Here To Attach Files"><asp:LinkButton
                                                        ID="lnkAttach" runat="server" Text="Attach Files" ToolTip="Click Here To Attach Files"
                                                        TabIndex="4"></asp:LinkButton>
                                                </td>
                                            </tr>
                                            <tr id="trupload" align="right" runat="server" visible="true">
                                                <td style="background: #f6f4eb;">
                                                </td>
                                                <td valign="top" style="text-align: left; padding: 2px; background: #f6f4eb;">
                                                    <asp:Panel runat="server" ID="pnlRadUpload">
                                                        <table cellpadding="2" cellspacing="0" border="0">
                                                            <tr align="left">
                                                                <td align="left">
                                                                    <telerik:RadUpload ID="RadUploadAttachs" ReadOnlyFileInputs="True" Skin="Outlook"
                                                                        runat="server" TabIndex="5" Width="600px" OnValidatingFile="RadUploadAttachs_ValidatingFile"
                                                                        OnClientFileSelected="checkExtension" ControlObjectsVisibility="RemoveButtons, AddButton"
                                                                        InputSize="55">
                                                                        <Localization Select="Browse" />
                                                                    </telerik:RadUpload>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td style="background: #f6f4eb;">
                                                                    &nbsp;
                                                                </td>
                                                            </tr>
                                                            <tr align="left">
                                                                <td align="left" style="background: #f6f4eb;">
                                                                  
                                                                       <asp:Label ID="lblFileInfo" Text="Files Information :" runat="server" meta:resourcekey="lblFileInfoResource1"></asp:Label></span>
                                                                       
                                                                </td>
                                                            </tr>
                                                            <tr align="left">
                                                                <td align="left" style="background: #f6f4eb;">
                                                                    <span style="color: #333; font-size: 11px;">
                                                                        <asp:Label ID="lblUpdInfo" runat="server" Width="600px" meta:resourcekey="lblUpdInfoResource1"></asp:Label></span>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </asp:Panel>
                                                    <Ajax:CollapsiblePanelExtender runat="server" ID="AjaxCPE" TargetControlID="pnlRadUpload"
                                                        CollapseControlID="lnkAttach" ExpandControlID="lnkAttach" Collapsed="True" CollapsedSize="0"
                                                        ExpandedText="Attach Files" TextLabelID="lnkAttach" SuppressPostBack ="true"   Enabled="True">
                                                    </Ajax:CollapsiblePanelExtender>
                                                </td>
                                            </tr>
                                        </table>
                                    </div>
                                    </ContentTemplate></asp:UpdatePanel>
                                    <asp:Label ID="lblLongDesc" runat="server" CssClass="formLabelL" meta:resourcekey="lblLongDescResource1">Detailed Description : </asp:Label><br />
                                    <custom:CustomEditor ID="txtLongDesc" runat="server" NoScript="True" AutoFocus="False"
                                        TabIndex="2" ToolTip="Enter Detailed Decription For Your Response" meta:resourcekey="txtLongDescResource1">
                                    </custom:CustomEditor>
                                </div>
                                <div class="popBtn">
                                    <div class="popBtnContent">
                                        <asp:Button ID="btnSave" runat="server" Text="Save" ValidationGroup="Mandatory" ToolTip="Click Here To Save"
                                            TabIndex="3" OnClick="btnSave_Click" CssClass="button" meta:resourcekey="btnSaveResource1" />
                                        <asp:Button ID="btnCancel" runat="server" Text="Cancel" CssClass="cancelBtn" CausesValidation="False"
                                            ToolTip="Click Here To Cancel" TabIndex="4" OnClick="btnCancel_Click" meta:resourcekey="btnCancelResource1" />
                                    </div>
                                </div>
                            </div>
                        </div>
  </ContentTemplate>
                </asp:UpdatePanel>


Sebastian
Telerik team
 answered on 15 Nov 2010
3 answers
91 views
I am getting a javascript error "fileInput is undefined" when the radasyncupload control validats for file size on the client. Here is my declaration:

 
<script type="text/javascript">
                                    Telerik.Web.UI.RadAsyncUpload.Modules.Flash.isAvailable = function() { return false; }
                                </script>
                                <telerik:RadAsyncUpload runat="server" 
                                                        ID="rauResume" 
                                                        Skin="Office2007" 
                                                                                                                ReadOnlyFileInputs="true" 
                                                                                                                MultipleFileSelection="Disabled"
                                                        MaxFileInputsCount="1"
                                                        MaxFileSize="409"
                                                        >
                                </telerik:RadAsyncUpload>
Yana
Telerik team
 answered on 15 Nov 2010
3 answers
38 views
Hey everyone,

I am using a radgrid,with manual insert,delete and updates from external button clicks.I just want to know how can i use loading panel when debugger runs to these events.I am trying this--
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" DefaultLoadingPanelID="RadAjaxLoadingPanel1">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="RadGrid1">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="btnSearch">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager>
        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Hay"
            EnableSkinTransparency="true" Transparency="30">
        </telerik:RadAjaxLoadingPanel>

the first one is doing fine,but as i want this to be visible on btnSearch_Click.And after this OnClick event is not firing.Nothing happens.How to do this?...

Thanks
Amit
Pavlina
Telerik team
 answered on 15 Nov 2010
6 answers
276 views
As described in my previous post, I've created a custom field editor for the RadFilter and restricted the available filter functions in the filter menu. The available functions are Contains, DoesNotContain, IsEmpty, and NotIsEmpty. When the editor is first created, however, the default filter function selected is EqualTo - even though EqualTo is not allowed in the menu. I've attached a screenshot where you can see EqualTo is selected even though it isn't in the list of available filter functions.

I'm guessing that since I'm hiding the filter menu items client-side, the RadFilter doesn't know that EqualTo is not a valid selection for a filter function when creating the new field editor server-side. How can I change the default filter function for my custom field editor to be Contains instead of EqualTo?
Campus Labs
Top achievements
Rank 1
 answered on 15 Nov 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?