Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
133 views

Hi,

I am facing a problem that whenever I go out of my page after opening modal pop- up on some other page, I get  a js error.
"_events is null or not an object". This is the code of my master page.

 
    <asp:HiddenField runat="server" ID="hdnSelecteCol" /> 
    <telerik:RadScriptManager ID="radScriptManagerMain" runat="server" AsyncPostBackTimeout="360000" 
        EnableScriptCombine="true">  
        <Scripts> 
            <asp:ScriptReference Path="~/JavaScripts/jquery-1.3.2.min.js" /> 
            <asp:ScriptReference Path="~/JavaScripts/SlidingDiv.js" /> 
            <asp:ScriptReference Path="~/JavaScripts/jquery.autocomplete.js" /> 
        </Scripts> 
    </telerik:RadScriptManager> 
    <telerik:RadWindowManager ID="RadWindowManagerresult" runat="server" BorderStyle="None" 
        BorderWidth="0" Width="800px" Height="540px" Skin="WebBlue" Animation="None" 
        IconUrl="/Images/windowIcon.gif" Behavior="Close,Move,Pin" VisibleStatusbar="false" 
        VisibleTitlebar="true" DestroyOnClose="True">  
    </telerik:RadWindowManager> 
    <asp:Button ID="btnOpenProgressBar" runat="server" Style="display: none" /> 
    <asp:Panel ID="pnlProgressBar" runat="server" Style="display: none; width: 300px;  
        height: 40px; background-color: White; border: 1px solid #6C7685"> 
        <asp:UpdatePanel ID="upUpdateProgress" UpdateMode="Conditional" runat="server">  
            <ContentTemplate> 
                <asp:UpdateProgress ID="UpdateProgress1" DisplayAfter="0" runat="server">  
                    <ProgressTemplate> 
                        <div style="text-align: center; vertical-align: middle; padding-top: 10px;">  
                            <span style="vertical-align: middle">  
                                <img alt="" src="<%#ResolveUrl("~/")%>/Images/indicator.gif" /></span<span style="color: #455F77;  
                                    padding-bottom: 15px; vertical-align: middle;">Loading...</span></div>  
                    </ProgressTemplate> 
                </asp:UpdateProgress> 
            </ContentTemplate> 
        </asp:UpdatePanel> 
    </asp:Panel> 
    <ajaxToolkit:ModalPopupExtender OkControlID="btnOpenProgressBar" BehaviorID="mdlProgressBar" ID="mdlProgressBar" runat="server" 
        TargetControlID="btnOpenProgressBar" PopupControlID="pnlProgressBar" CancelControlID="btnOpenProgressBar" 
        BackgroundCssClass="modalBackground">  
    </ajaxToolkit:ModalPopupExtender> 
    <div id="wrapper">  
        <!-- HEADER --> 
        <div id="wrapper-head">  
            <div id="header">  
                <table width="100%" border="0" cellspacing="0" cellpadding="0">  
                    <tr> 
                        <td width="auto">  
                            <img src="<%#ResolveUrl("~/")%>/images/header-left.gif" alt="" width="735" height="94" /> 
                        </td> 
                        <td width="100%" style="background: url(<%#ResolveUrl("~/")%>/images/header-middle.gif) left top repeat-x;"> 
                            <div id="toptabs">  
                                <span style="padding-right: 5px" class="fleft">  
                                    <asp:LinkButton ID="btnHome" runat="server" CssClass="tabTop" Text="Home" Visible="false" 
                                        CausesValidation="false"></asp:LinkButton> 
                                    <asp:LinkButton ID="btnECAHome" runat="server" CssClass="tabTop" Text="ECA Home" 
                                        Visible="false" CausesValidation="false"></asp:LinkButton></span>  
                                <asp:LinkButton ID="btnReports" runat="server" CssClass="tabTop" Text="ECA Reports" 
                                    CausesValidation="false" OnClick="btnReports_Click" Style="padding-right: 5px" 
                                    class="fleft"></asp:LinkButton> 
                                <asp:LinkButton ID="btnAdmin" runat="server" Style="padding-right: 5px" class="fleft" 
                                    CssClass="tabTop" Text="ECA Admin" Visible="false" CausesValidation="false" OnClick="btnAdmin_Click"></asp:LinkButton> 
                                <asp:LinkButton ID="btnSearch" Style="padding-right: 5px" class="fleft" runat="server" 
                                    CssClass="tabTop" Text="ECA Search" Visible="false" CausesValidation="false" 
                                    OnClick="btnSearch_Click"></asp:LinkButton> 
                                <asp:LinkButton ID="btnChangePassword" runat="server" CssClass="tabTop" Style="padding-right: 5px" 
                                    class="fleft" Text="Reset Pwd" Visible="false" CausesValidation="false"></asp:LinkButton> 
                                <span style="padding-right: 5px" class="fleft">  
                                    <asp:LinkButton ID="btnLogin" runat="server" CssClass="tabTop" Text="Login" Visible="true" 
                                        CausesValidation="false"></asp:LinkButton> 
                                    <asp:LinkButton ID="btnLogout" runat="server" CssClass="tabTop" Text="Logout" Visible="false" 
                                        CausesValidation="false"></asp:LinkButton> 
                                </span> 
                            </div> 
                        </td> 
                        <td width="auto">  
                            <img src="<%#ResolveUrl("~/")%>/images/header-right.gif" alt="" width="198" height="94" /> 
                        </td> 
                    </tr> 
                </table> 
                <div id="Logo">  
                    <asp:LinkButton ID="lbtnLogo" runat="server" Width="220px" Height="86px" CausesValidation="false" 
                        OnClientClick="javascript:OpenPlanetds();"></asp:LinkButton> 
                </div> 
                <div id="titleText">  
                    <img src="<%#ResolveUrl("~/")%>/images/assesmenttext.png" alt="EARLY COST ASSESSMENT" title="EARLY COST ASSESSMENT" /> 
                </div> 
                <div id="date">  
                    <b> 
                        <asp:Label ID="lblUser" runat="server" /></b>&nbsp;&nbsp;<%=string.Format("{0:dddd, MMMM dd, yyyy}", DateTime.Now) %> 
                </div> 
            </div> 
            <asp:ContentPlaceHolder ID="cphMenu" runat="server">  
            </asp:ContentPlaceHolder> 
        </div> 
        <!-- END HEADER --> 
        <!-- BODY --> 
        <div id="wrapper-body">  
            <div id="body" style="padding-bottom: 25px">  
                <asp:ContentPlaceHolder ID="cphBody" runat="server">  
                </asp:ContentPlaceHolder> 
            </div> 
            <div id="footer" class="divfooter" runat="server">  
                <uc1:ucFooter ID="ucFooter1" runat="server" /> 
                <asp:UpdatePanel runat="server" ID="upnPerformance" UpdateMode="Always">  
                    <ContentTemplate> 
                        <asp:Label ID="lblPerformanceCounter" runat="server" Text=""></asp:Label></ContentTemplate>  
                </asp:UpdatePanel> 
            </div> 
        </div> 
        <!-- END BODY --> 
    </div> 

Please review the code And let me know what could be the problem.
Thanks in advance.

Regards
Yuvika

Georgi Tunev
Telerik team
 answered on 21 Jan 2010
2 answers
155 views
hi...
i am having a problem in bread crum that is being displayed in address bar. it is not displaying the full path of any directory, its just displaying the name of the directory and a slash..can you please tell me why ResolveDirectoryAsTree is not recieving the complete address of the directory.
I have attached a screen shot kindly check it.
n give a solution as soon as possible.
Fiko
Telerik team
 answered on 21 Jan 2010
4 answers
405 views
Dear all,

a quick question: I am creating a custom column editor associated to a RadGrid. I can modify items of the grid, delete them or adding new.
I have to avoid changing the code field while modifying the item. Is it possible to  discriminate whether the ColumnEditor has been created pressing the update button or pressing the create new record button? So I can pass a parameter to my CustomEditor.

Thanks in advance.

Kind regards,

Dario Zanelli
Dario Zanelli
Top achievements
Rank 1
 answered on 21 Jan 2010
4 answers
59 views
Hi,

I am using the date time to filter my records. IE7 hangs, when I click in Edit Text Box Field of dates and used the UP/DOWN arrows to scroll up and down the dates.  I had to kill the BROWSER and force a logoff to get around this.
This works if UP/DOWN arrow keys are just pressed a couple of times in slow motion. If I press few keys togher then the explorer hangs.
Is there any workaround for it. Please reply as it is urgent.

Thanks,
Yuvika
Yuvika
Top achievements
Rank 1
 answered on 21 Jan 2010
2 answers
122 views
I recently inherited an application from a contractor for my company and there seems to be an issue with desired output that is returned.  In this part of the application the user searches for a group of addresses that they want to print labels for.  When the search results are returned the user can either print all labels or select which labels they want to print if they don't want/need to print all the labels. 

The issue I'm running into is this, the current page size for the data returned in 300 rows per page.  In the one instance that was reported there are a total of 500 records returned and when the user selects to go to the second page (no records selected on the first page) and they scroll down to the bottom of the second page and select the last 4 records to print when the mail merge takes place and the items are displayed to the user it shows 4 numerically sequential items from the first page (i.e. if the last for records are index id's 200 - 204 on the second page it returns the indexes from page 1 with those id's).  So rather than grab what was selected it returns the records from the first page with the same index id.  Is there anyway around this or to have the index not reset and start at the index of 0 each time a new page is selected?

See below for the code I'm looking into:

(aspx)

    <telerik:RadAjaxPanel LoadingPanelID="RadAjaxLoadingPanel1" runat="server" ID="upprint"
        <center> 
            <asp:HyperLink runat="server" Visible="false" ID="lnkopen" Text="Printing Complete, Click Here to open the document"></asp:HyperLink> 
        </center> 
 
        <!--Hidden Panel used for Exporting to Excel, all address information is stored in its own column with the export.--> 
        <telerik:RadGrid PageSize="300" AllowPaging="True"  
            EnableViewState="true"  
            AllowMultiRowSelection="true"  
            ID="rgLabels"  
            OnNeedDataSource="rgLabelsNDS"  
            runat="server"  
            AllowSorting="True"  
            AutoGenerateColumns="False"  
            GridLines="None"
            <MasterTableView CommandItemDisplay="Top" DataKeyNames="EventHeaderNumber"
                <CommandItemTemplate> 
                    <div class="header"
                        <asp:Button CssClass="Button" runat="server" onclick="PrintLabels" Text="Print Selected Labels" /> <asp:Button ID="Button1" CssClass="Button" runat="server" onclick="PrintAllLabels" Text="Print All Labels" /> 
                    </div> 
                </CommandItemTemplate> 
                <Columns> 
                    <telerik:GridClientSelectColumn></telerik:GridClientSelectColumn> 
                    <telerik:GridHyperLinkColumn Visible="false"  DataTextField="CounterId" HeaderText="Counter" UniqueName="column"></telerik:GridHyperLinkColumn> 
                    <telerik:GridBoundColumn DataField="CheckNumber" Visible="false" HeaderText="Check #" UniqueName="column1"></telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="ContactMailToFirstName" HeaderText="First" UniqueName="column11"></telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="ContactMailToLastName" HeaderText="Last" UniqueName="column12"></telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="EntityMailToEntityName" HeaderText="Company" UniqueName="column112"></telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="EntityMailToAddressStreet1" HeaderText="Add 1" UniqueName="column13"></telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="EntityMailToAddressStreet2" HeaderText="Add 2" UniqueName="column14"></telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="EntityMailToCity" HeaderText="City" UniqueName="column15"></telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="EntityMailToState" HeaderText="State" UniqueName="column16"></telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="EntityMailToPostalCode" HeaderText="Zip" UniqueName="column17"></telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="EntityMailToCountry" HeaderText="Cntry" UniqueName="column18"></telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="EntityId" Visible="true" HeaderText="ID" UniqueName="column19"></telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="EventHeaderNumber" Visible="true" HeaderText="Evt. #" UniqueName="column1944"></telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="HoldReason" Visible="false" HeaderText="Serial #" UniqueName="column20"></telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="EventProfileName" Visible="false" HeaderText="Exp. Date" UniqueName="column21"></telerik:GridBoundColumn> 
                </Columns> 
            </MasterTableView> 
            <ClientSettings> 
                <Selecting AllowRowSelect="True" /> 
            </ClientSettings> 
            <ExportSettings ExportOnlyData="true" IgnorePaging="true" Csv-FileExtension="csv" Csv-ColumnDelimiter="Tab" OpenInNewWindow="true"></ExportSettings> 
        </telerik:RadGrid> 
        <asp:HiddenField runat="server" ID="hdnsrch" /> 
    </telerik:RadAjaxPanel> 

(cs)
    public void PrintLabels(object sender, EventArgs e) 
    { 
            rbt_vw_EventHeaderProfileRow[] rows = new rbt_vw_EventHeaderProfileRow[rgLabels.SelectedItems.Count]; 
            int i = 0; 
            foreach (GridDataItem item in rgLabels.SelectedItems) 
            { 
                rows[i] = ((rbt_vw_EventHeaderProfileRow[])Session["LabelRows"])[item.ItemIndex]; 
                i++; 
            } 
 
            PrintLabel lbl = new PrintLabel(); 
            lnkopen.NavigateUrl = lbl.PrintLabels(rows, rdLabelType.SelectedItem.Text.ToLower(), "30"); 
            lnkopen.Visible = true
    } 

Any help would be appreciated.
Darren Brink
Top achievements
Rank 1
 answered on 21 Jan 2010
1 answer
175 views
Hi folks

I'm using the RadAjaxManager.Redirect()-Method to redirect to another site. When doing this I get an ThreadAbortedException.

The .NET-Method Response.Redirect() knows the endResponse-Parameter to avoid calling the End-Method which causes the error. Is there any possibility to get that behavior with the RadAjaxManager.Redirect?

 Or should I just use Response.Redirect instead?
Pavlina
Telerik team
 answered on 21 Jan 2010
1 answer
132 views
Hi all,
I posted this question few days ago but I had no answer.
Is it possible to know (and how can I) whether I am creating a new item or I am modifying it?

Thanks,

Dario
Dario Zanelli
Top achievements
Rank 1
 answered on 21 Jan 2010
1 answer
107 views
Hi, is this a new designed behaviour?
We started getting all tooltips just show value of ALT text of an image which is a TargetControl instead of an actual content that is inside of the Tooltip.
Is there a way to disable this other than removing alt tags from target controls?

I do not have tooltip manager, i just have Tooltip controls on the page.
Svetlina Anati
Telerik team
 answered on 21 Jan 2010
1 answer
124 views

Hello,

I have downloaded trial version for asp.net ajax.

I am planning to buy telrik controls. However, The telerik combobox editor should look like dropdownlist control in asp.net. What should I do? It would be a great help, if you provide me a sample code.

Regards,
Kiran
Shinu
Top achievements
Rank 2
 answered on 21 Jan 2010
5 answers
263 views
Hi,

I am trying to make the RadEditor working on my server.
I have some troubles involving the version of ASP.net Ajax :

If I only have the System.Web.Extensions version 3.5.0.0. , when I deploy RadEditor to the webapp, then a lot of stuff are not working anymore : all the Sharepoint web parts show a "Web Part Error". And a lot of sites shows :
"Server Error in '/' Application.
--------------------------------------------------------------------------------

Parser Error "

There are two ways to make it work :

  • Add the System.Web.Extensions version 1.0.61025.0  in the GAC OR
  • Add this to the web.config : " 

     <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35" culture="neutral" />

            <bindingRedirect oldVersion="1.0.61025.0" newVersion="3.5.0.0" />

          </dependentAssembly>"

Is there any way to make it work with only the 3.5.0.0. version of Ajax and without adding bindingRedirect in the web.config ?

For information, I did follow your  recommandation for Ajax 3.5.0.0 (http://www.telerik.com/help/aspnet-ajax/moss-install-aspnet-ajax-35.html)

[EDIT]
I checked a bit on the forum and this thread seems to show the same pb.
The problem seems to be that the telerik dll use the 1.0.61025.0 version.
Is it possible for you, Telerik guys to compile a version using the new version of Ajax (3.5.0.0) ?
[/EDIT]

[EDIT2]
It seems that there are troubles when Ajax 1.0.61025.0 and 3.5.0.0 are silmutaneously installed in the GAC
[/EDIT2]

Thx a lot,
Best regards,
Sylvain

Lini
Telerik team
 answered on 21 Jan 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
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
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?