Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
101 views
Hey Buddies,

I added the document manager control to my ListToolsFile.xml config and it works perfectly.
<tool name="DocumentManager" />

But I have failed to add more allowed file types for picking and uploading to the config.
As I read, I need to add the parameter SearchPatterns or DocumentFilters to a config file.

But i really don“t know where and how to to add the line. Everything I tried failed....

Would be great if someone could help me.

P.S. I am running Version 5.2.0 of Radeditor. Even after an Update to 5.4.0 I was not able to run it successfully.

Christian Schmidt
Top achievements
Rank 1
 answered on 24 Jun 2009
1 answer
85 views
Hi Telerik-Support,

I update my IE7 to IE8 and have the following problem.

In IE8 the CSS wouldn't be display correctly. I have a lot of CSS-File so I want
to siwtch the IE8 into the IE7 ComaptibleMode:

<

 

meta http-equiv="X-UA-Compatible" content="IE=IE7" />

All sides are displayed in the way I expect, but .....

If I do this all RadWindows couldn't be open and I get an error (please click the links to show the errors)
1. Error
2. Error

Could someone post me a solution for this. Because currently I have not enough time to update my
whole pages at all.

Thanks alot
Christian

 

Georgi Tunev
Telerik team
 answered on 24 Jun 2009
3 answers
133 views
Hello

I have strived over this for a long while so I am asking for help!

I have deployed the solution and activated the features and restart iis many times, but the radeditor just will nto show in the wiki.

What can I do? What information could I show you to help resolve my problem?

Thanks

Jon
Stanimir
Telerik team
 answered on 24 Jun 2009
5 answers
140 views
I have requirements similar to the Related Comboboxes demo.  I took the code from this demo and replaced third RadComboBox with a RadGrid.  Just like the demo...  The User selects from the first RadComboBox1 which populates and opens the second RadComboBox2.  I need the selection from the second RadComboBox2 to populated 2 RadGrids with the RadComboBox2's "value".  Both RadGrids take the same 3 arguments.  The value from RadComboBox2 plus 2 other arguments so I'm binding the grid in code-behind.

I'm using your latest version of ASP.NET Ajax,  VS 2008 C# 3.5

I have searched the forums here and spent days trying dozens of solutions:
RadAjaxManagerProxy1_AjaxRequest
RadAjaxManager1_AjaxRequest, etc...

Now I'm getting weird looks from the boss.

Each time I attempt to get this to work, I get various problamatic results like:
The dropdowns work the first time but the second time clicking on the second dropdown does nothing.
The RadGrid populates but then both dropdowns are blank.
etc....

My needs are so much like the Related Comboboxes demo, I'm hoping someone will take the time to modify it to solve my problem.  I'm sure others will benifit from this modified example and it would be a nice added demo to the product.

Here's my latest version of my JS functions:
            <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server"
                <script type="text/javascript"
                    //global variables for the Process and cities comboboxes 
                    var ProcessCombo; 
                    function pageLoad() { 
                        // initialize the global variables 
                        // in this event all client objects 
                        // are already created and initialized 
                        ProcessCombo = $find("<%= RadComboBoxProcess.ClientID %>"); 
                    } 
                    function LoadProcess(combo, eventArqs) { 
                        var item = eventArqs.get_item(); 
                        ProcessCombo.set_text("Loading..."); 
 
                        // if a dept is selected 
                        if (item.get_index() > 0) { 
                            // this will fire the ItemsRequested event of the 
                            // Process combobox passing the DeptGuid as a parameter 
                            ProcessCombo.requestItems(item.get_value(), false); 
                        } 
                        else { 
                            // the -Select a continent- item was chosen 
                            ProcessCombo.set_text(" "); 
                            ProcessCombo.clearItems(); 
                        } 
                    } 
                    function LoadGrid(sender, eventArgs) { 
                        var item = eventArgs.get_item().get_value(); 
 
                        var ajaxManager = $find("<%= RadAjaxManager1.ClientID %>"); 
                        ajaxManager.ajaxRequest(item); 
                    } 
                    function ItemsLoaded(combo, eventArqs) { 
                        if (combo.get_items().get_count() > 0) { 
                            // pre-select the first item 
                            combo.set_text(combo.get_items().getItem(0).get_text()); 
                            combo.get_items().getItem(0).highlight(); 
                        } 
                        combo.showDropDown(); 
                    } 
                </script> 
            </telerik:RadCodeBlock> 

Thanks...  Rick Hubka
Yana
Telerik team
 answered on 24 Jun 2009
3 answers
97 views
I have created a web control based on your "Adding Controls Inside Dynamically Created Docks" example.

This web control contains a RadDockLayout and RadDockZones are created dynamically during Page_Init.
In my main page, I load dynamically this web control using LoadControl() method.
When the control is loaded, event LoadDockLayout is never fired, but SaveDockLayout is.

If I turn this web control into an ASPX web page, everithing is ok.

Any suggestion ?
Pero
Telerik team
 answered on 24 Jun 2009
1 answer
137 views
I am using RadControls 2009.1.402.35 in Windows XP. I am trying to customize the button so I started by just trying to use Telerik's resources instead of the embedded ones. However the button has no styles, no outline. Just text.

These are the steps I followed:
1- Turned off EnableEmbeddedSkins like this:
<telerik:RadFormDecorator ID="RadFormDecorator1" runat="server" Skin="Web20"
                  DecoratedControls="All" EnableEmbeddedSkins="False"/>

2- Copied the files FormDecorator.css & FormDecorator.Web20.css to the css folder which is off the root folder
3- Copied the gif's from C:\Program Files\Telerik\RadControls for ASPNET AJAX Q1 2009\Live Demos\Skins\Web20\FormDecorator\ButtonSprites.gif to the 'Telerik/FormDecorator' folder which is a folder under the root folder.
4- Modified the url's for the background-image in 'FormDecorator.Web20.css' like so:
   background-image: url('Telerik/FormDecorator/ButtonSprites.gif');
 
This is my test page:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="test.aspx.cs" Inherits="MyPage.test" %>

<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>

<!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/FormDecorator.css" type="text/css" />
  <link rel="stylesheet"  href="css/FormDecorator.Web20.css" type="text/css" />
</head>
<body>
  <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server"
    EnableTheming="True">
  </telerik:RadScriptManager>
 
  <telerik:RadFormDecorator ID="RadFormDecorator1" Runat="server" Skin="Web20"
    DecoratedControls="All" EnableEmbeddedSkins="False"/>
 
  <asp:Button ID="Button1" runat="server" Text="Button" />
  </form>
</body>
</html>


Any ideas?


Georgi Tunev
Telerik team
 answered on 24 Jun 2009
1 answer
96 views
I have a radcombo on a radtoolbar template that drives the display of a radgrid , for best perfomance which control shoudl be the ajax controlling id the combo or the tool bar with the grid as the controlled id ?

other buttons on the tool bar can be clicked to switch views and make the grid.visible = false.

thanks
kevin
Shinu
Top achievements
Rank 2
 answered on 24 Jun 2009
1 answer
156 views
Hi, Telerik Team

after updating from version 2008.3.1314.35 to version 2009.1.527.35 I have lost the design of my TabStrip [Azul], the design "is broken". I explain:

I have a TabStrip (RadTabStrip1)
The code the .aspx is as below:
   
          <telerik:RadTabStrip      
                ID="RadTabStrip1"      
                SelectedIndex="0"      
                runat="server"      
                MultiPageID="RadMultiPage1"    
                CssClass="tabStrip"    
                EnableEmbeddedSkins="False"    
                Skin="Azul"    
                >    
 

My skin "Blue" could handle the padding-left and padding-right, but now, it's not possible.
The code the TabStrip.Azul.css is as below:
.RadTabStrip_Azul  
{  
    line-height: 0;  
    font-size: 0;  
}  
.RadTabStrip_Azul .rtsLI,  
.RadTabStrip_Azul .rtsLink  
{  
    color: #003366;  
    height:28px;  
}  
.RadTabStrip_Azul .rtsLink  
{  
    text-decoration: none;  
    font-family: tahoma, Verdana, Arial, Helvetica, sans-serif;  
    font-size: 12px;  
    line-height: 28px;  
}  
/* ------------------------------------------------------------------------------- */  
/* disabled tabs */  
.RadTabStrip_Azul .rtsDisabled  
{  
    color: #95D5FF;  
    cursor: default;  
}  
.RadTabStrip_Azul_disabled .rtsDisabled  
{  
    color: #95D5FF;  
    cursor: default;  
}  
/* ------------------------------------------------------------------------------- */  
.RadTabStrip_Azul .rtsImg  
{  
    border:0;  
    vertical-align:top;  
    width: 30px;  
    margin: 2px 0;  
}  
 
.RadTabStrip_Azul .rtsTxt  
{  
    padding: 0px 0px 0px 50px;  
}  
 
.RadTabStrip_Azul .rtsLink  
{  
    padding-left: 5px;  
}  
 
/* Orientation: Top */  
 
.RadTabStrip_Azul .rtsLink   
{   
    padding-right: 0px;     /*  Cambiado por mi     */  
    padding-left: 32px;   
}  
.RadTabStrip_Azul .rtsLast .rtsLink   
{   
    padding-right: 16px;   
    padding-left:  16px;   
}  
 
.RadTabStripTop_Azul .rtsIn   
{   
    padding: 4px 0px 4px 32px;   
}  
 
.RadTabStripTop_Azul .rtsLink { background: transparent url('TabStrip/TabStripStates.gif') no-repeat 100% -56px; }  
.RadTabStripTop_Azul .rtsLink .rtsOut { background: transparent url('TabStrip/TabStripStates.gif') no-repeat 0 -84px; }  
.RadTabStripTop_Azul .rtsFirst .rtsLink .rtsOut { background-position: 0 0; }  
.RadTabStripTop_Azul .rtsLast .rtsLink { background-position: 100% 0; }  
/* ------------------------------------------------------------------------------- */  
.RadTabStripTop_Azul .rtsLink:hover  
{  
    color: #95D5FF;  
}  
 
.RadTabStripTop_Azul .rtsSelected   
{  
    color: #FFFFFF;  
}  
/* ------------------------------------------------------------------------------- */  
.RadTabStripTop_Azul .rtsSelected { background-position: 100% -84px; }  
.RadTabStripTop_Azul .rtsFirst .rtsSelected .rtsOut,  
.RadTabStripTop_Azul .rtsSelected .rtsOut { background-position: 0 -28px; }  
.RadTabStripTop_Azul .rtsLast .rtsSelected { background-position: 100% -28px; }  
 
.RadTabStripTop_Azul .rtsAfter .rtsOut { background-position: 0 -56px; }  
 
.RadTabStripTop_Azul .rtsDisabled.rtsAfter .rtsOut { background-position: 0 -56px; }  
 
.RadTabStripLeft_Azul .rtsIn { padding: 4px 15px 4px 15px; }  
.RadTabStripLeft_Azul .rtsLast .rtsIn { padding-bottom: 4px; }  
.RadTabStripLeft_Azul .rtsLI .rtsLink { padding: 0; }  
/* ------------------------------------------------------------------------------- */  
.RadTabStripLeft_Azul .rtsLink:hover  
{  
    color: #ffffff;  
}  
.RadTabStripLeft_Azul .rtsSelected   
{   
    color: #ffffff;   
}  
/* ------------------------------------------------------------------------------- */  
.RadTabStripLeft_Azul .rtsSelected { background-position: 0 -28px; }  
 
 

I have done a new skin (Skin_TabStrip2), more "simple" from skin "WebBlue" and I can't adjust the padding-left and padding-right.

The code the RadTabStrip.Skin_TabStrip2.css is as below:
.RadTabStrip_Skin_TabStrip2  
{  
 
}  
 
.RadTabStrip_Skin_TabStrip2 .rtsLI,  
.RadTabStrip_Skin_TabStrip2 .rtsLink  
{  
    color: #000;  
    font: 12px/26px tahoma, Verdana, Arial, Helvetica, sans-serif;  
 
}  
 
.RadTabStrip_Skin_TabStrip2 .rtsLI,  
.RadTabStrip_Skin_TabStrip2 .rtsLink  
{  
    color: #fff;  
}  
 
.RadTabStrip_Skin_TabStrip2 .rtsLink:hover,  
.RadTabStrip_Skin_TabStrip2 .rtsSelected  
{  
    color: #0f3789;  
}  
 
.RadTabStripLeft_Skin_TabStrip2  .rtsSeparator,  
.RadTabStripRight_Skin_TabStrip2 .rtsSeparator  
{  
    background: #3D556C;  
}  
 
/* <disabled tabs> */  
.RadTabStrip_Skin_TabStrip2 .rtsLevel .rtsDisabled,  
.RadTabStrip_Skin_TabStrip2 .rtsLevel .rtsDisabled:hover  
{  
    color: #0f3789; /*  dddddd  */  
}  
/* </disabled tabs> */  
 
/* <tab backgrounds> */  
.RadTabStripTop_Skin_TabStrip2 .rtsLevel                            { background-color: transparent; }  
 
.RadTabStripTop_Skin_TabStrip2    .rtsLevel .rtsLink,  
.RadTabStripTop_Skin_TabStrip2    .rtsLevel .rtsOut,  
.RadTabStripBottom_Skin_TabStrip2 .rtsLevel .rtsLink,  
.RadTabStripBottom_Skin_TabStrip2 .rtsLevel .rtsOut,  
.RadTabStripTop_Skin_TabStrip2_Baseline     .rtsLevel,  
.RadTabStripBottom_Skin_TabStrip2_Baseline  .rtsLevel               { background-image: url('TabStrip/TabStripStates.png'); }  
/* </tab backgrounds> */  
 
 
/* <background positioning: tabs with hovers> */  
 
/* <orientation: top> */  
.RadTabStripTop_Skin_TabStrip2 .rtsLink                             { background-position: 0px  0px; }  
.RadTabStripTop_Skin_TabStrip2 .rtsOut                              { background-position: 100% 0px; }  
 
.RadTabStripTop_Skin_TabStrip2 .rtsLink:hover                       { background-position: 0px  -52px; }  
.RadTabStripTop_Skin_TabStrip2 .rtsLink:hover .rtsOut               { background-position: 100% -52px; }  
 
.RadTabStripTop_Skin_TabStrip2 .rtsSelected,  
.RadTabStripTop_Skin_TabStrip2 .rtsSelected:hover                   { background-position: 0px  -26px; }  
 
.RadTabStripTop_Skin_TabStrip2 .rtsSelected .rtsOut,  
.RadTabStripTop_Skin_TabStrip2 .rtsSelected:hover .rtsOut           { background-position: 100% -26px; }  
 
.RadTabStripTop_Skin_TabStrip2 .rtsDisabled:hover                   { background-position: 0px  0px; }  
.RadTabStripTop_Skin_TabStrip2 .rtsDisabled:hover .rtsOut           { background-position: 100% 0px; }  
 
.RadTabStripTop_Skin_TabStrip2_Baseline .rtsLevel                   { background-position: 0px  100%; background-repeat: repeat-x; }  
/* </orientation: top> */  
 
 
/* </background positioning: tabs with hovers> */  
 
.RadTabStrip_Skin_TabStrip2 .rtsText  
{  
 
}  
 

I need some help for impleting this.

Thanks for you help,
Jorge Saa-Gerbier
Kamen Bundev
Telerik team
 answered on 24 Jun 2009
1 answer
119 views
hi

this fix http://www.telerik.com/help/aspnet-ajax/troubleshooting-treeview-maximum-length-exceeded.html
throws exception at runtime

 

Server Error in '/' Application.

Configuration Error

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: Unrecognized configuration section system.web.extensions.

Source Error:

Line 127:		</browserCaps>
Line 128:	</system.web>
Line 129: <system.web.extensions>Line 130:        <scripting>
Line 131:            <webServices>



Version Information: Microsoft .NET Framework Version:2.0.50727.3082; ASP.NET Version:2.0.50727.3082

how can i fix that?
Atanas Korchev
Telerik team
 answered on 24 Jun 2009
1 answer
64 views

Requirements

RadControls version

2009.1.527.35

.NET version

2

Visual Studio version

2008

programming language

C#

browser support

all browsers supported by RadControls


PROJECT DESCRIPTION
When creating complex edit templates for RadGrid I found myself creating a lot of references like sender.Parent.Parent.Parent....etc. when trying to navigate from a control event back to the GridEditFormItem. I thought there had to be a better way. So, I created a simple templated class to navigate from a control through the control heirarchy to find the appropriate parent, based on the parent class. It works nicely for finding the GridEditFormItem in a templated edit form, but can be used for any other similar problems when navigating control hierarchies.

As an example, if a button were included in a RadGrid edit template, you might get the reference to its GridEditFormItem like this...

 

 

protected void Button1_Click(object sender, EventArgs e)  
{  
    ....  
    GridEditFormItem gridEditFormItem = (GridEditFormItem) ((Control)sender).Parent.Parent.Parent;  
    ....  

But using the FindIt class, you would use this notation... 

 

 

 

protected void Button1_Click(object sender, EventArgs e)  
{  
    GridEditFormItem gridEditFormItem = Find<GridEditFormItem>.Parent((Control)sender);  

If you use the Parent.Parent.Parent... notation and you subsequently modified the edit template, for example, perhaps you put the button inside an asp:Panel, you would have to fix the reference as well, but with the Find<> notation it would work without modification.

Its been a really useful addition to my toolkit, and helps separate code dependencies from edit template layout. I thought I'd share with others who might have similar issues.

Regards,
Ken

Yavor
Telerik team
 answered on 24 Jun 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
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
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?