| Response.Clear() |
| Response.Charset = "" |
| ''set the response mime type for excel |
| Response.ContentType = "application/vnd.ms-excel" |
| HttpContext.Current.Response.AddHeader("content-disposition", "attachment;filename=1.xls") |
| Dim sw As New StringWriter |
| Server.Execute(Session("ReportFile"), sw) |
| Response.Write(sw.ToString.Replace("<div", "<span").Replace("</div", "</span").Replace("<input id=""ctl00_PageContent", "<span id=""ctl00_PageContent")) |
| Response.End() |
| <telerik:RadGrid ID="dgMonth" runat="server" ShowGroupPanel="False" RecordType="Deposit" AutoGenerateColumns="True" EnableEmbeddedskins="false" |
| RecordCountString="Total Record Count: {0}" Width="700px" RecordCountCssClass="" InsertMode="1" InsertInDialogWindow="0" EnableAJAXLoadingTemplate="True" |
| DataActiveField="Active" BorderWidth="1px" ShowFooter="True" GridLines="None" PagerStyleVisible="False" FooterStyle-BackColor="AliceBlue" > |
| <PagerStyle Mode="NextPrevAndNumeric" Position="TopAndBottom" Visible="False" /> |
| <ClientSettings AllowDragToGroup="True"></ClientSettings> |
| <MasterTableView CommandItemDisplay="Top" ShowHeader="True" Width="100%" DataKeyNames="MonthlyDate" ShowFooter="true" EditMode="InPlace"> |
| <EditFormSettings> |
| <PopUpSettings ScrollBars="None"></PopUpSettings> |
| </EditFormSettings> |
| <CommandItemTemplate> |
| <asp:LinkButton ID="lnkInsert" runat="server" Visible="false" CommandName="InitInsert" CausesValidation="false"> <img style="border:0px" alt="" src="../images/AddRecord.gif" />Add New Interim Deposit</asp:LinkButton> |
| </CommandItemTemplate> |
| <CommandItemSettings AddNewRecordImageUrl="AddRecord.gif" RefreshImageUrl="Refresh.gif"> |
| </CommandItemSettings> |
| <FooterStyle BackColor="White" ForeColor="Black" Font-Size="12pt" |
| Font-Bold="False" HorizontalAlign="Right" /> |
| </MasterTableView> |
| <HeaderContextMenu EnableEmbeddedSkins="False" EnableTheming="True"> |
| <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> |
| </HeaderContextMenu> |
| <FilterMenu EnableEmbeddedSkins="False" EnableTheming="True"> |
| <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> |
| </FilterMenu> |
| </telerik:RadGrid> |
Hi ,
Is there any option to set custom sort image url?
I tried with SortAscImgUrl and SortDscImg url.
But i am getting the image with white Backgroud .Attached the Screen shot.
Is there any option to set custom url or any reffrence link
Thanks
senthil
Several years ago we built an application that utilizes the RadTreeView control. The application worked fine upon deployment to the web server. Recently, the customer who owns the application switched hosting companies. Since the switch, the page that uses the RadTreeView control will not render completely on the new company's web server.
The symptoms of the problem are that the page begins to load, then will hang indefinitely. All other pages on the site work properly. Viewing the source, one can see that the page rendering seems to stop mid-line before the entire tree view markup is sent to the browser. The problem can be seen on this test page: Tree View Rendering Problem Example
The markup for the test page has been made very simple. There is no code-behind being utilized:
| <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RenderTest.aspx.cs" Inherits="Virtuoso.RenderTest" Theme="Admin"%> |
| <%@ Register Assembly="RadTreeView.Net2" Namespace="Telerik.WebControls" TagPrefix="rad" %> |
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| <html xmlns="http://www.w3.org/1999/xhtml" > |
| <head id="Head1" runat="server"> |
| <title>Untitled Page </title> |
| </head> |
| <body> |
| <form id="form1" runat="server"> |
| <rad:RadTreeView ID="rtvMenu" runat="server" DragAndDrop="true" MultipleSelect="false" |
| DataSourceID="SiteMapDataSource1" EnableViewState="true" AutoPostBack="true" |
| DataTextField="Title" DataFieldID="SiteMapMenuID" DataFieldParentID="Parent" |
| Skin="Web20" > |
| </rad:RadTreeView> |
| <asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" SiteMapProvider="SqlSiteMapProvider" /> |
| </form> |
| </body> |
| </html> |
I have done some experimentation and determined that the TreeView will render completely if it is not bound to the SiteMapDataSource.
Obviously, since the test code works fine in our development environment, on our test server and worked fine for over a year at the previous hosting company's server, it appears to be an issue with the server of the new host provider. However, as a developer I will be expected to contact the hosting company and explain to them what needs to be done to fix the problem. From my previous dealings with this hosting company, I am skeptical they have the knowledge to fix the issue without me telling them exactly the steps to take. However, I am at a loss as to what could cause this issue.
I would appreciate any insight into how this could be resolved. Thanks!
I have this in a test page
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm3.aspx.cs" Inherits="PulsionTechnology.RefugeeCouncil.WebForm3" %>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<telerik:RadScriptManager runat="Server" ID="RadScriptManager1" />
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="RadScheduler1">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="RadScheduler1" LoadingPanelID="RadAjaxLoadingPanel1" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManager>
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" />
<telerik:RadScheduler runat="server" ID="RadScheduler1" Width="500px" TimeZoneOffset="03:00:00"
SelectedDate="2007-03-30" DayStartTime="08:00:00" DayEndTime="18:00:00"
OnDataBound="RadScheduler1_DataBound" Skin="WebBlue">
<Localization AdvancedAllDayEvent="All day"></Localization>
<AdvancedForm Modal="true" />
</telerik:RadScheduler>
</div>
</form>
</body>
</html>
And Code Behind
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Telerik.Web.UI;
namespace PulsionTechnology.RefugeeCouncil
{
public partial class WebForm3 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
// You can safely ignore this method.
// Its purpose is to limit the changes to the underlying data only to the active user session.
protected void Page_Init(object sender, EventArgs e)
{
XmlSchedulerProvider provider;
provider = new XmlSchedulerProvider(Server.MapPath("~/App_Data/Appointments.xml"), false);
RadScheduler1.Provider = provider;
}
protected void RadScheduler1_DataBound(object sender, EventArgs e)
{
// Turn off the support for multiple resource values.
foreach (ResourceType resType in RadScheduler1.ResourceTypes)
{
resType.AllowMultipleValues = false;
}
}
}
}
I am getting a postback and no ajax asynchronous postback - what am I missing?