Telerik Forums
UI for ASP.NET AJAX Forum
9 answers
428 views
Hi.

I'm trying to do some fancy stuff when my radwindow is closed (using the 'x'). Therefore I use the onClientClose-Event of the RadWindowManager (as noticed in different forum-topics here)

So my site looks like this:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DetailEmail.aspx.cs" Inherits="waPMHI.dlg.DetailEmail" %> 
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml" > 
 
<head runat="server"
    <title>E-Mail</title> 
    <meta http-equiv="Content-type" content="application/xhtml+xml; charset=utf-8" /> 
    <link rel="stylesheet" type="text/css" href="../Styles/pmhi.css" /> 
 <telerik:RadCodeBlock ID="RadCodeBlock12" runat="server">     
    <script language="javascript" type="text/javascript"
// [... other functions ...] 
 function machzu() { 
            alert('zu'); 
        } 
    </script> 
    </telerik:RadCodeBlock> 
</head> 
<body class="mailTableBack""> 
 
<telerik:RadWindowManager ID="SingletonSkinFix" runat="server"  Skin="Web20" OnClientClose="machzu()"/> 
 
           
    <form id="wrapper" runat="server"  
    style="height: 100%; width: 100%; "
    <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server"
     <telerik:RadScriptManager ID="RadScriptManager1" runat="server" ></telerik:RadScriptManager>   
<telerik:/RadAjaxPanel> 
<%-- [... a lot of other stuff ...] --%> 
</form></body></html> 
But the function "machzu" is *not* opened when I close the window. Instead it opens at the beginning (just like an onload-Event)

Any idea why there is this weird behaviour?


Georgi Tunev
Telerik team
 answered on 05 Feb 2009
4 answers
216 views
I have a web page with multiple blocs that can be updated individually, every bloc is a usercontrol.

These usercontrols are in an ASPX and I have a masterpage.

When I click a list on top of my page, I want to update 3 usercontrol below and have the ajaxloadingpanel visible on top of every usercontrol, so if they take longer to update, every UC will have its ajaxupdate disappearing not at the same time.

When I do my select action on the top control, this radgrid is ajax updated and I see the loadingpanel on top of it.  Also, my 3 usercontrol are ajax-updated successfully, but I do not see the loadingpanel on top of them.

Details: the dgproducts table is ajax updated and I see the default loadingpanel from the masterpage on top of it.
The ProductlinkUC, ProductCountryUC and ProductCategoryUC ARE ajax-updated but I do not see the loadingpanel on top of them.
What I am doing wrong?

masterpage:
    <form id="form1" runat="server" style="height: 100%;"
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server"
    </telerik:RadScriptManager> 
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" DefaultLoadingPanelID="RadAjaxLoadingPanel1"
    </telerik:RadAjaxManager> 
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Height="75px" Transparency="1" 
        Width="75px"
        <img alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>' 
            style="border: 0px;" /> 
    </telerik:RadAjaxLoadingPanel> 
 
aspx page:
<asp:Content ID="Content2" ContentPlaceHolderID="CenterContent" runat="server"
    <telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server" > 
        <AjaxSettings> 
            <telerik:AjaxSetting AjaxControlID="dgproducts" EventName="SelectedIndexChanged"
                <UpdatedControls> 
<!-- I DO NOT SEE UPDATEPANEL FOR THIS CONTROL AND THE 2 OTHERS UC --> 
                    <telerik:AjaxUpdatedControl ControlID="ProductLinkUC1"  LoadingPanelID="RadAjaxLoadingPanel1" /> 
                    <telerik:AjaxUpdatedControl ControlID="ProductCountryUC1" LoadingPanelID="RadAjaxLoadingPanel2" /> 
                    <telerik:AjaxUpdatedControl ControlID="ProductCategoryUC1" LoadingPanelID="RadAjaxLoadingPanel3" /> 
<!-- EVERYTHING OK FOR DGPRODUCTS --> 
                    <telerik:AjaxUpdatedControl ControlID="dgproducts" />  
                </UpdatedControls> 
            </telerik:AjaxSetting> 
        </AjaxSettings> 
    </telerik:RadAjaxManagerProxy> 
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Height="75px" 
        Width="75px"
        <img alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>' 
            style="border: 0px;" /> 
    </telerik:RadAjaxLoadingPanel> 
 
(also loadingpanel2, loadingpanel3) 
... 
    <telerik:RadGrid ID="dgproducts" runat="server" AutoGenerateColumns="False" DataSourceID="dsproduct" 
        GridLines="None" Skin="WBS" EnableEmbeddedSkins="False" AllowAutomaticUpdates="true"
... 
    </telerik:RadGrid> 
    <table cellpadding="0" cellspacing="0" border="0"
        <tr> 
            <td style="vertical-align: top"
                <uc1:ProductLinkUC ID="ProductLinkUC1" runat="server" /> 
                <uc1:ProductCountryUC ID="ProductCountryUC1" runat="server" /> 
            </td> 
            <td style="vertical-align: top"
                <uc1:ProductCategoryUC ID="ProductCategoryUC1" runat="server" /> 
            </td> 
        </tr> 
    </table> 
 

Iana Tsolova
Telerik team
 answered on 05 Feb 2009
1 answer
147 views
Just a comment...

In our application, we open radwindows from the client side in javascript. Some of those dialog are used to "batch edit" many records selected in a page. To pass the selected records to the dialog, we append their IDs in the query string of the radwindow (as described in the "Using the URL Query String to Provide Arguments to RadWindow" chapter in the documentation) The problem is that in IE, the URL is limited to 2000 characters, so if we select too many record, this create an invalid url.

So it would be nice if we could open a radwindow from the client-side using a POST instead of a GET to remove this limitation.

Thanks
Georgi Tunev
Telerik team
 answered on 05 Feb 2009
8 answers
287 views
When the user clicks a table cell I call this function

function Cell_onclick(arg)
{
var ajaxManager = <%= RadAjaxManager1.ClientID %>;
   ajaxManager.AjaxRequest(arg);
}

That script puts me into the code behind and executes the code below

Protected Sub RadAjaxManager1_AjaxRequest(ByVal sender As Object, ByVal e As Telerik.WebControls.AjaxRequestEventArgs) Handles RadAjaxManager1.AjaxRequest

        Label2.Text = e.Argument

    End Sub

I can debug through the application and hit the ajax request but the Label text doesnt change. What am I missing?
Nikolay Rusev
Telerik team
 answered on 05 Feb 2009
1 answer
189 views
Hi All,

I am currently doing the review of two ASP.Net Ajax Toolkits i.e. Telerik and ComponentArt's Web.UI. The ComponentArt provides three diffierent mechanisms to bind the controls with the data i.e.

  1. Using Ajax UpdatePanel
  2. ComponentArt Callback
  3. Using WebServices

All of the above techniques have their own advantages based upon the Performance, Ease of Use, Features and Elegance. The usage of WebService has an advantage on all the other techniques.

I want to ask you about whether Telerik provides above mentioned capabilities and if so can you please provide me the link to the performance graph for different techniques, also some specific examples will be appreciated. If not then please refer me to the way through which we can acheive the best performance from Telerik Controls. I need to finalize the Toolkit of our product.

Thanking in advance.

Regards,
Ghazanfar.

Sebastian
Telerik team
 answered on 05 Feb 2009
1 answer
149 views
Hi,

I have a website with frameset ( not  iframe) . ( leftmenu, topmenu, content frame....)

with the selection from the left menu, some aspx pages load in content frame.
Here is my problem, I open radwindow from the .aspx page in the content frame in which i have a radgrid. When i close the radwindow,
i want the radgrid to be refreshed.

İ have the necessary js function, on my aspx page, and i use

GetRadWindow().BrowserWindow.refreshGrid();  while closing radwindow. But GetRadWindow().BrowserWindow returns the frameset page, not the content frame.

How can i access to the content page ???


Georgi Tunev
Telerik team
 answered on 05 Feb 2009
2 answers
105 views
Helo,
In a ASP RaGrid I select a row in client side. 

$find("<%= CodOpera.ClientID %>").set_value(eventArgs.get_item().get_cell("CodOpera").innerHTML);

 


CodOpera is an RadTextBox and also is the name of the column in the grid (and in the table)

This works fine, but if I set the Scrolling enable the software break and show :
"Error en tiempo de ejecución de Microsoft JScript: 'get_item().get_cell(...).innerHTML' es nulo o no es un objeto"

I need your help, please.
Miquel


 

 

Miguel Reig
Top achievements
Rank 1
 answered on 05 Feb 2009
3 answers
188 views
I am using telerik:RadEditor and started to use the SKIN property. I copied the skins folder from RadControls to my App_themes.

I did set the SKIN ="Default2006"

Telerik.Web.UI.RadEditor with ID='testEditorControl' was unable to find embedded skin with name '"Default2006'. Please, make sure that you spelled the skin name correctly, or if you want to use a custom skin, set EnableEmbeddedSkins=false.

what are the steps that i should follow to make the Skin work?

Rumen
Telerik team
 answered on 05 Feb 2009
4 answers
108 views
If I make my page render larger by holding down ctrl and scrolling the mouse wheel (to make IE7 font size larger - browser must first be maximized so a scroll bar appears horizonatlly), it causes my grid to garble its contents after I have clicked add or edit to bring up the form and then hit cancel. I have to navigate away from the page and come back, and the grids contents are reset in their cells as normal.

Here is what it looks like:
Garbled RadGrid after hitting cancel from edit/add form

My code block on my ascx page:
<%@ Control Language="VB" AutoEventWireup="false" CodeFile="ManageRoles.ascx.vb" 
    Inherits="Manager_Controls_ManageRoles" %> 
<%@ Import Namespace="Engine.Components.Common" %> 
<table width="100%" cellpadding="0" cellspacing="0" border="0">  
    <tr> 
        <td> 
            <table width="100%" cellpadding="0" cellspacing="0" border="0">  
                <tr> 
                    <td colspan="2">  
                        <asp:Label ID="lblError" runat="server" Visible="false" EnableViewState="false" CssClass="red"><br /></asp:Label> 
                    </td> 
                </tr> 
                <tr> 
                    <td colspan="2">  
                        <telerik:RadGrid ID="rgRoles" Skin="Office2007" GridLines="None" runat="server" AutoGenerateColumns="False" 
                            Width="99%" AllowSorting="True" SortingSettings-SortedAscToolTip="/Manager/images/arrw_up.gif" 
                            SortingSettings-SortedDescToolTip="/Manager/images/arrw_d.gif">  
                            <MasterTableView DataKeyNames="RoleName" Width="100%" CommandItemDisplay="Top" AllowPaging="True" 
                                PageSize="<%# Config.AdminGridPageSize() %>" AllowMultiColumnSorting="True">  
                                <Columns> 
                                    <telerik:GridTemplateColumn UniqueName="TemplateColumn">  
                                        <ItemTemplate> 
                                            &nbsp;  
                                            <asp:LinkButton ID="imgBtnEdit" runat="server" CommandName="Edit" Text="Edit" ForeColor="#044A7E" 
                                                CausesValidation="false" Visible='<%# DelButShow(DataBinder.Eval(Container.DataItem, "RoleName")) %>' /> 
                                        </ItemTemplate> 
                                        <HeaderStyle Width="7%" /> 
                                    </telerik:GridTemplateColumn> 
                                    <telerik:GridBoundColumn HeaderText="Role" UniqueName="RoleName" DataField="RoleName">  
                                        <HeaderStyle HorizontalAlign="Left" Width="84%" /> 
                                    </telerik:GridBoundColumn> 
                                    <telerik:GridTemplateColumn UniqueName="TemplateColumn1">  
                                        <ItemTemplate> 
                                            &nbsp;  
                                            <asp:LinkButton ID="imgBtnDelete" runat="server" CommandName="Delete" ForeColor="#044A7E" 
                                                Text="Delete" CausesValidation="false" Visible='<%# DelButShow(DataBinder.Eval(Container.DataItem, "RoleName")) %>' 
                                                OnClientClick="javascript:if(!confirm('This action will delete the selected role. Are you sure?')){return false;}"></asp:LinkButton> 
                                        </ItemTemplate> 
                                        <HeaderStyle Width="8%" /> 
                                    </telerik:GridTemplateColumn> 
                                </Columns> 
                                <EditFormSettings UserControlName="/Manager/Controls/RolesAddEdit.ascx" EditFormType="WebUserControl">  
                                    <EditColumn UniqueName="EditCommandColumn1">  
                                    </EditColumn> 
                                </EditFormSettings> 
                                <CommandItemTemplate> 
                                    <asp:LinkButton ID="lnkAddRole" runat="server" Text="Add New Role" ForeColor="#E8750F" 
                                        CommandName="InitInsert" Visible='<%# Not rgRoles.MasterTableView.IsItemInserted %>' 
                                        CausesValidation="false"></asp:LinkButton> 
                                </CommandItemTemplate> 
                                <ExpandCollapseColumn Visible="False">  
                                    <HeaderStyle Width="19px" /> 
                                </ExpandCollapseColumn> 
                                <RowIndicatorColumn Visible="False">  
                                    <HeaderStyle Width="20px" /> 
                                </RowIndicatorColumn> 
                            </MasterTableView> 
                            <SortingSettings SortedAscToolTip="/Manager/images/arrw_up.gif" SortedDescToolTip="/Manager/images/arrw_d.gif" /> 
                        </telerik:RadGrid> 
                    </td> 
                </tr> 
            </table> 
            <asp:Label ID="lblDelError" runat="server" ForeColor="Red" Text="The Administrator/Case Administrator role can not be deleted" 
                Visible="False"></asp:Label> 
            <telerik:RadAjaxManager ID="RadAjaxManager145" runat="server">  
                <AjaxSettings> 
                    <telerik:AjaxSetting AjaxControlID="rgRoles">  
                        <UpdatedControls> 
                            <telerik:AjaxUpdatedControl ControlID="lblError" /> 
                            <telerik:AjaxUpdatedControl ControlID="rgRoles" /> 
                        </UpdatedControls> 
                    </telerik:AjaxSetting> 
                    <telerik:AjaxSetting AjaxControlID="RadAjaxManager145">  
                        <UpdatedControls> 
                            <telerik:AjaxUpdatedControl ControlID="lblError" /> 
                            <telerik:AjaxUpdatedControl ControlID="rgRoles" /> 
                            <telerik:AjaxUpdatedControl ControlID="lblDelError" /> 
                        </UpdatedControls> 
                    </telerik:AjaxSetting> 
                </AjaxSettings> 
            </telerik:RadAjaxManager> 
        </td> 
    </tr> 
</table> 

Sebastian
Telerik team
 answered on 05 Feb 2009
1 answer
97 views
Hallo, (my english ist bad, please guess)
my company owns 8 licenses from Telerik. I am a softengineer junior and are completly new to telerik. I use Visual Studio 2008 with the Service Patch 1. It works fine, but telerik doesn´t.

We are currently creating a portal for teachers. We use telerik for some controls. But often, after i create a new telerik control and what to see my changes in action, the form ist empty. Sometimes it works, but often dont.

I asked my teammates, what i am doing wrong. But they said, its normal, that Telerik is not working fine somtimes. I mean, i drop 3 controls in a website and compile and everthing and nothing happens. When i close my Visual Studio and reopen it, the website is complety empty.

I mean, Telerik is not for free. But it doesn´t work. I saw the same issues on the pc of co-workers, they often do 1! change and save and restart Visual Studio.

I installed Telerik Trail at home but i got the same issues.

I just want you to know, that Telerik is not working fine.

Greets from Spain.
Paul
Telerik team
 answered on 05 Feb 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?