Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
120 views
Greetings, using the sample found here
http://www.telerik.com/community/forums/aspnet-ajax/editor/custom-dialogs-not-working.aspx
We have been able to add custom links to our HTML content. 

The problem is, if our link has any other formatting (bold or italics is clicked) , the sample script will not pickup the link applied and will not return  the already set href.  It has something to do with the nested tags.  For example, this works fine, we can read the href:
<A href="site.aspx">A Staffing Request Form</A>

But this does not, the editor inserts some nested formatting tags and we can cannot get the parent tag href any longer:
<A href="site.aspx"><FONT color=#0000ff><STRONG>A Staffing Request Form</STRONG></FONT></A>

We cannot ask our users to change the HTML, please advise on how to read the href here and change it, based on the sample we have downloaded (or something we have missed).

Thank you.
Peter Bulloch
Top achievements
Rank 1
 answered on 02 Sep 2013
1 answer
66 views
Hey there,

nothing big, but a small discrepancy I found reading your documentation at:
http://demos.telerik.com/aspnet-ajax/dock/examples/builtindockstatepersistence/defaultcs.aspx?#qsf-demo-source

The Text is as follows:
... This is achieved by setting the EnableStoreLayout property of RadDockLayout to true and selecting a storage type via the property LayoutStorageType. ...

Problem is as far as I can tell there are no attributes (v.2013.2.717.45)
EnableStoreLayout  => EnableLayoutPersistence
or
LayoutStorageType => LayoutPersistenceRepositoryType

The Sample code is correct in that matter.

I guess the description should reflect the changes.

Regards,
Kristoffer Witt
Slav
Telerik team
 answered on 02 Sep 2013
5 answers
1.5K+ views
We have a user control that contains the window definition for two modal popups.  The first modal popup is accessed from a link button on the user control.  The second popup is accessed from a linkbutton on the first modal popup.  The second modal popup then has all the tabindices set to -1 (disabled).  The work around is to have a function called when the second popup is shown that sets the tabstops back to what they should be for the second popup.

I noticed that there is code in the telerik window manager that sets the tab indices to -1 for all windows that are not the currently displayed popup.  It apparently does not set them back properly for the second popup in this scenario.

Has this been fixed since the October 2012 release?
Marin Bratanov
Telerik team
 answered on 02 Sep 2013
1 answer
94 views
I have this very weird issue.

Setup: I have jquery 1.10 reference in the master page of my form.  I'm writing a SharePoint 2010 visual web part that contains a RadAsyncUpload (2013 q2).  I also have Script References in my page to:
 <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />

Problem:  For whatever reason after the page is posted back, I get the error "addback is not a function" whenever I try to upload a file.  This issue happens in Firefox but not in IE (it works completely fine in IE).  Prior to the user posting the page, the upload works fine in FireFox, it's JUST after a postback has already occurred.

Again, this problem only exists in FireFox and not IE (I can't test it out in any other browsers because my current environment is locked down to just those tow browsers)

I know that the "addback" is an added function present in jquery 1.8 and later but I'm not sure how exactly how the 1.10 is used on the initial load of the page, but lost afterwards.  I believe that SharePoint defaults to jquery 1.7 something.

Any help would be greatly appreciated.  I hvae a VERY tight deadline so a prompt response would be so helpful!!
Hristo Valyavicharski
Telerik team
 answered on 02 Sep 2013
1 answer
79 views
Hi,

We are using Telerik Rad AJAX  (2010 Q3) version 1.8.8   (RadJax.Net2 library).

If one webserver goes down, the ajax call may be sent before the load balancer realises a webserver has failed.  This results in the load balancer sometimes sending the ajax request to a now non-existent webserver.   

Obviously this results in a 404.

I have a handler for RadAjaxmanager OnRequestError event, which simply puts a JS Alwert on screen, and returns FALSE and this works.

Is there........

1. Any way we can handle this more gracefully - as any subsequent AJAX call seems to be ignored after the 404....
2. Automatically retry the AJAX call?

What is Teleriks (or any body elses) recommendation?

Thanks 
Konstantin Dikov
Telerik team
 answered on 02 Sep 2013
1 answer
67 views
I would like to do something like the following in a JavaScript method, but the "ExportSettings" object does not appear to exist in the client-side object model.  Is there a way that I can assign these properties via JavaScript?

gridEd.ExportSettings.ExportOnlyData = true;
gridEd.ExportSettings.IgnorePaging = true;
gridEd.ExportSettings.FileName = "WorkOrderListExport";
gridEd.ExportSettings.OpenInNewWindow = true;
Princy
Top achievements
Rank 2
 answered on 02 Sep 2013
3 answers
115 views
Hey There

I have a bit of a strange  problem, when i use an edit form popup with a radgrid and click the 'X' close button (top right) the popup nudges down but 5 or 6px, its like one of those annoying sites where you cannot close the popup?

This issue only happens in Chrome, i have tested it in both IE and FF and dont have any problem at all.

If anyone has come across this problem before, please could they advise?

Thanks
T
Angel Petrov
Telerik team
 answered on 02 Sep 2013
3 answers
245 views

I'm using Batch edit mode.  My insert command is very simple:
InsertCommand="INSERT INTO &quot;WFM_CAT_RECURRENCE_DT&quot; VALUES (:DIVISION, :DISTRICT, :LOCATION, :FROM_YEAR, :FROM_WEEK, :TO_YEAR, :TO_WEEK, :USERID, :USERNAME, SYSDATE)" but  it gives me an error:ORA-01036: illegal variable name/number.  Can anyone help?
My aspx is as follow:
<%@ Page Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="Copy_To_Maintenance.aspx.vb"
    Inherits="Copy_To_Maintenance" %>


<asp:Content ID="Content2" ContentPlaceHolderID="MainContentPlaceHolder" Runat="Server">

    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        <Scripts>
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
        </Scripts>
    </telerik:RadScriptManager>
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" />
   
<telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="True"
            CellSpacing="0" DataSourceID="OracleDatabase1" GridLines="None"
            AllowAutomaticDeletes="True" AllowAutomaticInserts="True"
            AllowAutomaticUpdates="True" AutoGenerateColumns="False"
            AllowFilteringByColumn="True" Width="1250px">
            <mastertableview
                datakeynames="USERID,USERNAME,CREATE_DATE"
                datasourceid="OracleDatabase1" commanditemdisplay="TopAndBottom"
                EditMode="Batch" BatchEditingSettings-EditType="Cell"
                autogeneratecolumns="False" >
                <RowIndicatorColumn Visible="False">
                </RowIndicatorColumn>
                <ExpandCollapseColumn Created="True">
                </ExpandCollapseColumn>
                <Columns>
                    <telerik:GridBoundColumn DataField="DIVISION"
                        FilterControlAltText="Filter DIVISION column" HeaderText="DIVISION"
                        ReadOnly="False" SortExpression="DIVISION" UniqueName="DIVISION" AllowFiltering="True">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="DISTRICT"
                        FilterControlAltText="Filter DISTRICT column" HeaderText="DISTRICT"
                        SortExpression="DISTRICT" UniqueName="DISTRICT" ReadOnly="False">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="LOCATION"
                        FilterControlAltText="Filter LOCATION column" HeaderText="LOCATION"
                        SortExpression="LOCATION" UniqueName="LOCATION" ReadOnly="False">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="FROM_YEAR" DataType="System.Decimal"
                        FilterControlAltText="Filter FROM_YEAR column" HeaderText="FROM_YEAR"
                        SortExpression="FROM_YEAR" UniqueName="FROM_YEAR">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="FROM_WEEK" DataType="System.Decimal"
                        FilterControlAltText="Filter FROM_WEEK column" HeaderText="FROM_WEEK"
                        SortExpression="FROM_WEEK" UniqueName="FROM_WEEK">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="TO_YEAR" DataType="System.Decimal"
                        FilterControlAltText="Filter TO_YEAR column" HeaderText="TO_YEAR"
                        SortExpression="TO_YEAR" UniqueName="TO_YEAR">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="TO_WEEK" DataType="System.Decimal"
                        FilterControlAltText="Filter TO_WEEK column" HeaderText="TO_WEEK"
                        SortExpression="TO_WEEK" UniqueName="TO_WEEK">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="USERID"
                        FilterControlAltText="Filter USERID column" HeaderText="USERID"
                        SortExpression="USERID" UniqueName="USERID" ReadOnly="True">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="USERNAME"
                        FilterControlAltText="Filter USERNAME column" HeaderText="USERNAME"
                        SortExpression="USERNAME" UniqueName="USERNAME" ReadOnly="True">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="CREATE_DATE" DataType="System.DateTime"
                        FilterControlAltText="Filter CREATE_DATE column" HeaderText="CREATE_DATE"
                        SortExpression="CREATE_DATE" UniqueName="CREATE_DATE" ReadOnly="True">
                    </telerik:GridBoundColumn>
                    <telerik:GridButtonColumn Text="Delete" CommandName="Delete" ButtonType="ImageButton" />
                </Columns>
            </mastertableview>
           
        </telerik:RadGrid>
        <telerik:RadWindowManager ID="RadWindowManager1" runat="server">
        </telerik:RadWindowManager>
   
    <asp:SqlDataSource ID="OracleDatabase1" runat="server"
            ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
            DeleteCommand="DELETE FROM &quot;WFM_CAT_RECURRENCE_DT&quot; WHERE &quot;DIVISION&quot; = :DIVISION AND &quot;DISTRICT&quot; = :DISTRICT AND &quot;LOCATION&quot; = :LOCATION AND &quot;FROM_YEAR&quot; = :FROM_YEAR AND &quot;FROM_WEEK&quot; = :FROM_WEEK AND &quot;TO_YEAR&quot; = :TO_YEAR AND &quot;TO_WEEK&quot; = :TO_WEEK AND &quot;USERID&quot; = :USERID AND &quot;USERNAME&quot; = :USERNAME AND &quot;CREATE_DATE&quot; = :CREATE_DATE"
            InsertCommand="INSERT INTO &quot;WFM_CAT_RECURRENCE_DT&quot; VALUES (:DIVISION, :DISTRICT, :LOCATION, :FROM_YEAR, :FROM_WEEK, :TO_YEAR, :TO_WEEK, :USERID, :USERNAME, SYSDATE)"
            ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>"
            SelectCommand="SELECT &quot;DIVISION&quot;, &quot;DISTRICT&quot;, &quot;LOCATION&quot;, &quot;FROM_YEAR&quot;, &quot;FROM_WEEK&quot;, &quot;TO_YEAR&quot;, &quot;TO_WEEK&quot;, &quot;USERID&quot;, &quot;USERNAME&quot;, &quot;CREATE_DATE&quot; FROM &quot;WFM_CAT_RECURRENCE_DT&quot;"
           
            UpdateCommand="UPDATE &quot;WFM_CAT_RECURRENCE_DT&quot; SET &quot;LOCATION&quot; = :LOCATION, &quot;FROM_YEAR&quot; = :FROM_YEAR, &quot;FROM_WEEK&quot; = :FROM_WEEK, &quot;TO_YEAR&quot; = :TO_YEAR, &quot;TO_WEEK&quot; = :TO_WEEK, &quot;USERID&quot; = 'ID', &quot;USERNAME&quot; = 'NAME', &quot;CREATE_DATE&quot; = SYSDATE WHERE &quot;DIVISION&quot; = :DIVISION AND &quot;DISTRICT&quot; = :DISTRICT AND &quot;LOCATION&quot; = :LOCATION AND &quot;USERID&quot; = :USERID AND &quot;USERNAME&quot; = :USERNAME AND &quot;CREATE_DATE&quot; = :CREATE_DATE">

            <DeleteParameters>
                <asp:Parameter Name="DIVISION" Type="String" />
                <asp:Parameter Name="DISTRICT" Type="String" />
                <asp:Parameter Name="LOCATION" Type="String" />
                <asp:Parameter Name="FROM_YEAR" Type="Decimal" />
                <asp:Parameter Name="FROM_WEEK" Type="Decimal" />
                <asp:Parameter Name="TO_YEAR" Type="Decimal" />
                <asp:Parameter Name="TO_WEEK" Type="Decimal" />
                <asp:Parameter Name="USERID" Type="String" />
                <asp:Parameter Name="USERNAME" Type="String" />
                <asp:Parameter Name="CREATE_DATE" Type="DateTime" />
            </DeleteParameters>
            <UpdateParameters>
                <asp:Parameter Name="DIVISION" Type="String" />
                <asp:Parameter Name="DISTRICT" Type="String" />
                <asp:Parameter Name="LOCATION" Type="String" />
                <asp:Parameter Name="FROM_YEAR" Type="Decimal" />
                <asp:Parameter Name="FROM_WEEK" Type="Decimal" />
                <asp:Parameter Name="TO_YEAR" Type="Decimal" />
                <asp:Parameter Name="TO_WEEK" Type="Decimal" />
                <asp:Parameter Name="USERID" Type="String" />
                <asp:Parameter Name="USERNAME" Type="String" />
                <asp:Parameter Name="CREATE_DATE" Type="DateTime" />
            </UpdateParameters>
            <InsertParameters>
                <asp:Parameter Name="DIVISION" Type="String" />
                <asp:Parameter Name="DISTRICT" Type="String" />
                <asp:Parameter Name="LOCATION" Type="String" />
                <asp:Parameter Name="FROM_YEAR" Type="Decimal" />
                <asp:Parameter Name="FROM_WEEK" Type="Decimal" />
                <asp:Parameter Name="TO_YEAR" Type="Decimal" />
                <asp:Parameter Name="TO_WEEK" Type="Decimal" />
                <asp:Parameter Name="USERID" Type="String" />
                <asp:Parameter Name="USERNAME" Type="String" />
                <asp:Parameter Name="CREATE_DATE" Type="DateTime" />
            </InsertParameters>
        </asp:SqlDataSource>
</asp:Content>

 

 

 

 

 

 

 

Angel Petrov
Telerik team
 answered on 02 Sep 2013
1 answer
115 views
   
   Hi,

            How do I show context menu on clicking gridbuttoncolumn. Can anybody help??

  thanks.
  Savyo
Princy
Top achievements
Rank 2
 answered on 02 Sep 2013
5 answers
321 views
Hello All

I have a RadTreeList in my page and I have requirement to expand all the levels of the list.

I have searched a lot and found method of tree list ExpandAll() and collepseAll() but not working on my case.

So is there any way to do this or is there any way to do it manually?

thanks

Hardik
Shinu
Top achievements
Rank 2
 answered on 02 Sep 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?