Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
75 views
Hi,Am unable to work with pop-up's.Can u just mail me how to use handlers? Can you just tell me will it work only for single window or will it work for 2 window like if we click on download it will take us to the next page but it is giving the message that "you are trying to open another page that you want to automate. Can you just suggest me how to use this?
Missing User
 answered on 07 Jun 2010
3 answers
122 views
Is it possible to resize items to adjust their start/end dates in month view?


Channa Leang
Top achievements
Rank 1
 answered on 07 Jun 2010
2 answers
192 views
when i use data binding on a objectdatasource entity framework field that is a nullable system64 i get a casting error - is there any tips on handling nullable types for microsoft databinding on this control?
EJ
Top achievements
Rank 1
 answered on 07 Jun 2010
1 answer
114 views
I've got a radgrid that has an OnInsertCommand defined (along with OnItemCommand). I've tried e.Item.Expanded = false from the OnInsertCommand, and it doesn't seem to respond. I've even tried looping through items in the MasterTableView and Expanded=false all of them, and no dice.
Any ideas on how to collapse the insert form from OnInsertCommand programmatically?
Thanks in advance!
tried:
foreach (GridDataItem i in e.Item.OwnerTableView.Items) 
                i.Expanded = false; 
 
            e.Item.Expanded = false; 
            RadGrid1.Rebind(); 

Also tried
        protected void RadGrid1_OnItemInserted(object sender, GridInsertedEventArgs e) 
        { 
            e.KeepInInsertMode = false; 
        } 

but it doesn't even fire that event for whatever reason.
Also tried doing a hard DataBind(), but the control keeps the state (leaves the item insert form open). WTF

Tim
Top achievements
Rank 1
 answered on 07 Jun 2010
2 answers
165 views

I used the below script to remove the padding from the menu items in 2008.Q1.

We recently upgraded to 2008.Q3 and the below doesn't remove the padding, nore can I find any combination that does.

Can you provide the necessary css to remove the menu padding using the Telerik Skin for A3.

Thanks in advance.

<style type="text/css">   
    .RadMenu .rmLink .rmText   
    {    
        font-size:14px;  
        font-weight:normal;  
        padding: 0px 5px;  
    }    
    
</style> 
Tab Alleman
Top achievements
Rank 1
 answered on 07 Jun 2010
1 answer
130 views

I have a page that creates docks programmatically and assigns a custom command to each dock. The custom command uses the OnClientCommand property to set the client-side function that executes when the command is clicked.

The first problem I am having, is that the client-side function is being automatically executed when the docks are loaded. I need the function to be executed only when the user clicks the custom command button.

The second problem is that when I click the custom command button, I get the following script run-time error within the script manager WebResource.axd:

Message: Object doesn't support this property or method
Line: 6
Char: 29366
Code: 0

I am running Telerik RadControls version 2010-1-415. I am using the 3.5 framework .dll inside a 3.5 framework web application using Visual Studio 2010 Professional.

Here is the Web Form code:

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RadDockTest.aspx.cs" Inherits="TelerikTest.RadDockTest" %> 
 
<!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">  
    <telerik:RadScriptManager ID="RadScriptManager1" Runat="server">  
    </telerik:RadScriptManager> 
 
    <div> 
        <script language="javascript" type="text/javascript">  
        function CustomCommandClick(dockID) {  
            alert("Custom command clicked for dock #" + dockID);  
        }  
        </script> 
          
        <asp:UpdatePanel ID="upRadDocks" runat="server" ChildrenAsTriggers="false" UpdateMode="Conditional">  
            <Triggers> 
                <asp:AsyncPostBackTrigger ControlID="btnLoadDocks" EventName="Click" /> 
            </Triggers> 
            <ContentTemplate> 
                <asp:Button ID="btnLoadDocks" runat="server" Text="Load Docks" OnClick="btnLoadDocks_Click" /> 
 
                <telerik:RadDockLayout ID="rdlRadDocks" runat="server">  
                    <telerik:RadDockZone ID="rdzDynamicDocks" runat="server" Width="800" MinHeight="200">  
                    </telerik:RadDockZone> 
                </telerik:RadDockLayout> 
            </ContentTemplate> 
        </asp:UpdatePanel> 
    </div> 
    </form> 
</body> 
</html> 
 


Here is the class code:


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 TelerikTest  
{  
    public partial class RadDockTest : System.Web.UI.Page  
    {  
        protected void Page_Load(object sender, EventArgs e)  
        {  
 
        }  
          
        /// <summary>  
        /// Creates a new rad dock  
        /// </summary>  
        /// <param name="id">The dock ID</param>  
        /// <returns>A RadDock control</returns>  
        private RadDock CreateRadDock(int id)  
        {  
            //Create the new dock  
            RadDock     dock                    = new RadDock();  
            dock.DockMode                       = DockMode.Docked;  
            dock.UniqueName                     = "rd" + id.ToString();  
            dock.ID                             = dock.UniqueName;  
            dock.Width                          = Unit.Pixel(800);  
 
            //Clear dock commands  
            dock.Commands.Clear();  
 
            //Add the dock commands  
            DockCommand command                 = new DockCommand();  
            command.Name                        = "Custom Command";  
            command.Text                        = "Custom Command";  
            command.OnClientCommand             = "CustomCommandClick('" + dock.UniqueName + "');";  
            dock.Commands.Add(command);  
 
            return dock;  
        }  
 
        /// <summary>  
        /// Load Docks button click event  
        /// </summary>  
        /// <param name="sender"></param>  
        /// <param name="e"></param>  
        protected void btnLoadDocks_Click(object sender, EventArgs e)  
        {  
            //Load the docks  
            for(int i = 0; i <= 4; i++)  
            {  
                //Create a new dock  
                RadDock dock = this.CreateRadDock(i);  
 
                //Add the new dock to the dock zone  
                this.rdzDynamicDocks.Controls.Add(dock);  
            }  
        }  
    }  
} 
Joe Labate
Top achievements
Rank 1
 answered on 07 Jun 2010
5 answers
215 views
I noticed I can't seem to use "None" for a skin anymore. this is causing issues because I keep getting padding around an image only menu, which makes the image have breaks in it.

Note, it's only doing this in IE7. In Firefox, it displays correctly.

Here's the css I'm using (and yes I named it None), where I tried to set everything to zero.

Thanks,
Jason

.RadMenu_None

{

border-right: 0px solid;

border-top: 0px solid;

border-left: 0px solid;

border-bottom: 0px solid;

padding: 0px 0px 0px 0px;

margin: 0px;

}

.RadMenu_None

.rmItem

{

padding: 0px 0px 0px 0px;

text-align: left;

border-right: 0px solid;

border-top: 0px solid;

border-left: 0px solid;

border-bottom: 0px solid;

}

.RadMenu_None

.rmGroup .rmText

{

border-right: 0px solid;

border-top: 0px solid;

border-left: 0px solid;

border-bottom: 0px solid;

padding: 0px 0px 0px 0px;

text-align:left;

}

 

.RadMenu_None

.rmSeparator

{

line-height: 0px;

border-right: 0px solid;

border-top: 0px solid;

border-left: 0px solid;

border-bottom: 0px solid;

padding: 0px 0px 0px 0px;

text-align:left;

}

.RadMenu_None

.rmExpandLeft,

.RadMenu_None

.rmExpandRight

{

border-right: 0px solid;

border-top: 0px solid;

border-left: 0px solid;

border-bottom: 0px solid;

padding: 0px 0px 0px 0px;

}

.RadMenu_None

.rmTopArrow,

.RadMenu_None

.rmTopArrowDisabled,

.RadMenu_None

.rmRightArrow,

.RadMenu_None

.rmRightArrowDisabled,

.RadMenu_None

.rmLeftArrow,

.RadMenu_None

.rmLeftArrowDisabled,

.RadMenu_None

.rmBottomArrow,

.RadMenu_None

.rmBottomArrowDisabled

{

height:16px;

text-decoration:none;

color:#E3EFFF;

text-indent:-9000px;

}

.RadMenu_None_rtl

.rmTopArrow,

.RadMenu_None_rtl

.rmTopArrowDisabled,

.RadMenu_None_rtl

.rmRightArrow,

.RadMenu_None_rtl

.rmRightArrowDisabled,

.RadMenu_None_rtl

.rmLeftArrow,

.RadMenu_None_rtl

.rmLeftArrowDisabled,

.RadMenu_None_rtl

.rmBottomArrow,

.RadMenu_None_rtl

.rmBottomArrowDisabled

{

text-indent:9000px;

}

.RadMenu_None

.rmRightArrow,

.RadMenu_None

.rmRightArrowDisabled

{

background: #F6F6F6 url(Menu/right.gif) center center no-repeat;

width:25px;

height:100%;

}

.RadMenu_None

.rmLeftArrow,

.RadMenu_None

.lefttArrowDisabled

{

background: #F6F6F6 url(Menu/left.gif) center center no-repeat;

width:25px;

height:100%;

}

.RadMenu_None

.rmTopArrow,

.RadMenu_None

.rmTopArrowDisabled

{

background: #e3efff url(Menu/top.gif) center center no-repeat;

width: 100%;

}

.RadMenu_None

.rmBottomArrow,

.RadMenu_None

.rmBottomArrowDisabled

{

background: #e3efff url(Menu/bottom.gif) center center no-repeat;

width: 100%;

}

.RadMenu_None

.rmScrollWrap

{

position: relative;

}

.RadMenu_None_rtl

,

.RadMenu_None_rtl

*

{

text-align:right !important;

}

.RadMenu_None_rtl

.rmGroup .rmText

{

padding: 0px 0px 0px 0px !important;

}

.RadMenu_None_rtl

.rmGroup

{

background-position: right;

}

.RadMenu_None_rtl

.rmExpandLeft,

.RadMenu_None_rtl

.rmExpandRight

{

background:transparent url(Menu/groupImageRTL.gif) left center no-repeat;

}

Tab Alleman
Top achievements
Rank 1
 answered on 07 Jun 2010
5 answers
425 views
Update: You can use the attached Patch file (in the Telerik.Web.UI_2010_1_309_Hotfix.zip archive) to fix the problem too. Please, close all Visual Studio instances first.

Update:
This fix is already applied in the Q1 2010 SP1 release. You can download it from the downloads section of your Telerik account.

An error in the Q1 2010 release was identified recently.
Details:
When starting the Visual Studio IDE you get a screen with an unhandled exception in the Telerik.VSX.AssemblyDiscovery.AssemblyLister.Init method.
The problem goes away after a Visual Studio restart.

Fix:
  1. Close all the Visual Studio instances
  2. Download the attached archive and extract its content to the [RadControlsInstallFolder]\VSExtensions
  3. If you have Visual Studio 2010 installed, extract the archive content to the [VisualStudio2010InstallDir]\Common7\IDE\Extensions\Telerik\Telerik.Web.UI.VSPackage\2010.1.309 folder as well.
  4. Start Visual Studio again
TonyG
Top achievements
Rank 1
 answered on 07 Jun 2010
7 answers
251 views
Whenever I add a combo box to my project the pull down menu is off center.  It is most likely an issue with the project template I am using, but I do not have an option as to use this template or not.  Is there a way that I can correct the location of the pull down through the control itself?
eric
Top achievements
Rank 1
 answered on 07 Jun 2010
0 answers
168 views
hello,

I want to upload files on my server but when i click on "download" i have that :

Détails de l'exception: System.UnauthorizedAccessException: L'accès au chemin d'accès 'D:\Sites\Dalkia\Les docs\calcul filtre.xls' est refusé

Trace de la pile:

[UnauthorizedAccessException: L'accès au chemin d'accès 'D:\Sites\Dalkia\Les docs\calcul filtre.xls' est refusé.]
   System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +7716639
   System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy) +1162
   System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy) +61
   System.IO.FileStream..ctor(String path, FileMode mode) +55
   System.Web.HttpPostedFile.SaveAs(String filename) +99
   Telerik.Web.UI.PostedFile.SaveAs(String fileName, Boolean overwrite) +48
   Telerik.Web.UI.Widgets.FileSystemContentProvider.StoreFile(UploadedFile file, String path, String name, String[] arguments) +90
   Telerik.Web.UI.RadFileExplorer.ProcessUploadedFiles() +638
   Telerik.Web.UI.RadFileExplorer.OnLoad(EventArgs e) +102
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627

an idea ?
sdf
Top achievements
Rank 1
 asked on 07 Jun 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?