Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
110 views
Here is my situation.

I have a page HTTP Lets call it "Products"
I have a page HTTPS Let call it "Purchase"
I have a page (which can be HTTP or HTTPS) lets call it "Terms"

The products http page calls a Modal dialog "Purchase" and on this purchase dialog I have a "View Terms" link.
the "Terms" dialog shows up Inside the bounds of the "Purchase" dialog.

I am trying to get the "Terms" page to show up outside the bounds of the "Puchase" dialog since it is much larger.

My problem is that I am getting an access denied trying to call javascript on the parent, "Products" Page.

"Purchase" radWindow
function ShowTerms() {
      GetRadWindow().BrowserWindow.ShowTerms();
     }

"Products" Main Page
   function ShowTerms() {
    var oManager = GetRadWindowManager();
    var oWnd = oManager.open('/Terms.aspx', 'dlgTerms');
   }

Of course being that Purchase is SSL and Products is not Im getting an Access Denied.

basically i need to the Terms dialog to show up outside of the "Purchase" dialog bounds, without having to call a function on the parent window (because of the HTTP/HTTPS restrictions.)

anyone have a workaround for my dilema?

Oh, and I have other restrictions I need to take into account, so making everything https or http is not an option as it stands.
Georgi Tunev
Telerik team
 answered on 07 Jul 2010
5 answers
363 views
I was noticing there are some inconsistencies between browsers.

I am using a fieldset with a legend and am noticing that when using the black skin, the legend is correctly rendered in green when using IE, but is white in firefox and chrome.

This is evident on the first look demo of the field decorator.
http://demos.telerik.com/aspnet-ajax/formdecorator/examples/default/defaultcs.aspx

Is this one of those, can't fix items or is there some css magic I can use to get the other browsers to render the legend in the same color.

As well, just a minor layout issue with the demo, when using chrome, the legend on the left bottom fieldset (username/password) is right aligned, but left aligned in IE/FireFox.


Bozhidar
Telerik team
 answered on 07 Jul 2010
2 answers
102 views
Hi

The fieldset border gets broken up every time a validator control is shown.  This occurs in IE6, 7 and 8 but seems OK in Firefox.

Here is a very simple form sample to demonstrate the issue:

    <telerik:RadScriptManager ID="RadScriptManager" runat="server" /> 
    <telerik:RadFormDecorator ID="RadFormDecorator" runat="server" DecoratedControls="Default, Textbox, Textarea, Fieldset, Select" /> 
    <fieldset> 
      <legend>Test form</legend> 
      <div> 
        <asp:Label ID="lblName" runat="server" Text="Name" AssociatedControlID="txtName" /> 
        <asp:TextBox ID="txtName" runat="server" /> 
        <asp:RequiredFieldValidator ID="rfvName" runat="server" ErrorMessage="Name is required" ControlToValidate="txtName" Display="Static" Text="*" /> 
      </div> 
      <div> 
        <asp:Label ID="lblPosition" runat="server" Text="Position" AssociatedControlID="txtPosition" /> 
        <asp:TextBox ID="txtPosition" runat="server" /> 
        <asp:RequiredFieldValidator ID="rfvPosition" runat="server" ErrorMessage="Position is required" ControlToValidate="txtPosition" Display="Static" Text="*" /> 
      </div> 
      <div style="text-align: center"> 
        <asp:Button ID="btnSubmit" runat="server" Text="Submit" /> 
        <asp:ValidationSummary ID="ValidationSummary" runat="server" /> 
      </div> 
    </fieldset> 
 

Should I avoid using RadFormDecorator for fieldsets if the user agent is IE?

Regards,
Dan
Bozhidar
Telerik team
 answered on 07 Jul 2010
1 answer
75 views
Is there any code sample that I can get the value of a TreeViewNode after dropping the RadGridItem?

Can't find any sample code from RadGrid t RadTreeView.

Thanks in advance.
Veli
Telerik team
 answered on 07 Jul 2010
1 answer
156 views
Hello,
I'm using telerik upload for uploading multiple files
The control gives the option to upload up to 20 files .
The problem is that sometimes not all files were uploaded
for example, I choose 10 files to upload and after 3 or 4 files
it stops uploading and redirecting to main page as if all files were uploaded.
I get no error message.... and cant feagure out what the problem is.

Have any of you encountered this kind of problem?
Any ideas for solution or how to check why this is hapening?

Thank you very much

Ilan
Genady Sergeev
Telerik team
 answered on 07 Jul 2010
1 answer
156 views
I've got a grid bound to a dataset that contains a column named "[$Colld]".      The brackets are actually a part of the column name.
For this column on my grid, I've got 

 

 

 

DataField="[$Colld]" 

and that works fine, the data shows in the grid.   However, I've also got   

 

 

 

 

 

SortExpression="[$Colld]" 

and when I click on the column header to sort by that column, I get this error:
Cannot find column $Colld.

It's like the brackets get ignored when they are in the SortExpression. 
So I tried:    

 

 

 

 

 

SortExpression="[[$Colld]]" 

but I get this error:
[[$Colld]] is neither a DataColumn nor a DataRelation for table ICRData.

How can I escape the brackets so that the SortExpression is accurately interpreted as "[$Colld]" ??  

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Princy
Top achievements
Rank 2
 answered on 07 Jul 2010
1 answer
172 views
Hi
 
we are using telerik menu control for a form , In that we are using menu scoll functionality as shown below
http://demos.telerik.com/aspnet-ajax/menu/examples/functionality/scrolling/defaultcs.aspx.

The vertical scoll for the menu works fine, but we seem the scroll happens very very slow.

Is there any way to increase the speed of the scroll....


Advance Thanks,
Sanjay
Yana
Telerik team
 answered on 07 Jul 2010
2 answers
104 views
Hello,
i am using radeditor in my page..
i want to set the default font name as verdana. so i am using this css file in my page...        

<

 

CssFiles>

 

<

 

telerik:EditorCssFile Value="styles/EditorContentArea.css" />

 

</

 

CssFiles>

 

this works fine in ie and chrome but not in firefox...

Rumen
Telerik team
 answered on 07 Jul 2010
3 answers
137 views
I wrote this code for opening a dialog for displaying my confirmation dialog but when I click on yes button my return method will be executed but OnClientClose never been executed?
I wrote 2 user control. first one is my main message box control that contain RadWindowManager and a hidden ButtonYes. In second one I will shown my message and my Yes button (MessageBoxContainer user control). In my strategy when you click on yes button on MessageBoxContainer control message box will be closed and return an argument to MessageBox control and it must execute OnClientClose function for clicking on hidden ButtonYes but OnClientClose never be executed!! Here is my code.

<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MessageBox.ascx.cs" Inherits="Diten.Web.AspNet.UI.UserControls.MessageBox" Debug="true" %>
<script type="text/javascript">
    function openWin(url, windowID) {
        var parentPage = GetRadWindow().BrowserWindow;
        var parentRadWindowManager = parentPage.GetRadWindowManager();
        var oWnd = parentRadWindowManager.open(url, windowID);
        window.setTimeout(function () {
            oWnd.setActive(true);
        }, 0);
    }

    function OnClientClose(oWnd, args) {
        alert('Parent: ' + arg.clikedButton);
        var arg = args.get_argument();

        if (arg) {
            if (arg.clikedButton == 'Ok') {
                document.getElementById('<%= this.ButtonOk.ClientID %>').click();
            } else if (arg.clikedButton == 'Cancel') {
                document.getElementById('<%= this.ButtonCancel.ClientID %>').click();
            } else if (arg.clikedButton == 'Retry') {
                document.getElementById('<%= this.ButtonRetry.ClientID %>').click();
            } else if (arg.clikedButton == 'Abort') {
                document.getElementById('<%= this.ButtonAbort.ClientID %>').click();
            } else if (arg.clikedButton == 'Yes') {
                document.getElementById('<%= this.ButtonYes.ClientID %>').click();
            } else if (arg.clikedButton == 'No') {
                document.getElementById('<%= this.ButtonNo.ClientID %>').click();
            }
        }
    }
</script>
<telerik:RadWindowManager ID="RadWindowManager" runat="server" OnClientClose="OnClientClose" Behaviors="Close, Move" VisibleStatusbar="false" AutoSize="true" ShowContentDuringLoad="false" DestroyOnClose="true" >
</telerik:RadWindowManager>
<asp:Button ID="ButtonOk" runat="server" Text="Ok" onclick="ButtonOk_Click" style="display:none;" />
<asp:Button ID="ButtonCancel" runat="server" Text="Cancel" onclick="ButtonCancel_Click" style="display:none;" />
<asp:Button ID="ButtonRetry" runat="server" Text="Retry" onclick="ButtonRetry_Click" style="display:none;" />
<asp:Button ID="ButtonAbort" runat="server" Text="Abort" onclick="ButtonAbort_Click" style="display:none;" />
<asp:Button ID="ButtonYes" runat="server" Text="Yes" onclick="ButtonYes_Click" style="display:none;" />
<asp:Button ID="ButtonNo" runat="server" Text="No" onclick="ButtonNo_Click" style="display:none;" />




MessageBox show method

        public void Show(string message, MessageBoxModes messageBoxMode, MessageBoxIcon messageBoxIcon, string eventHandlerID, bool isModal)
        {
            message = message.Replace("%n", "<br/>");

            string _parameters = "ControlToLoad=Diten.Web.AspNet.UI.UserControls.MessageBoxContainer" + "&OpenerID=" + this.OpenerID + "&Message=" + message +
                "&MessageBoxMode=" + ((int)messageBoxMode).ToString() + "&MessageBoxIcon=" + ((int)messageBoxIcon).ToString() +
                "&MessageBoxEventHandlerID=" + eventHandlerID;
           
            string _navigateUrl = "/MainFrame.aspx?EncParameters=" + this.Encrypt(_parameters) + "', '" + this.Translate("Message");

            RadWindow _radWindow = new RadWindow();
            _radWindow.ID = "RadWindow" + Guid.NewGuid().ToString().Replace("-", string.Empty);
            _radWindow.Behaviors = WindowBehaviors.Close;
            _radWindow.Modal = isModal;
            _radWindow.NavigateUrl = _navigateUrl;
            _radWindow.Animation = WindowAnimation.Fade;
            _radWindow.OnClientClose = "OnClientClose";

            this.RadWindowManager.Windows.Add(_radWindow);

            string _javaScript = string.Empty;

            if (!isModal)
                _javaScript = "radopen('" + _navigateUrl + "', '" + _radWindow.ID + "');";
            else
                _javaScript = "openWin('" + _navigateUrl + "', '" + _radWindow.ID + "');";

            RadScriptManager.RegisterClientScriptBlock(Page, Page.GetType(), this.ClientID + "MessageBox", _javaScript, true);
        }



MessageBoxContainer ASCX code

<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MessageBoxContainer.ascx.cs" Inherits="Diten.Web.AspNet.UI.UserControls.MessageBoxContainer" Debug="true" %>
<%@ Register Src="~/UI/UserControls/Templates/GroupBox.ascx" TagPrefix="DitenAsp" TagName="GroupBox" %>
<script language="javascript">
    function returnToParent(clikedButton) {
        var oArg = new Object();
        var oWnd = GetRadWindow();

        oArg.clikedButton = clikedButton;
        oWnd.close(oArg);
    }
</script>
<table cellpadding="0" cellspacing="0" width="100%" style="vertical-align: top;">
    <tr>
        <td align="center" width="100%" style="vertical-align: top;">
            <table cellpadding="0" cellspacing="0" width="100%" style="vertical-align: top;">
                <tr>
                    <td style="vertical-align: top; padding-right: 5px;">
                        <asp:Image ID="ImageIcon" runat="server" Width="32px" Height="32px" />
                    </td>
                    <td style="vertical-align: middle; text-align: left;" wrap="nowrap" nowrap>
                        <DitenAsp:GroupBox ID="GroupBox" runat="server">
                            <ContentTemplate>
                                <asp:Label ID="LabelMessage" runat="server" Text="Label"></asp:Label>
                            </ContentTemplate>
                        </DitenAsp:GroupBox>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
    <tr>
        <td align="center" width="100%" style="height: 33px;">
            <asp:PlaceHolder ID="PlaceHolderButtons" runat="server"></asp:PlaceHolder>
        </td>
    </tr>
</table>



i'm adding ButtonYes and RadWindow dynamically into my controls. Now my question is how could I execute OnClientClose method by calling OnClientClose event of my RadWindowManager or my RadWindow?
Georgi Tunev
Telerik team
 answered on 07 Jul 2010
2 answers
82 views
Hi fellows!
I'm a newby in programming so please forgive me if i asking something commonly known...
I'm using RadTreeView in my rpoject - popultated with surveys and questions
and i want to use

startNodeInEditMode
method for edit the node Text . The question is : How to save the newly updated value to DB - wich event should i use for it?

shootermv
Top achievements
Rank 1
 answered on 07 Jul 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?