Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
139 views
Hi,

I have an application that has a master page, from which I open a radwindow (radwindowmanager on master page) 
with more information. Once the client is happy and save the info, a 2nd radwindow (radwindowmanager on 1st radwindow page) opens in the 1st radwindow to confirm the date. When the client selected the date, the 2nd window pass the selected date back to the the 1st radwindow and close the 2nd window.

This all works wonderfull in Opera, IE8 & Chrome, however in Firefox the radwindows open as it should, but once the date is selected, it does not pass the data back to the 1st radwindow, and it does not close either. Also in FireFox the scrollbar for the 1st radwindow is still active where in the other 3 browsers its disabled as the radwindow is modal.

Code in 1st radwindow:
function GetRadWindow() {
    var oWindow = null;
    if (top.radWindow) oWindow = top.radWindow; //Will work in Moz in all cases, including clasic dialog
    else if (top.frameElement.radWindow) oWindow = top.frameElement.radWindow; //IE (and Moz az well)
    return oWindow;
}
function CloseOnReload() {
    GetRadWindow().Close();
}

aspx in 2nd radwindow:
    <script language="javascript" type="text/javascript">
        //<![CDATA[
        function GetRadWindow() {
            var oWindow = null;
            if (window.radWindow) oWindow = window.radWindow; //Will work in Moz in all cases, including clasic dialog
            else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow; //IE (and Moz az well)
            return oWindow;
        }
 
        function CloseOnReload() {
            GetRadWindow().Close();
        }
        //]]>
    </script>
 
<body style="background:#bbdbb4;">
    <form id="form1" runat="server">
        <telerik:RadScriptManager ID="RadScriptManager1" Runat="server" />
        <telerik:RadFormDecorator ID="RadFormDecorator1" Runat="server" DecoratedControls="Buttons" />
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" />
        <telerik:RadSkinManager ID="RadSkinManager1" Runat="server" Skin="Forest" />
 
        <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" Height="200px" Width="300px">
            <div style="position:absolute; left:0px; top:0px;">
                <table width="100%" cellpadding="0" cellspacing="0" border="0">
                    <tr><td colspan="2"><asp:Label ID="InjectScript" runat="server" Text="" /></td></tr>
                    <tr>
                        <td>
                            <asp:Label ID="Label1" runat="server" Text="Date :" Width="100%"></asp:Label>
                        </td>
                        <td>
                            <telerik:RadCalendar ID="RadCalendar1" Runat="server"
                                CultureInfo="English (South Africa)" EnableMultiSelect="False" SelectedDate="" 
                                ViewSelectorText="x" AutoPostBack="True">
                                <SpecialDays>
                                    <telerik:RadCalendarDay Date="2010-05-25" IsSelectable="False" IsDisabled="true">
                                    </telerik:RadCalendarDay>
                                </SpecialDays>
                            </telerik:RadCalendar>
                        </td>
                    </tr>
                </table>
            </div>
        </telerik:RadAjaxPanel>
 
        <div>
            <table width="100%" cellpadding="0" cellspacing="0" border="0" >
                <tr><td colspan="2"> </td></tr>
                <tr>
                    <td ><asp:Label ID="label2" runat="server" Text="Amount :" Width="100%" /></td>
                    <td><asp:TextBox ID="txtAmount" runat="server" /></td>
                </tr>
                <tr>
                    <td> </td>
                    <td> </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <center>
                            <asp:Button ID="cmdSave" runat="server" Text="Save" />
                            <asp:Button ID="cmdCancel" runat="server" Text="Cancel" />
                        </center>
                    </td>
                </tr>
            </table>
        </div>
    </form>
</body>
</html

code behind in aspx.vb (2nd radwindow):
Protected Sub cmdSave_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles cmdSave.Click
    Dim javaInjection As String = ""
    javaInjection = "<" + "script language='javascript' type='text/javascript'>"
    javaInjection = javaInjection + "window.parent.form1.txtDate.value='" + Me.RadCalendar1.SelectedDate + "';"
    javaInjection = javaInjection + "window.parent.form1.txtAmount.value='" + Me.txtAmount.Text + "';"
    javaInjection = javaInjection + "CloseOnReload();"
    javaInjection = javaInjection + "window.parent.form1.submit();"
    javaInjection = javaInjection + "</" + "script>"
 
    Me.InjectScript.Text = javaInjection
End Sub
 
Protected Sub cmdCancel_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles cmdCancel.Click
    Dim javaInjection As String = ""
    javaInjection = "<" + "script language='javascript' type='text/javascript'>"
    javaInjection = javaInjection + "window.parent.form1.txtDate.value='';"
    javaInjection = javaInjection + "window.parent.form1.txtAmount.value='';"
    javaInjection = javaInjection + "Window.parent.form1.frmTask.value='';"
    javaInjection = javaInjection + "CloseOnReload();"
    javaInjection = javaInjection + "</" + "script>"
 
    InjectScript.Text = javaInjection
End Sub

Thanks
Georgi Tunev
Telerik team
 answered on 16 Jul 2010
3 answers
311 views
Hi,
  I found one issue and really appreciate if you help me to find what is wrong.

  There is RadEditor on the page: <telerik:RadEditor ... />
  Initialization is following:
                radEditor.Tools.Clear();
             EditorToolGroup toolBar = new EditorToolGroup();          
...
                toolBar.Tools.Add(new EditorSeparator());
            EditorTool fontsize = new EditorTool("RealFontSize");
            toolBar.Tools.Add(fontsize);
            toolBar.Tools.Add(new EditorTool("Bold"));
            toolBar.Tools.Add(new EditorTool("Italic"));
            toolBar.Tools.Add(new EditorTool("Underline"));
            toolBar.Tools.Add(new EditorSeparator());
            toolBar.Tools.Add(new EditorTool("ForeColor"));
            toolBar.Tools.Add(new EditorTool("BackColor"));
...
                 radEditor.Tools.Add(toolBar);

  Issue is following: under IE8 (in both modes 8 & 7) when enter some text, select the text, choose some font size, click on Bold button - in font size DDL there is 100%, but must be the font size.
  Note that the same for Italic and Underline buttons. The issue is only under IE browser, e.g. FF works properly.

  I attached two screens: first just how it works w/o click on Bold button, other one when click on the button.

  Could you please take a look and update me how I can fix it and what's the main reason of the issue?

Thanks.
Rumen
Telerik team
 answered on 16 Jul 2010
4 answers
170 views
We have a main project that we have upgraded (from a 2008 version to 2009.1.527.20) and all pages underneath that are working fine. However, we have a sub project underneath the main project that has a number of server controls.

Everything is compiling fine, but when we run the page with the server controls on we are getting this error:

 

Server Error in '/_b8a/v2.4' Application.

Could not load file or assembly 'Telerik.Web.UI, Version=2009.1.527.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

 

Exception Details: System.IO.FileLoadException: Could not load file or assembly 'Telerik.Web.UI, Version=2009.1.527.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)


It looks like we have to update the Telerik dll in the sub-project but I have already done this. I have replaced the dll's for this specific project and loaded up the sub-project separately in VS to make sure it's fully updated - it is. How can it be possible that I am still getting this error?

I've also checked other support queries for this problem... and have tried many things, such as uninstalling previous versions from GAC and updating the tags in the webconfig file, but still none of this works. What can I do?

ming soller
Top achievements
Rank 1
 answered on 16 Jul 2010
3 answers
72 views
The problem is that RadPane--rpLeft which contain a usercontrol  is all blank when I make a search.The
strange thing is that  I click the RadSplitBar to collapse this pane and then click the RadSplitBar again to expand.
All content in this Pane is there.I don't know what cause this problem. I gusee it maybe the usercontrol in this pane.
Could someone give me some idea? I will appreciate it.

<
telerik:RadSplitter ID="rspSplitter" runat="server" ResizeWithBrowserWindow="true"
            VisibleDuringInit="false" Width="100%" Height="100%">
            <telerik:RadPane ID="rpLeft" runat="server" Width="20%" Scrolling="None" Collapsed="true">
                <uc4:ajaxoperatorleftpart id="AjaxPart1" runat="server" />
                <iframe id="frameMain" src="../../Default.aspx" scrolling="no" frameborder="0" width="100%"
                    height="220"></iframe>
            </telerik:RadPane>
            <telerik:RadSplitBar ID="RadSplitBar1" runat="server" CollapseMode="Forward"  />
            <telerik:RadPane ID="rpRight" runat="server" Scrolling="None" Width="80%">
                <table border="0" cellpadding="0" cellspacing="0" width="100%">
                    <tr>
                        <td valign="top">
                            <div>
                                <table class="table" border="0" cellpadding="0" cellspacing="0" width="100%" style="margin-top: 2px;
                                    margin-bottom: 2px;">
                                    <tr>
                                        <td>
                                            <table width="100%" border="0" cellpadding="0" cellspacing="0">
                                                <tr>
                                                    <td align="right">
                                                        KeyWords:
                                                    </td>
                                                    <td style="width: 220px;">
                                                        <telerik:RadTextBox ID="rtxtKeyStr" runat="server" EmptyMessage="" Width="220px">
                                                        </telerik:RadTextBox>
                                                    </td>
                                                    <td style="width: 110px;" align="right">
                                                        IsDirectSolution:
                                                    </td>
                                                    <td>
                                                        <asp:RadioButtonList ID="rblDirectSolutionSimple" runat="server" CellPadding="0"
                                                            CellSpacing="0" RepeatDirection="Horizontal" RepeatLayout="Table">
                                                            <asp:ListItem Selected="True" Value="">All</asp:ListItem>
                                                            <asp:ListItem Value="1">Y</asp:ListItem>
                                                            <asp:ListItem Value="0">N</asp:ListItem>
                                                        </asp:RadioButtonList>
                                                    </td>
                                                    <td style="width: 80px;">
                                                          
                                                        <asp:ImageButton ID="ibtnSimpleSearch" runat="server" ImageUrl="~/App_Themes/Default/images/search.gif"
                                                            OnClick="ibtnSimpleSearch_Click" Style="height: 22px" />
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                </table>
                                <telerik:RadGrid ID="RadGrid1" runat="server">
                                    <MasterTableView Name="requestList" Width="100%">
                                        <Columns>
                                            <telerik:GridTemplateColumn HeaderText="request" UniqueName="column" SortExpression="ID">
                                                <ItemTemplate>
                                                    <a href="javascript:void(null);" onclick="openRequestInfo('<%#Eval("ID") %>')">
                                                        <%#Eval("ID") %></a>
                                                </ItemTemplate>
                                                <HeaderStyle Width="80" />
                                            </telerik:GridTemplateColumn>
                                            <telerik:GridBoundColumn HeaderText="Name" UniqueName="column1" DataField="UserAccount">
                                                <HeaderStyle Width="80px" />
                                            </telerik:GridBoundColumn>
                                            <telerik:GridBoundColumn HeaderText="Department" UniqueName="column2" DataField="Department">
                                                <HeaderStyle Width="90px" />
                                            </telerik:GridBoundColumn>
                                            <telerik:GridBoundColumn HeaderText="Contract" UniqueName="column3" DataField="Telephone">
                                                <HeaderStyle Width="80px" />
                                            </telerik:GridBoundColumn>
                                            <telerik:GridTemplateColumn HeaderText="Content" UniqueName="column4">
                                                <ItemTemplate>
                                                    <asp:Label ID="lblContent" runat="server" Text='<%#Eval("Content") %>' ToolTip='<%#Eval("Content") %>'></asp:Label> 
                                                </ItemTemplate>
                                                <HeaderStyle Wrap="false" />
                                                <ItemStyle Wrap="false" />
                                            </telerik:GridTemplateColumn>
                                        </Columns>
                                        <HeaderStyle Wrap="false" />
                                    </MasterTableView>
                                    <ClientSettings>
                                        <Selecting AllowRowSelect="true" />
                                        <Resizing AllowColumnResize="True" EnableRealTimeResize="true" ClipCellContentOnResize="true" />
                                    </ClientSettings>
                                </telerik:RadGrid>
                            </div>
                        </td>
                    </tr>
                </table>
            </telerik:RadPane>
        </telerik:RadSplitter>
Svetlina Anati
Telerik team
 answered on 16 Jul 2010
3 answers
182 views
HI,

I,m using RadWindow as a poupup to set some values in code behind but i want to close popup after setting these values which is not working.
To close RadWindow popup i,m using the following code
 protected void btnMEOK_OnClick(object sender, EventArgs e)
 {
                      int i = txtMENewPassword.Text.Trim().CompareTo(txtMEConfirmNewPassword.Text.Trim());
                    if (i == 0)
                    {
                        m_Password = txtMENewPassword.Text;
                        lblMESetPassowordError.Text = "";
                        // cloase the window
                        ClientScript.RegisterStartupScript(Page.GetType(), "mykey", "CloseAndRebind();", true); // Call client method 
                                                                                                                                                                                  in radwindow page
                    }
                    else
                        lblMESetPassowordError.Text = "New password and confirm new password should be same.";
}

JavaScript Code:

 function CloseAndRebind()
         {
                GetRadWindow().Close();
                //GetRadWindow().BrowserWindow.refreshGrid(null);
            }
           
            function GetRadWindow()
            {
                var oWindow = null;
                if (window.radWindow) oWindow = window.radWindow; //Will work in Moz in all cases, including clasic dialog
                else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;//IE (and Moz as well)
                   
                return oWindow;
            }
Which is calling "CloseAndRebind()" function from code behind.

please help!

Regards
Ravi
Georgi Tunev
Telerik team
 answered on 16 Jul 2010
1 answer
70 views
Hi,

I designed radgrid with template columns like raddtpicker,radcombobox inside radpanelbar.

when i deployed the project and started browsing the website in IE8 it works fine ,panel also collapse/expand with elastic animation.

But when i browse the same in IE7 /compatibility View in IE8 the combobox,dtpicker takes few seconds to get invoked(to pulldown).also the panel collapsing finds difficult to collapse(its not smooth).

Please help me out its very urgent to decide purchase of the Ajaxtoolkit.

Thanks

Sathya
Georgi Tunev
Telerik team
 answered on 16 Jul 2010
10 answers
603 views

I've discovered the already good looking scheduler looks GREAT without it's scrollbar in monthly mode, so much better you'll definetly want this view as a default if you use month mode.  check it out, code below:

.RadScheduler_Office2007 .rsColumnHeaderLastCell  
{  
  display: none;  
}  
     
.RadScheduler_Office2007 .rsScrollingContent   
{  
   overflow:hidden !important;       /* was:        overflow: auto;*/ 
   overflow-y: none !important;       /* not sure necessary, was: overflow-y: scroll;*/ 
} 

(Height property has to be set large enough) This is excellent in month view but I need the scroll bar to still display in day and week views.  I've examined the HTML radscheduler generates and experimented a lot with rsContent .rsHorizontal rsScrollingContent rsMonthView and rsWeekView but no joy, and there is no ID output for the <DIV> either.

I was thinking about a little bit of JS to simply change the style when they click the different views, but there doesn't seem to be an event I can hook.   Telerik, do you think with more persistance I can solve this or is it a feature request?

cheers
ewart


ps the scheduler is missing a print style sheet and this change also makes the printed version look way better as long as you also get rid of the header:

     .RadScheduler_Office2007 .rsHeader
       {
        display: none !important;
       }

Pana
Telerik team
 answered on 16 Jul 2010
1 answer
90 views
Hi,
i binded names of table to the combo box.
Now when after selection in the combo box is completed.when i click on button
the concerned details of the selected combo box item have to display in RadGrid.
Suggest me any example on this.
thank you.
Shinu
Top achievements
Rank 2
 answered on 16 Jul 2010
1 answer
401 views
Hi,
i use the radgrid and allows grid can have the scroll bar in the pop-up page, but pop-up window also have scroll bar. this is results in the two scroll bars.That is not what i want. 
I don't want to have the window scroll bar,only grid scroll bar.
Could you help me? Thank you!
<!-- Parent page  -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head runat="server">
    <title>Pop-up window scrollbar</title>
    <script language="javascript" type="text/javascript">
        function showPopUpWin()
        {
            window.radopen("PopWin.aspx","PopUp");
            return false;
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        </telerik:RadScriptManager>
        <input type="button" value="..." onclick="return showPopUpWin();" />
         
    </div>
        <telerik:RadWindowManager ID="RadWindowManager1" runat="server">
        <Windows>
            <telerik:RadWindow ID="PopUp" runat="server" Modal="false" Width="640px" Height="450px">
            </telerik:RadWindow>
        </Windows>
        </telerik:RadWindowManager>
    </form>
</body>
</html>
 
<!-- Child page,page name:PopWin.aspx -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head runat="server">
    <title>Pop Window</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        </telerik:RadScriptManager>
        <telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="SqlDataSource1" GridLines="None" Width="600px" Height="400px">
            <MasterTableView AutoGenerateColumns="False" DataKeyNames="CustomerID" DataSourceID="SqlDataSource1">
                <RowIndicatorColumn>
                    <HeaderStyle Width="20px" />
                </RowIndicatorColumn>
                <ExpandCollapseColumn>
                    <HeaderStyle Width="20px" />
                </ExpandCollapseColumn>
                <Columns>
                    <telerik:GridBoundColumn DataField="CustomerID" HeaderText="CustomerID" ReadOnly="True"
                        SortExpression="CustomerID" UniqueName="CustomerID">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="CompanyName" HeaderText="CompanyName" SortExpression="CompanyName"
                        UniqueName="CompanyName">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="ContactName" HeaderText="ContactName" SortExpression="ContactName"
                        UniqueName="ContactName">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="ContactTitle" HeaderText="ContactTitle" SortExpression="ContactTitle"
                        UniqueName="ContactTitle">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Address" HeaderText="Address" SortExpression="Address"
                        UniqueName="Address">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="City" HeaderText="City" SortExpression="City"
                        UniqueName="City">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Region" HeaderText="Region" SortExpression="Region"
                        UniqueName="Region">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="PostalCode" HeaderText="PostalCode" SortExpression="PostalCode"
                        UniqueName="PostalCode">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Country" HeaderText="Country" SortExpression="Country"
                        UniqueName="Country">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Phone" HeaderText="Phone" SortExpression="Phone"
                        UniqueName="Phone">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Fax" HeaderText="Fax" SortExpression="Fax" UniqueName="Fax">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="bool" DataType="System.Byte" HeaderText="bool"
                        SortExpression="bool" UniqueName="bool">
                    </telerik:GridBoundColumn>
                </Columns>
            </MasterTableView>
            <ClientSettings>
                <Scrolling AllowScroll="True" UseStaticHeaders="True" />
            </ClientSettings>
        </telerik:RadGrid>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:NorthwindConnectionString %>" SelectCommand="SELECT TOP 10 *  FROM Customers"></asp:SqlDataSource>
    </div>
    </form>
</body>
</html>


Svetlina Anati
Telerik team
 answered on 16 Jul 2010
2 answers
291 views
Hi,

I would like to do have the same functionality as this but instead of passing the value from the dialog.aspx page to a radtextbox in the radgrid edit template, I would like to pass the value to a asp textbox in the radgrid edit template.  I am stuck -- is this possible?
Radoslav
Telerik team
 answered on 16 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?