Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
109 views
Ok I have a tooltip set to load in $document.ready...and it pops up above an element at the top of the page.  It has a 10 second delay to close (this works great)...and if I scroll down while its showing it all scrolls out of the viewable area fine.

However if I reload the page 1/2 way down the thing pops up at the top of the window even though the element it's supposed to be relative to is no where in the visible area...

Bug?  If not how do I fix this

<telerik:RadToolTip ID="guyToolTip" runat="server" Skin="Sitefinity" OffsetY="-10" AutoCloseDelay="5000" HideDelay="5000"  TargetControlID="logoGuyPanel" Position="TopRight" RelativeTo="Element" ShowEvent="OnMouseOver" /> 

sitefinitysteve
Top achievements
Rank 2
Iron
Iron
Veteran
 answered on 13 May 2010
0 answers
302 views
Hi,

this is shanker I am did on project .It's working but very slow in site .telerik.web.ui.webresource.axd file taking more size how to compress this files my project files taking above 1mb how to compress this files please it's very argent  .present my project struggle in perfamance .How to improve my project perfamance am using Rad script manger  am send my config.file and master page file . Rad manger used in master page and in .aspx  am use radproxymanager .please send solutions am wait for any replay please it's very argent . 

this my web config file 


<?xml version="1.0"?>
<configuration>
<configSections>
<!--8-5-2010 for radcomperssion-->
<sectionGroup name="telerik.web.ui">
<section name="radCompression" type="Telerik.Web.UI.RadCompressionConfigurationSection, Telerik.Web.UI, PublicKeyToken=121fae78165ba3d4" allowDefinition="MachineToApplication" requirePermission="false"/>
</sectionGroup>
<!--8-5-2010 for radcomperssion-->
<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>
<!--8-5-2010 for radcomperssion-->
<telerik.web.ui>
    <radCompression enablePostbackCompression="true"/>
  </telerik.web.ui>
<!--8-5-2010 for radcomperssion-->
<appSettings>
<add key="Telerik.Skin" value="Web20"/>
<add key="dbtel_person_Images" value="picture_library/dbtel"/>
<add key="school_person_Images" value="picture_library/school"/>
<add key="PersonImageArea" value="100x130"/>
</appSettings>
<connectionStrings>
<add name="demo" connectionString="Data Source=.\SQLEXPRESS;Initial Catalog=demo;Persist Security Info=True;User ID=demo_sql;Password=demosqlpswd" providerName="System.Data.SqlClient"/>
<add name="smdc" connectionString="Data Source=SAMA\SQLEXPRESS;Initial Catalog=smdc;Persist Security Info=True;User ID=smdc_sql;Password=smdcsqlpswd" providerName="System.Data.SqlClient"/>
<add name="stpeters" connectionString="Data Source=SAMA3\SQLEXPRESS;Initial Catalog=stpeters;Persist Security Info=True;User ID=stpeters_sql;Password=stpeterssqlpswd" providerName="System.Data.SqlClient"/>
<add name="pinfoConnectionString" connectionString="Data Source=.\SQLEXPRESS;Initial Catalog=pinfo;Integrated Security=True" providerName="System.Data.SqlClient"/>
<add name="pinfoConnectionString1" connectionString="Data Source=.\SQLEXPRESS;Initial Catalog=pinfo;Integrated Security=True" providerName="System.Data.SqlClient"/>
</connectionStrings>
  <location path="Telerik.Web.UI.WebResource.axd">
    <system.web>
      <authorization>
        <allow users="*"/>
      </authorization>
    </system.web>
  </location>
<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.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"/>
<add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Drawing.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="Telerik.ReportViewer.WebForms, Version=4.0.10.317, Culture=neutral, PublicKeyToken=a9d7983dfcc261be"/>
<add assembly="Telerik.Reporting, Version=4.0.10.317, Culture=neutral, PublicKeyToken=a9d7983dfcc261be"/>
</assemblies>
</compilation>
<!--
            The <authentication> section enables configuration 
            of the security authentication mode used by 
            ASP.NET to identify an incoming user. 
        -->
<authentication mode="Forms"/>
<!--
            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>
        -->
<customErrors mode="Off"/>
<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"/>
</controls>
</pages>
<httpHandlers>
<remove verb="*" path="*.asmx"/>
<!--10-5-2010 for radcomperssion-->
<add path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" validate="false"/>
<!--10-5-2010 for radcomperssion-->
<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" validate="false" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add verb="*" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false"/>
<add path="Telerik.Web.UI.DialogHandler.aspx" verb="*" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI, Version=2009.3.1314.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false"/>
<add path="Telerik.Web.UI.DialogHandler.aspx" verb="*" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI" validate="false"/>
<add path="Telerik.Web.UI.SpellCheckHandler.axd" verb="*" type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI, Version=2009.3.1314.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false"/>
<add type="Telerik.ReportViewer.WebForms.HttpHandler, Telerik.ReportViewer.WebForms, Version=4.0.10.317, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" path="Telerik.ReportViewer.axd" verb="*"/>
      <add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI,  Version=2009.3.1314.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false"/>
    </httpHandlers>
<httpModules>
<!--8-5-2010 for radcomperssion-->
<add name="RadCompression" type="Telerik.Web.UI.RadCompression" />
<!--8-5-2010 for radcomperssion-->
<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" type="Microsoft.CSharp.CSharpCodeProvider,System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" warningLevel="4">
<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>
<!--8-5-2010 for radcomperssion-->
<add name="RadCompression" type="Telerik.Web.UI.RadCompression"/>
<!--8-5-2010 for radcomperssion-->
<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"/>
<!--10-5-2010 for radcomperssion-->
<add name="ChartImage_axd" verb="*" preCondition="integratedMode" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler"/>
<!--10-5-2010 for radcomperssion-->
<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" verb="GET,HEAD" path="ScriptResource.axd" preCondition="integratedMode" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add name="Telerik.ReportViewer.axd_*" type="Telerik.ReportViewer.WebForms.HttpHandler, Telerik.ReportViewer.WebForms, Version=4.0.10.317, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" path="Telerik.ReportViewer.axd" verb="*" preCondition="integratedMode,runtimeVersionv2.0"/>
      <add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource"/>
</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>
  <!--11-5-2010 for radcomperssion-->
<system.web.extensions>
<scripting>
<scriptResourceHandler enableCompression="true" enableCaching="true"/>
</scripting>
</system.web.extensions>
  <!--11-5-2010 for radcomperssion-->
</configuration>

this my master page 

<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Default.master.cs" Inherits="TelerikComponentsWS.Default" %>

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<!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>
    <link rel="Stylesheet" href="css/styles.css" type="text/css" />
  

</head>
<body>
    <form id="form1" runat="server">
     <!--11-5-2010 for radcomperssion-->
    <telerik:RadScriptManager ID="scm" runat="server" >
<CdnSettings TelerikCdn="Enabled"></CdnSettings>
    </telerik:RadScriptManager>
     <!--11-5-2010 for radcomperssion-->
    <div style="height: 100%;" id="splitterContainer">
        <telerik:RadAjaxManager ID="radAjMan" runat="server" UpdatePanelsRenderMode="Inline"
            DefaultLoadingPanelID="logPan">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="horMenu">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="leftMenu" />
                        <telerik:AjaxUpdatedControl ControlID="horMenu" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager>
        <telerik:radformdecorator id="RadFormDecorator2" DecoratedControls="all" runat="server" decorationzoneid="ZoneID2"
            skin="Web20" ControlsToSkip="Select">
        </telerik:radformdecorator>
         <telerik:radformdecorator id="RadFormDecorator1" DecoratedControls="all" runat="server" decorationzoneid="ZoneID3"
            skin="Web20" ControlsToSkip="Select">
        </telerik:radformdecorator>
        <telerik:RadWindowManager ID="radWin" runat="server">
            <Windows>
                <telerik:RadWindow ID="defFacWnd" OffsetElementID='<%#lnk_def_facility.ClientID%>'
                    OpenerElementID='<%#lnk_def_facility.ClientID%>' NavigateUrl="~/User/DefFacility.aspx"
                    OnClientClose="onDefFacClose" runat="server">
                </telerik:RadWindow>
            </Windows>
        </telerik:RadWindowManager>
        <telerik:RadFormDecorator ID="rad_decorator" runat="server" DecoratedControls="all" ControlsToSkip="Select">
        </telerik:RadFormDecorator>
        <telerik:RadSplitter ID="contentSplitter" runat="server" Height="100%" Width="100%"
           VisibleDuringInit="false" OnClientLoaded="initSplitter">
            <telerik:RadPane ID="navigationPane" runat="server" Width="190">
                <div style="margin: 5px;">
                 <br/>
                    <asp:Image ID="Image2" runat="server" ImageUrl="~/img/company_logo.jpg" />
                    
                   
                    <br />
                    <asp:LinkButton ID="lnk_def_facility" runat="server"></asp:LinkButton>
                </div>
                <telerik:RadPanelBar ID="leftMenu" runat="server" Width="180px">
                </telerik:RadPanelBar>
                 <br/>
                 <br/>
                  <br/>
                 
                <div >
                <asp:Button runat="server" ID="btn_logout" Text="Logout" onclick="btn_logout_Click" CausesValidation="false" />  
                </div>
            </telerik:RadPane>
            <telerik:RadSplitBar ID="splitter" runat="server" CollapseMode="Forward" />
            <telerik:RadPane ID="contentPane" runat="server" MinWidth="400">
                <div style="margin: 5px;">
                  <div id="ZoneID4" style="right: auto">
                <fieldset width="100%" style="border-style: none; padding-right: inherit;"  align="right">
                    <asp:Image ID="Image1" runat="server" 
                        ImageUrl="~/img/studentdatasuite_header.PNG" width="100%"/> 
                    </fieldset>
                    </div>
                    <telerik:RadTabStrip ID="horMenu" runat="server" SelectedIndex="0" DataFieldID="module_id">
                        <DataBindings>
                            <telerik:RadTabBinding TextField="module" ValueField="module_id" />
                        </DataBindings>
                    </telerik:RadTabStrip>
                   
                </div>
                <div style="margin: 5px;">
                    <h2>
                        <asp:Literal runat="server" ID="ltTitle"></asp:Literal></h2>
                    <asp:ContentPlaceHolder ID="centerContent" runat="server">
                    </asp:ContentPlaceHolder>
                </div>
                <div id="ZoneID3" style="right: auto">
                <fieldset width="100%" style="border-style: none; padding-right: inherit;"  align="center">
                    <p> © 2009 Sama IT Group. All rights reserved.
<a target="_self" title="Home" href="http://www.samaitgroup.com/">Home</a> 
<a target="_self" title="Products" href="http://www.samaitgroup.com/products.html">Products</a> 
<a target="_self" title="Aboutus" href="http://www.samaitgroup.com/aboutus.html">Aboutus</a>
<a target="_self" title="Support" href="http://www.samaitgroup.com/support.html">Support</a>
<a target="_self" title="Contacts" href="http://www.samaitgroup.com/contactus.html">Contacts</a>
         </p>
                    </fieldset>
                    </div>
                 
            </telerik:RadPane>
        </telerik:RadSplitter>
      
        <telerik:RadAjaxLoadingPanel ID="logPan" runat="server" IsSticky="true" Transparency="30"
            Style="position: absolute; top: 0; left: 0; line-height: 60px; text-align: center;
            z-index: 99;" Width="100%" Height="100%" BackColor="#B9CDF7">
            <asp:Image ID="img" runat="server" Width="130px" Height="60px" ImageUrl="~/img/loading.gif"
                Style="border: 0; margin-top: 70px;"></asp:Image>
        </telerik:RadAjaxLoadingPanel>
     
    </div>

    <script type="text/javascript">
        function onDefFacClose(oWnd) {            //get the transferred arguments
            var arg = oWnd.argument;
            if (arg) {
                var facName = arg.facName;
                $get(oWnd.get_openerElementID()).innerHTML = facName;
            }
        }
        function initSplitter(sender, args)  
        {         
            sender.get_element().style.visibility = 'inherit';  
        }  
 
    </script>

    </form>
</body>
</html>


shanker bangari
Top achievements
Rank 1
 asked on 13 May 2010
2 answers
220 views
Hi,

 I'm using a radtooltip shown from server side. I have set the postion of the tooltip to center and RelativeTo="Element" but the tooltip is shifted to the left (not well centred) by more than 50 px. I tried to set RelativeTo="BrowserWindow" but i have the same problem.
Could you tell me how to set the tooltip well centred please ?

Regards,
Mounir

here the source code :
 <telerik:RadToolTip EnableEmbeddedBaseStylesheet="true" ID="RadToolTip1" runat="server" 
        ShowEvent="FromCode" HideEvent="ManualClose" Modal="true" Animation="None" Skin="Default" 
        Position="Center" OffsetY="-1" RelativeTo="Element" Width="500px"> 
                <table width="100%" cellpadding="2" cellspacing="2"> 
                    <tr> 
                        <td> 
                            <asp:Label runat="Server" ID="confTitle" CssClass="kit-title-confirmation" Text="<%$ Resources:Labels, SubSpacefrmConfirmCoordonneesPostalesTitle %>" /> 
                        </td> 
                    </tr> 
                    <tr> 
                        <td> 
                            <div style="border-width: thin; border: 1px solid; color: #003366;"> 
                                <div style="padding: 5px;"> 
                                    <asp:Label ID="lbConfirmMessage" runat="Server" CssClass="kit-text-confirmation" Text="<%$ Resources:PrescrireCore, ConfirmCoordonneesPostalesMsg %>" /></div> 
                                <div style="text-align: right;height:28px"> 
                                    <asp:Button ID="btnClosePopup" CssClass="classebouton" runat="server" Text="<%$ Resources:PrescrireCore, RegisterbtnClosePopup %>" OnClientClick="CloseTooltip();" />&nbsp;&nbsp;</div> 
                            </div> 
                        </td> 
                    </tr> 
                </table> 
    </telerik:RadToolTip>     

Mounir Maghraoui
Top achievements
Rank 1
 answered on 13 May 2010
7 answers
152 views
Howdy,

I am plugging in the MOSSRadEditor into a custom ASPX page for SharePoint. I'm running it on Windows SharePoint Services not MOSS, I hope this isn't an issue. The editor loads but the top toolbar isn't there. The footer buttons are there, Design, HTML, Preview and resize. I've attached an image.

I began the integration using just RadEditor and the toolbars were there and happily working. I had an issue with the dialogs and read that I should use this control instead. I renamed the control tag to MOSSRadEditor and it loads but without the toolbar. I have since loaded it to a fresh new aspx page in SharePoint. My code sample is below. I have installed the wsp file and deployed it as well.

 

<%@ Register TagPrefix="telerik" Assembly="Telerik.Web.UI, Version=2010.1.415.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4" Namespace="Telerik.Web.UI" %>   
<%@ Register TagPrefix="telerik" Assembly="RadEditorSharePoint, Version=5.7.2.0, Culture=neutral, PublicKeyToken=1f131a624888eeed" Namespace="Telerik.SharePoint" %>   
   
<telerik:MOSSRadEditor ID="RadEditor1" runat="server" ToolbarMode="Default"></telerik:MOSSRadEditor>   
 

and the code behind for the page has

 
        protected override void OnInit(EventArgs e)  
        {  
            Page.Init += delegate(object sender, EventArgs e_Init)  
            {  
                if (ScriptManager.GetCurrent(Page) == null)  
                {  
                    RadScriptManager sMgr = new RadScriptManager();  
                    Page.Form.Controls.AddAt(0, sMgr);  
                }  
            };  
            base.OnInit(e);  
        } 


Thanks!

Delphi
Top achievements
Rank 1
 answered on 13 May 2010
3 answers
185 views
Dear,

I want to bind the RADGrid with ObjectDatasource. One of the properties of the object is a BusinessAreaKey. Hence my object only have Key (e.g 'FIN' for fianancial Services). I have to show the user 'Financial Services' as buiness area instead of key 'FIN'. I have stored all the business Areas in xml file as Key-value pairs. So I read the xml data in objectDataSource as BusinessAreas.
I am using GridDropdownColumn to show the business areas. In RADGrid1_ItemDatabound() event, I am binding the column with the list of available business Areas with the check that item is an EditItem.
Problem that I am facing is: When RADGrid is initially loaded, I don't see the data in BunessAreas column. But when I click to update any row, business areas in all the rows below shows me correct values as expected.

protected

void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)

{

 

 

 

BLL.DealflowCompany dfCompany = null;

string idString ="";

if (e.Item.ItemType== GridItemType.EditItem)

{

 

GridEditableItem editedItem = e.Item as GridEditableItem;

GridEditManager editMan = editedItem.EditManager;

GridDropDownListColumnEditor editor =

editMan.GetColumnEditor("BusinessAreaKey") as GridDropDownListColumnEditor;

 

try{// Exception for new Item

 

idString = e.Item.OwnerTableView.DataKeyValues[e.Item.ItemIndex]["ID"].ToString();

if (!string.IsNullOrEmpty(idString))

{

dfCompany = BLL.DealflowCompany.FromID(Convert.ToInt32(idString));

editor.DropDownListControl.SelectedValue = dfCompany.BusinessAreaKey;

}

}

catch{}

 

if(editor!=null)

{

editor.DataSource = LBOffice.Website.Language.GetBusinessAreas(Session["language_path"].ToString());

editor.DataTextField="Area";

editor.DataValueField = "Key";

editor.DataBind();

if(dfCompany!=null)

editor.SelectedValue = dfCompany.BusinessAreaKey;

 

}

 

 

 

 

}


I will appreciate if you can help me in resolving this issue.

Thanks.

Radoslav
Telerik team
 answered on 13 May 2010
1 answer
136 views
Do you have some Chart control which can accept 3-dimensional data (x,y,z) not only displays data in 2D dimensions (X and Y axis)?  If it does, could you please give me some sample code in C#.

Thanks ahead!

Sam
Schlurk
Top achievements
Rank 2
 answered on 13 May 2010
2 answers
95 views
has anyone experienced this? i have radcombo 2.8.6. i was on framework 2.0 using ajax control toolkit tab and update panels with the radcombo - worked fine.
i've upgrading my site to framework 3.5, upgraded the AjaxControlToolkit as well - now the radCombo's do not behave correctly. the first change i make to any radcombo on the page, after that, none of the rad combo's will drop down.

i'm wondering if i have to upgrade my radcombo??

thanks for any help!

Mary
MVeranis
Top achievements
Rank 1
 answered on 13 May 2010
1 answer
175 views
Hi, I have a page with a Radtoolbar, this toolbar have a RadToolBarDropDown, basically I need to expand the RadToolBarDropDown when the page is visited for first time, but I can't see some property or method on C# or Javascript to allow me to expand the menu. Is it possible?

Thank you.
Princy
Top achievements
Rank 2
 answered on 13 May 2010
1 answer
134 views
HI,

I have a radtreeview in asp.net

I am dynamically building the radtreenodes and adding to the Radtreeview.

and I am dynamically adding the radgrid control to some of the node of the radtreeview.

plz find the below code
 protected void createtreenodes()
        {
            RadTreeNode tNode1 = null;
            RadTreeNodeCollection tnc = null;
                rdTrNewBusiness.Nodes.Clear();
                DataSet dsNode = new DataSet();
                dsNode.ReadXml(Server.MapPath("~/XMLs/NewPolicyLinks.xml"));
                dt = new DataTable();
                dt = dsNode.Tables[0];

              
                for (int j = 0; j < dt.Rows.Count; j++)
                {
                    tNode1 = new RadTreeNode();
                    tNode1.Text = dt.Rows[j]["Name"].ToString();
                    rdTrNewBusiness.Nodes.Add(tNode1);

                    tNode1.ExpandMode = TreeNodeExpandMode.ServerSide;

                    if (tNode1.Text == "POLICY")
                    {
                        BindPolicy(tNode1);
                    }
                    else if (tNode1.Text == "ENTITIES")
                    {
                        NodeTxt = BindGrids(tNode1, tNode1.Text, "~/XMLs/EntitiesInfo.xml");
                        tNode1.Text = "ENTITIES" + " (" + NodeTxt + ")";

                        if (!object.Equals(Session["Node"], null))
                        {
                            if (Session["Node"].ToString().Trim().Length > 0)
                            {
                                tNode1.Expanded = true;
                            }
                        }
                    }
                    else if (tNode1.Text == "COVERAGE")
                    {
                        BindCoverage(tNode1);
                    }
                    else if (tNode1.Text == "VEHICLES")
                    {
                        NodeTxt = BindGrids(tNode1, tNode1.Text, "~/XMLs/Vehicle.xml");
                        tNode1.Text = "VEHICLES" + " (" + NodeTxt + ")";

                    }
                    else if (tNode1.Text == "DRIVERS")
                    {
                        NodeTxt = BindGrids(tNode1, tNode1.Text, "~/XMLs/DriversInfo.xml");
                        tNode1.Text = "DRIVERS" + " (" + NodeTxt + ")";

                    }
                    else if (tNode1.Text == "HISTORY")
                    {
                        NodeTxt = BindGrids(tNode1, tNode1.Text, "~/XMLs/CarrierInfo.xml");
                        tNode1.Text = "HISTORY" + " (" + NodeTxt + ")";
                    }

                    else if (tNode1.Text == "RATE")
                    {
                        BindRate(tNode1);
                    }
                }
               tnc  = new RadTreeNodeCollection(rdTrNewBusiness);
                tnc.Add(tNode1);
                Cache["Tree"] = tnc;
                dsNode = null;
            }


The problem is when we are clicking on any grid row (which is dynamically constructed radgrid), all the tree nodes are in collapse mode, i want the node which is expanded with the grid to maintain the same state.

could any one plz help me how to maintain the state of the radtreeview which is dynamically created in postbacks.
Princy
Top achievements
Rank 2
 answered on 13 May 2010
9 answers
297 views
Hello,

I am using asp.net DropDownList and RadFormDecorator on form ,
I am unable to set dropDownList height or enable to set scroll bars. 

Here is my test code,

 <telerik:RadFormDecorator runat="server" ID="rad" DecoratedControls="All"/> 
        <asp:DropDownList ID="ddlTest" runat="server"> 
        <asp:ListItem Text="11212122"></asp:ListItem> 
        <asp:ListItem Text="1121fd122"></asp:ListItem> 
        <asp:ListItem Text="1121fs122"></asp:ListItem> 
        <asp:ListItem Text="1121sdf22"></asp:ListItem> 
        <asp:ListItem Text="1121f2122"></asp:ListItem> 
        <asp:ListItem Text="1121f2122"></asp:ListItem> 
        <asp:ListItem Text="112121df"></asp:ListItem> 
        <asp:ListItem Text="11212d22"></asp:ListItem> 
        <asp:ListItem Text="112df122"></asp:ListItem> 
        <asp:ListItem Text="112sgh22"></asp:ListItem> 
        <asp:ListItem Text="1121gh22"></asp:ListItem> 
        <asp:ListItem Text="112er122"></asp:ListItem> 
        <asp:ListItem Text="11er2122"></asp:ListItem> 
        <asp:ListItem Text="11er2122"></asp:ListItem> 
        <asp:ListItem Text="112erer2"></asp:ListItem> 
        <asp:ListItem Text="11212e22"></asp:ListItem> 
        <asp:ListItem Text="11e1e122"></asp:ListItem> 
        <asp:ListItem Text="112e2h22"></asp:ListItem> 
        <asp:ListItem Text="11e1h122"></asp:ListItem> 
        <asp:ListItem Text="1121h122"></asp:ListItem> 
        <asp:ListItem Text="1121e122"></asp:ListItem> 
        <asp:ListItem Text="11w1h122"></asp:ListItem> 
        <asp:ListItem Text="112h2122"></asp:ListItem> 
        <asp:ListItem Text="1121e122"></asp:ListItem> 
        <asp:ListItem Text="11sh2122"></asp:ListItem> 
        <asp:ListItem Text="11212122"></asp:ListItem> 
        <asp:ListItem Text="112f2122"></asp:ListItem> 
        <asp:ListItem Text="11212fg2"></asp:ListItem> 
        <asp:ListItem Text="1121dfg2"></asp:ListItem> 
        <asp:ListItem Text="11212122"></asp:ListItem> 
        <asp:ListItem Text="1dfg2122"></asp:ListItem> 
        <asp:ListItem Text="1121dfg2"></asp:ListItem> 
        <asp:ListItem Text="1121d122"></asp:ListItem> 
        </asp:DropDownList>  


Can you please tell me how do I set height of  DropDownList or enable scrollbars.

I am using telerik Q2 2009 released.

Thanks,
Amol Wable
Georgi Tunev
Telerik team
 answered on 13 May 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?