Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
151 views
Hello,

I would like to display another message when the RadUpload Ajax message error 12029 occurs.
We have a few users behind firewalls that encounter this error rather frequently.

here is the default message: Telerik Popup Error Message

Any help is greatly appreciated,
Thanks
Sam

PS: I am using the 2008.3.1125.35  version of radupload component.
Genady Sergeev
Telerik team
 answered on 21 Apr 2009
1 answer
91 views
We use version 2009.1.311.20, I can't find the EnableLinqExpressions in anywhere.
How can I get linq expression instead of T-SQL expression?
Tsvetoslav
Telerik team
 answered on 21 Apr 2009
1 answer
263 views
Hi developers,

I have a very strange problem with RadAjaxPanel. My webform has a RadAjaxPanel covering the page. Inside this, I have a MultiView with two views. In the second view, I have another RadAjaxPanel. Inside this, I have a form with some fields e some validators. The problem is that my validators is not working. When I try submit the form, the post happens.

I'm using the Telerik 2008 Q3.

Bellow, follows my situation:

 

 

 
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server" EnablePartialRendering="true">  
    </telerik:RadScriptManager> 
 
    <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server"   
        HorizontalAlign="NotSet"  > 
        <asp:MultiView ID="MultiView1" runat="server">  
            <asp:View runat="server" ID="mv1">  
                <asp:Button ID="btnChangeView" runat="server" Text="Change view"   
                    onclick="btnChangeView_Click" /> 
            </asp:View> 
            <asp:View runat="server" ID="mv2">  
                <telerik:RadAjaxPanel ID="RadAjaxPanel2" runat="server"   
                    HorizontalAlign="NotSet"  > 
                    <asp:TextBox runat="server" ID="TextBox1"></asp:TextBox> 
                    <asp:RequiredFieldValidator runat="server" ID="RequeridFieldValidator1" ControlToValidate="TextBox1">*</asp:RequiredFieldValidator>                  
                    <asp:Button runat="server" ID="btnSubmit" Text="Submit"   
                        onclick="btnSubmit_Click" /> 
                </telerik:RadAjaxPanel>   
            </asp:View> 
        </asp:MultiView> 
    </telerik:RadAjaxPanel> 

    protected void Page_Load(object sender, EventArgs e)  
    {  
        if (!IsPostBack)  
            MultiView1.SetActiveView(mv1);  
    }  
    protected void btnChangeView_Click(object sender, EventArgs e)  
    {  
        MultiView1.SetActiveView(mv2);  
    }  
    protected void btnSubmit_Click(object sender, EventArgs e)  
    {  
        TextBox1.Text = "the button is clicked";  
    } 
Pavel
Telerik team
 answered on 21 Apr 2009
1 answer
122 views
Hi

I have an fully AJAXed app where I create controls at runtime.

I have a property on the page where I set the desired skin name.  I'm using EnableEmbeddedSkins="False" so that later I can create my own custom skin. 

I then have custom server controls decended from CompositeControl where I create a RadTextBox in the CreateChildControls event.

  Controls.Clear;  
  Controls.Add(ControlFactory.CreateLiteral('<div class="fielddiv">'));  
 
  Controls.Add(ControlFactory.CreateLiteral('<span class="label">'));  
  ecLabel := &Label.Create;  
  ecLabel.Text := EcoControl.DisplayName;  
  Controls.Add(ecLabel);  
  Controls.Add(ControlFactory.CreateLiteral('</span><span class="field">'));  
 
  FTextBox := RadTextBox.Create;  
  FTextBox.Text := Value;  
 
  FTextBox.Skin := PageSettings.Skin;  
  FTextBox.EnableEmbeddedSkins := False;  
 
  Include(self.FTextBox.TextChanged, self.ecTextBox_TextChanged);  
  Controls.Add(FTextBox);  
 
 
  Controls.Add(ControlFactory.CreateLiteral('</span>'));  
 
  Controls.Add(ControlFactory.CreateLiteral('</div>')); 

This is my header code from my page.

    <link href="/EcoGuiApp2/Skins/Menu.css" rel="stylesheet" type="text/css">  
    <link href="/EcoGuiApp2/Skins/ToolBar.css" rel="stylesheet" type="text/css">  
    <link href="/EcoGuiApp2/Skins/Grid.css" rel="stylesheet" type="text/css">  
    <link href="/EcoGuiApp2/Skins/Widgets.css" rel="stylesheet" type="text/css">  
    <link href="/EcoGuiApp2/Skins/<%= SkinName %>/Menu.<%= SkinName %>.css" rel="stylesheet" type="text/css">  
    <link href="/EcoGuiApp2/Skins/<%= SkinName %>/Input.<%= SkinName %>.css" rel="stylesheet" type="text/css">  
    <link href="/EcoGuiApp2/Skins/<%= SkinName %>/Widgets.<%= SkinName %>.css" rel="stylesheet" type="text/css">  
    <link href="/EcoGuiApp2/Skins/<%= SkinName %>/ComboBox.<%= SkinName %>.css" rel="stylesheet" type="text/css">  
    <link href="/EcoGuiApp2/Skins/<%= SkinName %>/TabStrip.<%= SkinName %>.css" rel="stylesheet" type="text/css">  
    <link href="/EcoGuiApp2/Skins/<%= SkinName %>/Calendar.<%= SkinName %>.css" rel="stylesheet" type="text/css">  
    <link href="/EcoGuiApp2/Skins/<%= SkinName %>/ToolBar.<%= SkinName %>.css" rel="stylesheet" type="text/css">  
    <link href="/EcoGuiApp2/Skins/<%= SkinName %>/Grid.<%= SkinName %>.css" rel="stylesheet" type="text/css">  
 

When I create my controls on the page, the TabStrip, Toolbars, Grids all have the correct skin, but the input does not get skinned, nor does the calendar control.  I also have a RadComboBox created the same way in another composite control that does get skinned correctly.

If I set EnableEmbeddedSkins="True" then the skins are applied correctly, but this will mean I can't create a custom skin.

I'm using version 2008.3.20.1125

Any ideas what I'm doing wrong.

Many thanks

Nick Crisp
Nicholas
Top achievements
Rank 1
 answered on 21 Apr 2009
1 answer
83 views

When creating items in a panel bar with the client API, the following error is generated.

Microsoft JScript runtime error: '_getAnimationContainer().style' is null or not an object

This happens only when ExpandMode="FullExpandedItem" and PreventCollapse="true".


Sample code follows:

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Toolbar._Default" %>
<%@ 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>
    <script type="text/javascript">
        function refresh() {
            var panel = $find("Panel1").findItemByValue("ITEM");
            var items = panel.get_items();
            items.clear();
            var item = new Telerik.Web.UI.RadPanelItem();
            item.set_text("Item");
            items.add(item);
            panel.expand();
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager runat="server"></telerik:RadScriptManager>
    <input type="button" value="Click Me Several Times" onclick="refresh();" />
    <telerik:RadPanelBar ID="Panel1" Runat="server" ExpandMode="FullExpandedItem">
        <Items>
            <telerik:RadPanelItem Text="Item0" Value="ITEM" PreventCollapse="true"></telerik:RadPanelItem>
        </Items>
    </telerik:RadPanelBar>
    </form>
</body>
</html>

 

I am using 2009 Q1.

Paul
Telerik team
 answered on 21 Apr 2009
1 answer
97 views
We have the RadMenu and when I select an item the content opens up in an IFrame.
Sometimes however, the menu closes after item selection which it supposed to BUT then opens up again on its own. How can I stop this behavior?
Serrin
Top achievements
Rank 1
 answered on 21 Apr 2009
1 answer
199 views
Hi,

I was looking at the programming model for RADFileExplorer, and wad wondering, is there a way to hide the extension of a  file? I know in C# I can hide file extensions, but would this cause problems with opening a file in RADFileExplorer?

Thanks
Lini
Telerik team
 answered on 21 Apr 2009
1 answer
81 views
Hello,

We are probably going to purchase RadEditor for use with our MOSS 2007 environment, but the decision would be made a lot easier if I had some idea of how difficult it would be for us to migrate all of our existing CEWPs to RadEditor web parts. I see here that this is a process that is typically done manually, but I am wondering if anyone has written a feature that does this automatically?

I have a general sense of how this should be done but haven't tried it yet. If I can get it to work I will share this with the community... to simplify, would it make sense to wrap a SPJob in a feature which: traverses all SPSites in a target SPFarm, find all pages that contain CEWPs, check the pages out for editing, scrape all content from the CEWP, create a new RadEditor web part, and copy the content, delete the old CEWP, and check the page back in?

Thanks,
Bill
Stanimir
Telerik team
 answered on 21 Apr 2009
2 answers
105 views
Hi

  I am trying to register the radprompt function from codebehind but i am not able to see the prompt message.
  

string

 

jScript = "<script>radprompt('Hi', promptCallBackFn, 330, 100,null,'Test','');</script>";

 

 

ScriptManager.RegisterStartupScript(Page, Page.GetType(), "radprompt", jScript, false);

But If i call the same in OnClientClick="radprompt('Hi', promptCallBackFn, 330, 100,null,'Test','');return false;" of the Button control the radprmopt is getting triggered..
I am not sure if i am missing something???

Is there any work around for this???
Can you give me the solution to fire the radprompt function when i register it from codebehind..

Regards
Bose Thirumalai

 

Bose
Top achievements
Rank 1
 answered on 21 Apr 2009
2 answers
138 views
There seems to be some kind of problem when using a radwindow as a response to a contextmenu item click.  Once you click on the menu item, you get a javascript error, 'type' is null or not an object, in a dynamic Telerik.Web.UI code.  This is on Q1 2009.

Here is a very simple page to reproduce the issue:

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="test.aspx.vb" Inherits="test" %> 
 
<!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>  
    <script language="javascript" type="text/javascript">  
 
        function onClicking(sender, eventArgs) {  
            var item = eventArgs.get_item();  
 
            var oManager = GetRadWindowManager();  
            var navigateUrl = item.get_navigateUrl();  
 
            eventArgs.set_cancel(true);  
 
            if (navigateUrl && navigateUrl != "#") {  
                oManager.open(navigateUrl, "document");  
 
            }  
        }  
 
    </script> 
</head> 
<body> 
    <form id="form1" runat="server">  
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">  
    </telerik:RadScriptManager> 
    <div> 
        <telerik:RadContextMenu ID="RadContextMenu1" runat="server" OnClientItemClicking="onClicking">  
        <Targets> 
            <telerik:ContextMenuDocumentTarget /> 
        </Targets> 
        <Items> 
            <telerik:RadMenuItem Text="Documents">  
                <Items> 
                    <telerik:RadMenuItem Text="Item 1" NavigateUrl="documents/Sample/Sample%20Lease%20Document%202008.pdf">  
                    </telerik:RadMenuItem> 
                    <telerik:RadMenuItem Text="Item 2">  
                    </telerik:RadMenuItem> 
                </Items> 
            </telerik:RadMenuItem> 
        </Items> 
        </telerik:RadContextMenu>     
        <telerik:RadWindowManager ID="RadWindowManager1" runat="server">  
        </telerik:RadWindowManager> 
    </div> 
    </form> 
</body> 
</html> 
 
jorge
Top achievements
Rank 1
 answered on 21 Apr 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?