Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
50 views
Working on a grid display of Scheduler Appointments and thought the MultiDayView.NumberOfDays was how one would limit the number of days shown. Seems no matter what I get every appt in the database.
Dimitar Milushev
Telerik team
 answered on 01 Jul 2010
1 answer
105 views
The CSS classes of the four navigation buttons are rcFastPrev, rcPrev, rcNext and rcFastNext.
We can remove the navigation buttons by using

 

    function calendarLoad(sender, args) {

 

    $telerik.$(

".rcPrev").removeClass("rcPrev");

 

    $telerik.$(

".rcNext").removeClass("rcNext");

 

    $telerik.$(

".rcFastPrev").removeClass("rcFastPrev");

 

    $telerik.$(

".rcFastNext").removeClass("rcFastNext");

 

    }

Then if we set the

 

NavigationPrevText

 

="&lt; Prev" NavigationNextText="Next &gt;", we can navigate using <Prev and Next>. But then how can we munipulate the cell containing "<Prev" and "Next>"? I mean the font, background color, fore color, etc.

Thanks for help!

Joseph Hua

 

Dimo
Telerik team
 answered on 01 Jul 2010
2 answers
106 views
Hi everybody,

I have some simple problem during my data insertion. I use one item grid as int32 and the data is mandatory by the grid. How to allow my user to no insert anythink if no need ? Actually is returning one error if no data added in this cell.

Thanks for your tip.
Pierre
Top achievements
Rank 1
 answered on 01 Jul 2010
2 answers
114 views
Hi,

I have a Radgrid showing some data.
The grid has a Refresh link as default.

In the same page, I have a RadWindow which opens a ASPX page in itself.
To fire this RadWindow, I have a Button click server side method as below:

protected void BtnAddAction_Click(object sender, EventArgs e)
{
        Window1.VisibleOnPageLoad = true;
        Window1.Width = 575;
        Window1.Height = 625;
}

However when I click the Refresh or Edit command button in the grid, the RadWindow shows up.

Please help.

Thanks,
Debashis
Debashis Pyne
Top achievements
Rank 1
 answered on 01 Jul 2010
1 answer
357 views
Hello Telerik Team,

I have developed my application similar to this.
I have two tabs with UserControls loaded inside them (Multipageview_created) and I would like to implement the logic where, If I click on a link on  tab2, it should load a new tab with different tab name (like tab2_abc) that would restore the pagestate in Tab2.
I am able to get the pagestate (which gives me for both tabs) and if I follow the Addtab(...) method to dynamically create a new tab, I get the
error: Obj ref not set to instance of obj.... near RadTabStrip1.tabs.add(...)
So, the issue is new tab cannot be added dynamically to load a new radpageview into it on Postback.
Yana
Telerik team
 answered on 01 Jul 2010
3 answers
168 views
How can I hide a column in a detail table (code behind). I already tried the "ComumnCreated" event, but UniqueName is always "ExpandColumn"...

ASPX:

<

 

 

telerik:GridTemplateColumn HeaderText="Ansvarligt kontor" UniqueName="AnsvarligtKontor" >

VB:

 

 

 

Private

 

 

Sub rgStrategiskPrioritering_ColumnCreated(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridColumnCreatedEventArgs) Handles rgStrategiskPrioritering.ColumnCreated

 

 

 

   Response.Write(

 

"ColumnName: " & e.Column.UniqueName)

 

 

 

End Sub

 

 

 

 

 

 

 

Martin
Telerik team
 answered on 01 Jul 2010
14 answers
543 views
Hi there,
our applications run with embedded scripts switched off and the scripts served from a separate domain. We now have a need to use the RADEditor, but the streamed popup windows (link manager, image manager, etc.) cause javascript errors. I have confirmed this with a small project as follows:

VS2008 SP1
.Net framework 3.5 SP1
Telelerik DLL 2008.2.826.35

script folder containing all external scripts:
~/script/telerik/* (all telerik scripts)
~/script/ajax/System.Web.Extensions/3.5.0.0/3.5.21022.8/* (MS Ajax 3.5)
~/script/ajax/System.Web.Extensions/3.5.0.0/3.5.30729.1/* (MS Ajax 3.5 SP1)

Default.aspx:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="RadEditor._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>Untitled Page</title> 
</head> 
<body> 
    <form id="form1" runat="server"> 
    <div> 
        <telerik:radscriptmanager runat="server" id="TelerikScriptManager" enablescriptcombine="false" enablepartialrendering="true" loadscriptsbeforeui="false" enableviewstate="false" enablescriptglobalization="true" enablescriptlocalization="true" scriptmode="Release" /> 
        <telerik:radeditor runat="server" id="radEditor1" enabletheming="True" stripformattingonpaste="AllExceptNewLines" toolsfile="~/EditorTools.xml" newlinebr="False" language="en-GB"> 
            <Content> 
            </Content> 
        </telerik:radeditor> 
    </div> 
    </form> 
</body> 
</html> 
 

Default.aspx.cs:
using System; 
using System.Collections; 
using System.Configuration; 
using System.Data; 
using System.Linq; 
using System.Web; 
using System.Web.Security; 
using System.Web.UI; 
using System.Web.UI.HtmlControls; 
using System.Web.UI.WebControls; 
using System.Web.UI.WebControls.WebParts; 
using System.Xml.Linq; 
using Telerik.Web.UI; 
 
namespace RadEditor 
{ 
    public partial class _Default : System.Web.UI.Page 
    { 
        protected void Page_Load(object sender, EventArgs e) 
        { 
            if (ConfigurationManager.AppSettings["Telerik.EnableEmbeddedScripts"].ToLower() == "false") 
            { 
                ScriptManager manager = System.Web.UI.ScriptManager.GetCurrent(this.Page); 
 
                // Microsoft Ajax 
                manager.ScriptPath = "~/script/ajax"; 
 
                // Telerik Scripts 
                manager.Scripts.Add(new ScriptReference("~/script/telerik/Common/Core.js")); 
                manager.Scripts.Add(new ScriptReference("~/script/telerik/Common/Popup/PopupScripts.js")); 
                manager.Scripts.Add(new ScriptReference("~/script/telerik/Editor/RadEditor.js")); 
                manager.Scripts.Add(new ScriptReference("~/script/telerik/Dialogs/DialogOpener.js")); 
                manager.Scripts.Add(new ScriptReference("~/script/telerik/Editor/Modules.js")); 
                manager.Scripts.Add(new ScriptReference("~/script/telerik/Spell/SpellCheckService.js")); 
                manager.Scripts.Add(new ScriptReference("~/script/telerik/Editor/AjaxSpellCheck.js")); 
                manager.Scripts.Add(new ScriptReference("~/script/telerik/Window/RadWindow.js")); 
            } 
        } 
    } 
} 

Web.Config:
<?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> 
    <add key="Telerik.EnableEmbeddedScripts" value="false"/> 
  </appSettings> 
  <connectionStrings/> 
  <system.web> 
    <!--  
            Set compilation debug="true" to insert debugging  
            symbols into the compiled page. Because this  
            affects performance, set this value to true only  
            during development. 
        --> 
    <compilation debug="true"> 
      <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> 
    <!-- 
            The <authentication> section enables configuration  
            of the security authentication mode used by  
            ASP.NET to identify an incoming user.  
        --> 
    <authentication mode="Windows"/> 
    <!-- 
            The <customErrors> section enables configuration  
            of what to do if/when an unhandled error occurs  
            during the execution of a request. Specifically,  
            it enables developers to configure html error pages  
            to be displayed in place of a error stack trace. 
 
        <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm"> 
            <error statusCode="403" redirect="NoAccess.htm" /> 
            <error statusCode="404" redirect="FileNotFound.htm" /> 
        </customErrors> 
        --> 
    <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 assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagPrefix="telerik"/> 
      </controls> 
    </pages> 
    <httpHandlers> 
      <remove path="*.asmx" verb="*" /> 
      <add path="*.asmx" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" 
       validate="false" /> 
      <add path="*_AppService.axd" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" 
       validate="false" /> 
      <add path="ScriptResource.axd" verb="GET,HEAD" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" 
       validate="false" /> 
      <add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI, Version=2008.2.826.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" 
        validate="false" /> 
      <add path="Telerik.Web.UI.DialogHandler.aspx" verb="*" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI, Version=2008.2.826.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" 
    validate="false" /> 
    </httpHandlers> 
    <httpModules> 
      <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> 
    </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> 
  <!--  
        The system.webServer section is required for running ASP.NET AJAX under Internet 
        Information Services 7.0.  It is not necessary for previous version of IIS. 
    --> 
  <system.webServer> 
    <validation validateIntegratedModeConfiguration="false"/> 
    <modules> 
      <remove name="ScriptModule"/> 
      <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> 
    </modules> 
    <handlers> 
      <remove name="WebServiceHandlerFactory-Integrated"/> 
      <remove name="ScriptHandlerFactory"/> 
      <remove name="ScriptHandlerFactoryAppServices"/> 
      <remove name="ScriptResource"/> 
      <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"/> 
    </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> 
 

EditorTools.xml:
<?xml version="1.0" encoding="utf-8" ?> 
<root> 
  <modules> 
    <module name="RadEditorStatistics" dockingZone="Bottom" enabled="true" visible="true" dockable="true" /> 
  </modules> 
  <tools name="toolbar1" dockable="true" enabled="true"> 
    <tool name="FormatBlock" /> 
    <tool separator="true" /> 
    <tool name="Bold" /> 
    <tool name="Italic" /> 
    <tool separator="true" /> 
    <tool name="Indent" /> 
    <tool name="Outdent" /> 
    <tool separator="true" /> 
    <tool name="InsertOrderedList" /> 
    <tool name="InsertUnorderedList" /> 
  </tools> 
  <tools name="toolbar2" dockable="true" enabled="true"> 
    <tool name="FindAndReplace" /> 
    <tool separator="true" /> 
    <tool name="Cut" /> 
    <tool name="Copy" /> 
    <tool name="Paste" /> 
    <tool separator="true" /> 
    <tool name="Undo" /> 
    <tool name="Redo" /> 
  </tools> 
  <tools name="toolbar3" dockable="true" enabled="true"> 
    <tool name="Superscript" /> 
    <tool name="Subscript" /> 
    <tool separator="true" /> 
    <tool name="InsertParagraph" /> 
    <tool name="InsertHorizontalRule" /> 
    <tool name="InsertTable" /> 
  </tools> 
  <tools name="toolbar4" dockable="true" enabled="true"> 
    <tool name="LinkManager" /> 
    <tool name="Unlink" /> 
  </tools> 
  <tools name="toolbar5" dockable="true" enabled="true"> 
    <tool name="FormatStripper" /> 
    <tool name="XhtmlValidator" /> 
    <tool name="ToggleScreenMode" /> 
  </tools> 
  <paragraphs> 
    <paragraph value="&lt;p&gt;" name="Normal" /> 
    <paragraph value="&lt;h1&gt;" name="&lt;h1&gt;Heading 1&lt;/h1&gt;" /> 
    <paragraph value="&lt;h2&gt;" name="&lt;h2&gt;Heading 2&lt;/h2&gt;" /> 
    <paragraph value="&lt;h3&gt;" name="&lt;h3&gt;Heading 3&lt;/h3&gt;" /> 
    <paragraph value="&lt;h4&gt;" name="&lt;h4&gt;Heading 4&lt;/h4&gt;" /> 
    <paragraph value="&lt;h5&gt;" name="&lt;h5&gt;Heading 5&lt;/h5&gt;" /> 
  </paragraphs> 
</root> 

I would be grateful if this can be looked into ASAP. I guess it may be another script ordering problem or missing script. The order and scripts were obtained from your help http://www.telerik.com/help/aspnet-ajax/disabling_embedded_resources.html

Kind regards,

Rob


Rumen
Telerik team
 answered on 01 Jul 2010
3 answers
180 views
Hi,

I have implemented a RAD tooltip manager to a label inside a grid with the HideEvent="ManualClose". The original width of tooltip is 30px (Width="30px") and is reset dynamically to fit actual information inside. However, the close button is still on it's original position. Is there any way to set up the Close button to be always on the top left corner of the tooltip?

Thank you
DW Web Team Member
Top achievements
Rank 2
 answered on 01 Jul 2010
11 answers
459 views
Hi guys,

I'm trying to get the onscroll event of the radPane and I'm having problems with the method GetContentContainerElement() of the pane. When I call this method it gives me a javascript error saying Object doesn't support this property or method.
Actually what I am trying to do is:

I have 2 panels and I want to scrolll the pane2 if the pane1 scrolls and vice versa.

The code I'm trying to use is :

<telerik:RadSplitter  id="RadSplitter1" runat="server" width="100%" Height="327px" onclientloaded="InitializeScrollHandler">
    
<telerik:RadPane id="pane1" runat="server" Scrolling="Both" >
    ........Content
    
</telerik:RadPane>

   <telerik:RadSplitBar id="RadSplitbar1" Height="100%" runat="server" CollapseMode="Both"></telerik:RadSplitBar>

 

 

   <telerik:RadPane id="pane2" runat="server" scrolling="Both">
    ........Content
    </telerik:RadPane>
</telerik:RadSplitter>

 

 

 


function 
InitializeScrollHandler(){

 

    var splitter = $find("<%= RadSplitter1.ClientID %>");
    var pane1 = splitter.GetPaneById('<%= pane1.ClientID %>');
    var pane2 = splitter.GetPaneById("<%= pane2.ClientID %>");
    var pane2Div = pane2.GetContentContainerElement();

 

   var scrollHandler = function () {

         var scrollPosition = pane2.GetScrollPos();
         pane1.SetScrollPos(scrollPosition.left, scrollPosition.top);
    }
    pane2Div.onscroll = scrollHandler;

 

}

Am I doing something wrong?!

Thanks in advanced,

Francisco

 

 

Jason Bourdette
Top achievements
Rank 1
 answered on 01 Jul 2010
1 answer
129 views
Hi,

I would like the advanced form appear while clicking on the button which is in one page and access and manipulate the all controls in the advanced forms as per our wish. How to do.

Kind Regards,
I.Arockiasamy 
T. Tsonev
Telerik team
 answered on 01 Jul 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?