Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
117 views
I created a web part feature  that allows a usercontrol to be used in a web part (Not SmartPart). I used several of your code examples and they all work great...in Firefox... I cannot get the rotations to happen in IE. Just blank content.
Additionally, the only way to make a change to the xml and have it reflect is to change the name of the xml file. Otherwise no amount of cache cleaning, or IIS reseting will display the updated xml.
Any ideas?
Chris Rathermel
Top achievements
Rank 1
 answered on 17 Sep 2009
2 answers
174 views
I am working on an application that uses the splitter and the controls in the main content pane are displaying oddly in all versions of IE. They are not spanning the width and height of the pane and are not aligning correctly. I also have some pages that will not display at all and some that will run in compatibility mode in ie8. Everything shows correctly in firefox though. The app is using a master page and the pane with issues is the ID="rightPane" 

<%@ Master Language="C#" AutoEventWireup="True" Inherits="iTaskerWebApplication.MasterPages.DivBase" Codebehind="DivBase.master.cs" %> 
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %> 
<%@ Register src="../Common/vnv_SidebarMenu.ascx" tagname="SidebarMenu" tagprefix="uc1" %> 
<%@ Register Namespace="iTaskerWebApplication" TagPrefix="iTasker" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/tr/xhtml11/dtd/xhtml11.dtd"> 
<html style="height:100%"
<head id="Head1" runat="server"
    <title>iTasker Labor Force Optimization</title> 
    <telerik:RadStyleSheetManager runat="server" ID="RadStyleSheet1" /> 
    <link href="../StyleSheet/styles.css" rel="stylesheet" type="text/css" /> 
</head> 
<body style="margin:0px;height:100%;overflow:hidden;" scroll="no"
    <form id="form1" runat="server" style="height:100%;margin:0px"
        <telerik:RadScriptBlock ID="RadScriptBlock1" runat="server"
            <script type="text/javascript" language="javascript"
                function SendMessage(sender, args) { 
                    var wnd = window.radopen("/Forms/Feedback.aspx?addr=" + window.location, null); 
                    //Get the clicked row 
                    var index = args.get_itemIndexHierarchical(); 
                    var item = args.get_tableView().get_dataItems()[index]; 
                    var rowElement = item.get_element(); 
 
                    //Get coordinates of the row and reposition the window relative to it 
                    var bounds = $telerik.getBounds(rowElement); 
                    wnd.moveTo(bounds.x + 120 + index * 10, bounds.y - 180); 
                } 
                function OnClientLoaded(sender, args)   
{          
    sender.get_element().style.visibility = 'inherit';   
}   
            </script> 
        </telerik:RadScriptBlock> 
 
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server"
            <Scripts> 
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" /> 
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" /> 
            </Scripts> 
        </telerik:RadScriptManager>  
        <div style="height:100%;"
             <telerik:radformdecorator id="FormDecorator1" Skin="Office2007" runat="server" DecoratedControls="all"></telerik:radformdecorator>   
            <telerik:RadSplitter runat="Server" ID="RadSplitter1" Width="100%" BorderSize="0" 
                BorderStyle="None" PanesBorderSize="0" Height="100%" Orientation="Horizontal" 
                VisibleDuringInit="false" OnClientLoaded="OnClientLoaded"
                <telerik:RadPane ID="topPane" runat="server" Height="90px"
                    <div class="header"
                        <div class="logo"
                            <asp:HyperLink ID="hlLogo" runat="server"><asp:Image ID="imgLogo" runat="server" BorderWidth="0" /></asp:HyperLink> 
                        </div> 
                   
                            <asp:Panel ID="pnlOwner" runat="server" /> 
     
                            <div id="langSelect"
                                <telerik:RadMenu ID="menuLanguages" runat="server"  
                                    CausesValidation="False" onitemclick="menuLanguages_ItemClick"
                                    <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
                                    <Items> 
                                        <telerik:RadMenuItem runat="server" BackColor="White"
                                            <Items> 
                                                <telerik:RadMenuItem runat="server" Text="English" Value="English" /> 
                                                <telerik:RadMenuItem runat="server" Text="Español" Value="Spanish" /> 
                                                <telerik:RadMenuItem runat="server" Text="العربية" Value="Arabic" /> 
                                            </Items> 
                                        </telerik:RadMenuItem> 
                                    </Items> 
                                </telerik:RadMenu> 
                                &nbsp;<asp:ImageButton runat="server" ID="ibtnHelp" onclick="ibtnHelp_Click" Visible="false" CausesValidation="false" /> 
                            </div> 
                            <div class="skin-chooser"
                                <!--<label for="ctl00_RadMenu1_i3_SkinChooser_Input" class="skinLabel">Skin:</label>--> 
                                <telerik:RadSkinManager runat="server" ID="RadSkinManager1" ShowChooser="false" Skin="Office2007" 
                                    PersistenceKey="Skin" PersistenceMode="Session" /> 
                            </div> 
                            <div class="logout"><asp:LinkButton ID="btnLogout" runat="server" CausesValidation="false" onclick="btnLogout_Click">Logout</asp:LinkButton></div
                        <div id="userName"
                               <asp:Label ID="lblTitle" runat="server"></asp:Label> 
                            </div> 
                        </div> 
                </telerik:RadPane> 
                <telerik:RadSplitBar ID="RadSplitBar2" CollapseMode="Forward" EnableResize="false" runat="server" /> 
                <telerik:RadPane runat="server" ID="contentPane" Scrolling="none"
                    <telerik:RadSplitter runat="server" ID="RadSplitter2" BorderStyle="None" PanesBorderSize="0"
                        <telerik:RadPane runat="Server" ID="leftPane" Width="175px" MinWidth="160" MaxWidth="190" Scrolling="None"
                            <telerik:RadSplitter runat="server" ID="RadSplitter3" BorderStyle="None" PanesBorderSize="0" 
                                Height="100%" Orientation="Horizontal"
                                <telerik:RadPane runat="server"  Height="180px" ID="topLeftPane"
                                    <asp:Label ID="lblUserType" runat="server"></asp:Label> 
                                    <asp:ContentPlaceHolder ID="MenuContent" runat="server"
                                        <uc1:SidebarMenu ID="SidebarMenu1" runat="server" /> 
                                    </asp:ContentPlaceHolder> 
                                </telerik:RadPane> 
 
                            </telerik:RadSplitter> 
                        </telerik:RadPane> 
                        <telerik:RadSplitBar runat="server" ID="RadSplitBar1" CollapseMode="Forward" /> 
                        <telerik:RadPane runat="Server" ID="RightPane" CssClass="right-pane" halign="left"
                            <asp:ContentPlaceHolder ID="contentPlaceHolder" runat="server"
                            </asp:ContentPlaceHolder> 
                        </telerik:RadPane> 
                    </telerik:RadSplitter> 
                </telerik:RadPane> 
                <telerik:RadSplitBar ID="RadSplitBar4" CollapseMode="Backward"  EnableResize="false" runat="server" /> 
                <telerik:RadPane ID="footerPane" Height="45px" runat="server"
                     <div id="footer"
                         <div class="appVersion"><asp:Label runat="server" ID="lblVersion" /></div
                         <div class="compName"><asp:Label runat="server" ID="lblCorporate" /></div
                         <div class="feedBack"><asp:Image onClick="SendMessage()" runat="server" ID="imgFeedback" BorderWidth="1" /></div
                         <href="http://www.itasker.com/" target="_blank"><div class="powered"></div></a
                          
                    </div> 
                </telerik:RadPane> 
            </telerik:RadSplitter> 
        <telerik:RadWindowManager ID="Feedback" Width="700" Height="500" 
            VisibleStatusbar="false" runat="server"  
            Behavior="Close,Move" > 
        </telerik:RadWindowManager> 
        </div> 
 
        <script type="text/javascript"
            var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); 
            document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); 
        </script> 
        <script type="text/javascript"
            try { 
                var pageTracker = _gat._getTracker("UA-169640-23"); 
                pageTracker._trackPageview(); 
            } catch (err) { } 
        </script> 
    </form> 
</body> 
</html> 
 

an example of a problem page is: where the content is not spanning the full width and adding extra margin or padding on the top and bottom of the element.
<%@ Page Language="C#" MasterPageFile="~/MasterPages/DivBase.master" AutoEventWireup="true" Inherits="iTaskerWebApplication.Forms_Employees_EmployeesSearch" Title="<%$Resources:GlobalResource,EmployeesSearch%>" Codebehind="EmployeesSearch.aspx.cs" %> 
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %> 
<%@ Import Namespace="Resources"%> 
<%@ Register Src="EmployeeDetails.ascx" TagName="EmployeeDetails" TagPrefix="uc1" %> 
<asp:Content ID="content" ContentPlaceHolderID="contentPlaceHolder" runat="Server"
    <telerik:RadAjaxManagerProxy ID="RadAjaxManager" runat="server"
            <AjaxSettings> 
                <telerik:AjaxSetting AjaxControlID="RadToolTipManager"
                    <UpdatedControls> 
                        <telerik:AjaxUpdatedControl ControlID="RadToolTipManager"  
                            LoadingPanelID="ajaxLoadingPanel" /> 
                    </UpdatedControls> 
                </telerik:AjaxSetting> 
                <telerik:AjaxSetting AjaxControlID="rgEmployees"
                    <UpdatedControls> 
                        <telerik:AjaxUpdatedControl ControlID="rgEmployees"  
                            LoadingPanelID="RadAjaxLoadingPanel" /> 
                    </UpdatedControls> 
                </telerik:AjaxSetting> 
            </AjaxSettings> 
        </telerik:RadAjaxManagerProxy> 
<telerik:RadAjaxLoadingPanel ID="ajaxLoadingPanel" runat="server" Transparency="30" InitialDelayTime="10"
    <img id="Image1" alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>' style="border: 0px; margin-top: 200px" /> 
</telerik:RadAjaxLoadingPanel> 
<telerik:RadToolTipManager  ID="RadToolTipManager" OffsetY="-1" HideEvent="ManualClose" 
            Width="350" Height="250" runat="server" OnAjaxUpdate="OnAjaxUpdate" RelativeTo="Element" 
            Position="MiddleRight" Animation="Fade"
        </telerik:RadToolTipManager> 
<fieldset> 
<legend><asp:Label ID="lblCorporateTree" runat="server" /><%=Resources.GlobalResource.EmployeesSearch%></legend
<div style="height: 100%; width: 100%;"
<table cellspacing="0" cellpadding="0" border="0"
    <tr> 
        <td align="<%=Resources.GlobalResource.PageAlign%>"
            <asp:Button ID="btnAddEmployees" runat="server" Text="<%$Resources:GlobalResource,AddEmployees%>" onclick="btnAddEmployees_Click" /> 
        </td> 
        <td align="<%=Resources.GlobalResource.PageAlign%>"
            <asp:Button ID="btnBack" runat="server" Text="<%$Resources:GlobalResource,Back%>" onclick="btnBack_Click" /> 
        </td> 
    </tr> 
</table> 
<telerik:RadGrid ID="rgEmployees" AutoGenerateColumns="False"  
                            runat="server" GridLines="None" ShowStatusBar="True" EnableLinqExpressions="False" 
                            Width="100%" AllowFilteringByColumn="True"   
                            AllowPaging="True" AllowSorting="True"  
        onneeddatasource="rgEmployees_NeedDataSource" ShowGroupPanel="True"  
        PageSize="20" ondeletecommand="rgEmployees_DeleteCommand"  
        onitemdatabound="rgEmployees_ItemDataBound"  
        onitemdeleted="rgEmployees_ItemDeleted" onitemcommand="rgEmployees_ItemCommand"  
        oneditcommand="rgEmployees_EditCommand" > 
                            <PagerStyle Position="TopAndBottom" /> 
                            <MasterTableView DataKeyNames="EmployeeID" Width="100%"
                                <Columns> 
                                    <telerik:GridButtonColumn CommandName="Edit" Text="Edit"  
                                        UniqueName="Edit"
                                    </telerik:GridButtonColumn> 
                                    <telerik:GridButtonColumn CommandName="Delete" Text="Delete"  
                                        UniqueName="Delete"
                                    </telerik:GridButtonColumn> 
                                    <telerik:GridButtonColumn CommandName="UnDelete" Text="UnDelete"  
                                        UniqueName="UnDelete"
                                    </telerik:GridButtonColumn>   
                    <telerik:GridTemplateColumn AllowFiltering="false" Groupable="false" HeaderText="Information" ItemStyle-HorizontalAlign="Center"
                                    <ItemTemplate> 
                                        <asp:HyperLink ID="targetControl" runat="server" NavigateUrl="#" > 
                                            <asp:Image ID="imgInfo" runat="server" ImageUrl="~/Images/cmn/MsgInfo.gif" Width="22px" /></asp:HyperLink> 
                                    </ItemTemplate> 
                                </telerik:GridTemplateColumn> 
                        <telerik:GridBoundColumn AllowFiltering="false" CurrentFilterFunction="NoFilter" DataField="EmployeeID" Display="true" 
                        DataType="System.Int32" FilterListOptions="VaryByDataType" ForceExtractValue="None" 
                        HeaderText="Employee ID" ReadOnly="True" SortExpression="EmployeeID" UniqueName="EmployeeID"
                        </telerik:GridBoundColumn> 
                                    <telerik:GridBoundColumn UniqueName="EmployeeNum" AllowFiltering="true" DataField="EmployeeNum"  
                                        HeaderStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Center"  
                                        HeaderText="<%$Resources:GlobalResource,Number%>"
                                        <HeaderStyle Font-Bold="True" HorizontalAlign="Center" /> 
                                    </telerik:GridBoundColumn> 
                                    <telerik:GridBoundColumn AllowFiltering="true" DataField="FirstName"  
                                        HeaderStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Center"  
                                        HeaderText="<%$Resources:GlobalResource,FirstName%>"
                                        <HeaderStyle Font-Bold="True" HorizontalAlign="Center" /> 
                                    </telerik:GridBoundColumn> 
                                    <telerik:GridBoundColumn AllowFiltering="true" DataField="LastName"  
                                        HeaderStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Center"  
                                        HeaderText="<%$Resources:GlobalResource,LastName%>"
                                        <HeaderStyle Font-Bold="True" HorizontalAlign="Center" /> 
                                    </telerik:GridBoundColumn> 
                                    <telerik:GridBoundColumn AllowFiltering="false" DataField="CorporateName"  
                                        HeaderStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Center"  
                                        HeaderText="<%$Resources:GlobalResource,CompanyName%>"
                                        <HeaderStyle Font-Bold="True" HorizontalAlign="Center" /> 
                                    </telerik:GridBoundColumn> 
                                    <telerik:GridBoundColumn AllowFiltering="false" DataField="SiteName"  
                                        HeaderStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Center"  
                                        HeaderText="<%$Resources:GlobalResource,SiteName%>"
                                        <HeaderStyle Font-Bold="True" HorizontalAlign="Center" /> 
                                    </telerik:GridBoundColumn> 
                                    <telerik:GridBoundColumn AllowFiltering="true" DataField="DepartmentName"  
                                        HeaderStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Center"  
                                        HeaderText="<%$Resources:GlobalResource,DepartmentName%>"
                                        <HeaderStyle Font-Bold="True" HorizontalAlign="Center" /> 
                                    </telerik:GridBoundColumn> 
                                    <telerik:GridBoundColumn Visible="false" AllowFiltering="false" DataField="IsDeleted"  
                                        HeaderStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Center"  
                                        HeaderText="<%$Resources:GlobalResource,DepartmentName%>"
                                        <HeaderStyle Font-Bold="True" HorizontalAlign="Center" /> 
                                    </telerik:GridBoundColumn> 
                                </Columns> 
                                <EditFormSettings> 
                                    <EditColumn UniqueName="EditCommandColumn1"
                                    </EditColumn> 
                                </EditFormSettings> 
                            </MasterTableView> 
                            <ExportSettings IgnorePaging="true" OpenInNewWindow="true" ExportOnlyData="false"
                                <Excel Format="Html" FileExtension=".xls" /> 
                            </ExportSettings> 
                            <ClientSettings AllowColumnsReorder="True" ReorderColumnsOnClient="True"  
                                AllowDragToGroup="True"
                            </ClientSettings> 
                        </telerik:RadGrid> 
                        </div> 
             </fieldset> 
</asp:Content> 
 



3tx9340
Top achievements
Rank 1
 answered on 17 Sep 2009
0 answers
96 views
Hi ,
My team is using Telerik Radatbsrip. We are using the liscence version.

we are using  radtabstrip which is having  8 tabs in my "main.aspx" page .All the 8 tabs are binded declaratively with 8 different user controls. The problem is when ever we request for main page it's hitting all the usercontrol's pageload .Even if I click on any tab it's hitting all the user control's pageload. I tried to use dynamic way of adding tabs to tabstrip, it worked for 2 tabs perfectly.But if I try to attach more than 2 it's again hitting all the user control's pageload. Can you please provide any sample or code snippet which will avoid all the pageload hit it will be great . If I click on a particular tab then only that tab's associated user control's pageload should hit. Currently the page is taking 2 minutes to display as it's hitting all the usercontrol's pageload which the client is not happy with.

Can you please help with this issue. It's very urgent...

Thanks
Chinmay
Chinmay
Top achievements
Rank 1
 asked on 17 Sep 2009
2 answers
325 views
Hi ,

My team is using Telerik radgrid . We are using  liscence  version.
Problem - If no data is availble in the grid then grid is not visible.
                 Even if there is no data binded to grid our requirement is to display the columns .We are using entity framework .
                 Can you please help incase any attribute available for displaying columns if no record is available.

Thanks
Chinmay
Chinmay
Top achievements
Rank 1
 answered on 17 Sep 2009
2 answers
242 views
I am adding a RadTreeNode to a RadTooltipManager so that I can display formatted HTML text in the tooltip when someone hovers over the node.  This works fine as long as someone hovers over the node text.  But the RadToolTip doesn't display whenever someone hovers over the node image - instead it just displays a standard tooltip which does not format the HTML. 
Any ideas on how to get the RadToolTip to display formatted HTML when someone hovers over the image would be greatly appreciated.

 

        protected void Button1_Click(object sender, EventArgs e)
        {
           RadTreeNode tn1 = new RadTreeNode();
           tn1.ImageUrl = @"~\images\customer.PNG";
           tn1.Text = "test node";
           string htmlStr = @"<html>test1<br/>test2</html>";
           tn1.ToolTip = htmlStr;
           tn1.AllowDrop = false;
           tn1.Attributes["id"] = Guid.NewGuid().ToString();
           RadToolTipManager1.TargetControls.Add(tn1.Attributes["id"], true);
           RadTreeView1.Nodes.Add(tn1);
        }

 


Thanks,
Scott
Scott
Top achievements
Rank 1
 answered on 17 Sep 2009
2 answers
95 views
A customer pasted her Google Analytics script into the html view (along with some regular html content) and saved it. However, when opening the editor to edit the content, she got a 'permission denied' error in scriptresource.axd. The design view was empty, and she could not switch to html view. The editor content (html and javascript) was properly saved to our backend db. This occurred in IE7 and IE8. In Firefox, there was no problem.

Here is the Google code (slightly edited to remove identifiers). This was obtained directly from Google and pasted in without changes.

<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("id_cide_here");
pageTracker._trackPageview();
} catch(err) {}</script>


EDIT: using version 2009.1.402.20
Ifdev02
Top achievements
Rank 1
 answered on 17 Sep 2009
2 answers
143 views
I have implemented a custom content provider and trying to use it with the RadFileExplorer:

RadFileExplorer1.Configuration.ContentProviderTypeName = typeof(DBFileContentProvider).AssemblyQualifiedName; 

However, I get an error: 

Constructor on type 'MySequenom.Data.DBFileContentProvider' not found.


My provider does have a contrstructor so I am unsure what the problem is.

public DBFileContentProvider(HttpContext context, string[] searchPatterns, string[] viewPaths, string[] uploadPaths, string[] deletePaths, string selectedUrl, string selectedItemTag, int nodeId) 
            : 
            base(context, searchPatterns, viewPaths, uploadPaths, deletePaths, selectedUrl, selectedItemTag) 
        { 
            _itemHandlerPath = ConfigurationManager.AppSettings["ItemHandlerPath"]; 
            if (_itemHandlerPath.StartsWith("~/")) 
            { 
                _itemHandlerPath = HttpContext.Current.Request.ApplicationPath + _itemHandlerPath.Substring(1); 
            } 
            if (SelectedItemTag != null && SelectedItemTag != string.Empty) 
            { 
                SelectedItemTag = ExtractPath(RemoveProtocolNameAndServerName(SelectedItemTag)); 
            } 
        } 

Adam
Top achievements
Rank 2
 answered on 17 Sep 2009
2 answers
114 views
Is there any way to display the virtual scrollbar of a RadGrid on the left-hand side of the grid?

 I am familiar with the direction right-to-left method, but I do not want any of my other controls to diplay RTL, just the virtualscrollbar.

Thanks in advance.
Andy
Top achievements
Rank 1
 answered on 17 Sep 2009
3 answers
126 views
Hi I am trying to use the drag drop functionality of the tree.
Basically I want to drag a node onto the rad scheduler.
 However the node drop event is not firing...this event does fire though when I drag on to other elements like textboxes.
What do I need to do to get this event to fire when dragging onto the rad scheduler
Nate
Top achievements
Rank 1
 answered on 17 Sep 2009
3 answers
232 views
I have a Radgrid inside a asp.net user control.  We set the header text in


 <telerik:GridTemplateColumn HeaderText="Required Column" >
                <ItemTemplate>
                <telerik:RadTextBox  ID.......></telerik:RadTextBox>
                
                </ItemTemplate>
</telerik:GridTemplateColumn>

I would like to add a red asterisk (*) next to the "Required Column" indicating that that column is mandatory. Is there a way we can change/style the header text  to have a red asterisk  in design time ?

Also I am not able to set/change the header text in OnItemCreated  or OnItemDataBound events.  Any suggestions ?



ram+telerik S
Top achievements
Rank 1
 answered on 17 Sep 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?