or
<telerik:RadToolBar ID="RadToolBar1" Runat="server" Height="100%" Skin="Forest" Width="100%"> <Items> <telerik:RadToolBarButton runat="server" Text="Button1" Width="100%"> <ItemTemplate> <asp:ImageButton ID="btnoweb" runat="server" Height="50" ImageUrl="~/images/o!logo.png" Width="50" /> <asp:ImageButton ID="btnCalender" runat="server" ImageUrl="~/images/Picture5.png" OnClick="btnCalender_Click" /> <asp:ImageButton ID="btnAttach" runat="server" ImageUrl="~/images/Attach.png" /> <asp:Menu ID="mnuMenu" runat="server"> </asp:Menu> <telerik:RadMenu ID="mnuAdd" runat="server" Visible="true"> <ItemTemplate> <asp:Image ID="imgicon" runat="server" EnableViewState="true" ImageUrl="~/images/Add.png" /> </ItemTemplate> </telerik:RadMenu> <asp:ImageButton ID="btnleftIcon" Height="38px" CssClass="rtbIcon" runat="server" ImageUrl="~/images/LeftIcon.PNG" /> <asp:TextBox ID="txtsearch" runat="server" AutoPostBack="true" Font-Size="X-Large" Height="35px" onkeyup="this.onchange();" OnTextChanged="Bind_SearchBox" Width="650px" /> <asp:ImageButton ID="btnCancel" Height="38px" CssClass="rtbIcon" runat="server" ImageUrl="~/images/RightCencelButton.PNG" OnClick="btnCancel_Click" /> </ItemTemplate> </telerik:RadToolBarButton> </Items></telerik:RadToolBar><asp:ImageButton ID="btnleftIcon" Height="38px" CssClass="rtbIcon" runat="server" ImageUrl="~/images/LeftIcon.PNG" /> <asp:TextBox ID="txtsearch" runat="server" AutoPostBack="true" Font-Size="X-Large" Height="35px" onkeyup="this.onchange();" OnTextChanged="Bind_SearchBox" Width="650px" /> <asp:ImageButton ID="btnCancel" Height="38px" CssClass="rtbIcon" runat="server" ImageUrl="~/images/RightCencelButton.PNG" OnClick="btnCancel_Click" /><telerik:RadComboBox ID="radProject" AllowCustomText="false" AccessibilityMode="false" AutoPostBack="true" runat="server" DropDownWidth="240px" onselectedindexchanged="radProject_SelectedIndexChanged" EnableLoadOnDemand="true" MarkFirstMatch="true" Skin="Web20" Filter="None">| <?xml version="1.0"?> |
| <configuration> |
| <configSections> |
| <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"> |
| <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"> |
| <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" /> |
| <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"> |
| <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere" /> |
| <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" /> |
| <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" /> |
| <section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" /> |
| </sectionGroup> |
| </sectionGroup> |
| </sectionGroup> |
| </configSections> |
| <appSettings /> |
| <connectionStrings /> |
| <system.web> |
| <compilation debug="false"> |
| <assemblies> |
| <add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" /> |
| <add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" /> |
| <add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> |
| <add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" /> |
| </assemblies> |
| </compilation> |
| <authentication mode="Windows" /> |
| <pages> |
| <controls> |
| <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> |
| <add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> |
| <add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI" /> |
| </controls> |
| </pages> |
| <httpHandlers> |
| <remove verb="*" path="*.asmx" /> |
| <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> |
| <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> |
| <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false" /> |
| <add path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" validate="false" /> |
| </httpHandlers> |
| <httpModules> |
| <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> |
| <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule, Telerik.Web.UI" /> |
| </httpModules> |
| </system.web> |
| <system.codedom> |
| <compilers> |
| <compiler language="c#;cs;csharp" extension=".cs" warningLevel="4" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
| <providerOption name="CompilerVersion" value="v3.5" /> |
| <providerOption name="WarnAsError" value="false" /> |
| </compiler> |
| </compilers> |
| </system.codedom> |
| <system.webServer> |
| <validation validateIntegratedModeConfiguration="false" /> |
| <modules> |
| <remove name="ScriptModule" /> |
| <remove name="RadUploadModule" /> |
| <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> |
| <add name="RadUploadModule" preCondition="integratedMode" type="Telerik.Web.UI.RadUploadHttpModule, Telerik.Web.UI" /> |
| </modules> |
| <handlers> |
| <remove name="WebServiceHandlerFactory-Integrated" /> |
| <remove name="ScriptHandlerFactory" /> |
| <remove name="ScriptHandlerFactoryAppServices" /> |
| <remove name="ScriptResource" /> |
| <remove name="Telerik_RadUploadProgressHandler_ashx" /> |
| <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> |
| <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> |
| <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> |
| <add name="Telerik_RadUploadProgressHandler_ashx" verb="*" preCondition="integratedMode" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" /> |
| </handlers> |
| </system.webServer> |
| <runtime> |
| <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> |
| <dependentAssembly> |
| <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35" /> |
| <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0" /> |
| </dependentAssembly> |
| <dependentAssembly> |
| <assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35" /> |
| <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0" /> |
| </dependentAssembly> |
| </assemblyBinding> |
| </runtime> |
| </configuration> |
| <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="RADUpload._Default" %> |
| <!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 runat="server"> |
| <title></title> |
| </head> |
| <body> |
| <form id="form1" runat="server"> |
| <div> |
| <asp:ScriptManager runat="server" /> |
| <telerik:radprogressmanager |
| id="RadProgressManager1" |
| runat="server"/> |
| <telerik:radprogressarea |
| id="RadProgressArea1" |
| runat="server"> |
| </telerik:radprogressarea> |
| <telerik:radupload |
| id="RadUpload1" |
| runat="server"/> |
| <br /> |
| <asp:Button ID="ButtonUpload" runat="server" onclick="ButtonUpload_Click" Text="upload"/> |
| </div> |
| </form> |
| </body> |
| </html> |
| using System; |
| namespace RADUpload |
| { |
| public partial class _Default : System.Web.UI.Page |
| { |
| /// <summary> |
| /// Handles the user request to uploaded a new file. |
| /// </summary> |
| /// <param name="sender">object sender</param> |
| /// <param name="e">EventArgs e</param> |
| protected void ButtonUpload_Click(object sender, EventArgs e) |
| { |
| // Do we have an uploaded file? |
| if (RadUpload1.UploadedFiles.Count == 1) |
| { |
| // Save the temporary pic. |
| string filename = RadUpload1.UploadedFiles[0].FileName; |
| } |
| } |
| } |
| } |
| var rawProgressData = {InProgress:false,ProgressCounters:false}; |
ToolTipp = New Telerik.Web.UI.RadToolTipManager With ToolTipp .ID = "RadToolTipManager1" .RelativeTo = Telerik.Web.UI.ToolTipRelativeDisplay.Element .Position = Telerik.Web.UI.ToolTipPosition.BottomCenter .AutoTooltipify = False .ContentScrolling = Telerik.Web.UI.ToolTipScrolling.Default .Width = 150 .Height = 50 .EnableShadow = True .AutoCloseDelay = 0 'Do not auomatically close as long as mouse is on the text .ShowCallout = True .Modal = False End WithHi,
I have a RadGrid that is programmatically bonded to a dataset from data access layer. I’m trying to change the width and header text of a column in the code behind and whatever I try, the columns collection is always empty. I’ve tried using the DataBound and the PreRender events and the collection is still empty. I also tried the ColumnCreated event, but the column in the event arguments has no header text.
How can I customize the column on run time?
I’m using 2010 Q2 controls.
Thanks,
Sharon.