Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
309 views

I have (tried) to configure our app as per http://docs.telerik.com/devtools/aspnet-ajax/controls/captcha/troubleshooting/using-webfarm-or-webgarden-environment, but am missing some important detail as I cannot get the Captcha default validation to work. The user inputs the Captcha.Text in a textbox (ValidatedTextBoxID="rcTextBox1"). I can trace a test scenario where the Page_load is executed on one application processor and the Post_back is executed on a second application processor. The Captcha.Text in the post_back is from a different(local, initialized) CaptchaImage (a new CaptchaImage.Text and noCaptchaImage.PreviousText).  I can pass the original Captcha.Text in Session (sql server) and over-ride the default verification using the user input so I have a work-around. But my expectation is the default Captcha should work "out-of-the-box". I somehow expected I should be able to pass the original CaptchaImage created in the Page_Load to be used in the Post_back. I can save the original image ( Session["CaptchaImage"] = Captcha.CaptchaImage) from the Page_Load but I can't get RadCaptcha to use it directly. I can't set the Captcha.CaptchaImage or Captcha.CaptchaImage.Text from Session as these are only Getters.

Questions:

1)  If I set mageStorageLocation="Session" why doesn't the control do the equivalent of a Session["CaptchaImage"] = Captcha.CaptchaImage / Captcha.CaptchaImage = Session["CaptchaImage"] for me.

2) If I must save the CaptchaImage in Session, what do I do with it on th ePost_back?

3) Why does ValidatedTextBoxID="rcTextBox1") cause the rcTextBox1.Text to be ""? I had to copy it to a HiddenField with JavaScript to retrieve the use input.

 

Marin Bratanov
Telerik team
 answered on 23 Aug 2017
1 answer
300 views

How can I force the post back of the RadSearchBox (onSearch event) when someone chooses one of the items from the ContextList? I want to be able to change a secondary list when an item from the ContextSearch is changed (just like they entered something in the search window and clicked search).  I tried to fire the postback of the SearchBox but it doesn't seem to be returning it to the server to process the items selected.  It seems to fire the panel update, but not the server side OnSearch event.

 

                        <telerik:RadSearchBox ID="RadSearchBox1" runat="server" RenderMode="Lightweight"
                                              DataTextField="DiagForList" MaxResultCount="15"
                                              EmptyMessage="Search/Select Order to left"
                                              DataValueField="DiagnosisCodeID"
                                              DataKeyNames="MapField"
                                              style="margin-left: 10px; margin-top: 1px;"
                                              Width="440px" HighlightFirstMatch="True"
                                              SearchContext-Enabled="true"
                                              DataSourceID="SqlDataSourceDG"
                                              OnClientSearch="OnClientSearch"
                                              ToolTip="Select the order from the drop down and/or search for a diagnosis."
                                              OnDataSourceSelect="RadSearchBox1_DataSourceSelect"
                                              OnSearch="RadSearchBox1_Search" MinFilterLength="3">
                        <SearchContext DataSourceID="SqlUpdateABNFlag" DataTextField="MapField" DataKeyField="MapField" DropDownCssClass="contextDropDown"  />
                        <DropDownSettings Width="500px" />
                        <Localization DefaultItemText="All Orders" LoadingItemsMessage="Loading...." />
                        </telerik:RadSearchBox>

 

 

Script:

 

    function pageLoad() {
        var $ = $telerik.$;
        $(".rsbSCSlide ").on("click", ".rsbListItem", function (e) {
            e.preventDefault();
            RaiseClickEvent('RadSearchBox1');
                });

    }
    function RaiseClickEvent(id) {
      __doPostBack(id,'arguments'');
    }

 

Peter Milchev
Telerik team
 answered on 23 Aug 2017
1 answer
2.6K+ views

Why am I getting this error in Visual Studio 2012 all of a sudden? No problem yesterday, today I get this:

Could not load file or assembly 'Telerik.Web.UI, Version=2015.3.1111.45, Culture=neutral,
PublicKeyToken=121fae78165ba3d4' or one of its dependencies. Invalid pointer (Exception from HRESULT: 0x80004003
(E_POINTER))' G:\TFS_TMS\Sprint0\NextGenerationSourceCode-Sprint0\TMS2016\TMS2016\LC TMS2016

 

????????

Rumen
Telerik team
 answered on 23 Aug 2017
0 answers
104 views
I am trying to export a page to PDF that contains RadHtmlCharts, but I am getting a RadAjaxManager error.
Here is the html:
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
</telerik:RadAjaxManager>
<telerik:RadHtmlChart ChartTitle-Text="Overall" runat="server" ID="rcOverall" Width="600px" Height="400px" Skin="Bootstrap" DataSourceID="sqlOverall" RegisterWithScriptManager="false">
            <PlotArea>
                <Series>
                    <telerik:BarSeries Name="BarSeries1" DataFieldY="points">
                        <LabelsAppearance Visible="false" />
                        <TooltipsAppearance Visible="false" />
                    </telerik:BarSeries>
                </Series>
                <XAxis DataLabelsField="Section" >
                    <TitleAppearance Text="Section">
                        <TextStyle FontSize="12" Bold="true" />
                    </TitleAppearance>
                </XAxis>
                <YAxis Visible="false" MinValue="0" MaxValue="27" Step="3">
                    <TitleAppearance Text="Total Mark">
                        <TextStyle FontSize="12" Bold="true" />
                    </TitleAppearance>
                </YAxis>
            </PlotArea>
            <Legend>
                <Appearance Visible="false" />
            </Legend>
        </telerik:RadHtmlChart>
The code to export is:
 Response.ContentType = "application/pdf"
   
        Response.AddHeader("content-disposition", "attachment;filename=Image.pdf")
        Response.Cache.SetCacheability(HttpCacheability.NoCache)
         Dim sw As New StringWriter()

        Dim hw As New HtmlTextWriter(sw)
        Me.Page.RenderControl(hw)

        Dim srdr As New StringReader(sw.ToString())

        Dim pdfDoc As New Document(PageSize.A4, 15.0F, 15.0F, 75.0F, 0.2F)

        Dim hparse As New HTMLWorker(pdfDoc)
        
        PdfWriter.GetInstance(pdfDoc, Response.OutputStream)
        pdfDoc.Open()

        hparse.Parse(srdr)

        pdfDoc.Close()

        Response.Write(pdfDoc)
        Response.[End]()
When I run it I get an error:
Script control 'RadAjaxManager1' is not a registered script control. Script controls must be registered using RegisterScriptControl() before calling RegisterScriptDescriptors().
Can anyone please help with this as I have looked everywhere and anything I have tried doesn't work!!!.
Any help would be very welcome. 
Thanks
K
K W
Top achievements
Rank 1
 asked on 23 Aug 2017
3 answers
207 views
Hi,

I am using rad editor in me current project,the scenario is that I every user in database has a table of members having varying Fields in table. i e. these field are dynamic in nature and thus varies based on used.these dynamic fields need to be places in html inside the rad editor so that I can change the value of these fields programatically in HTML.

in my current implementation I validates the HTML on server to check if user has written these fields in HTML (format is like %%MemberName%% or may be something else enclosed in %%%%) then I replaces these values programatically with valid values.

But now according to our client's requirement he want a right click context menu, or drop down list or button on rad editor toolbar to display  and choose these dynamic fields so that the user dont need to remember which fields are dynamic and he can just select those fields to insert in email template in rad editor.

How can I achieve this.Please help me ?? or provide some better alternative?
Rumen
Telerik team
 answered on 23 Aug 2017
1 answer
132 views

Hi,

i have my telerik app into an iframe.

I have the problem with tooltip. It isn't showing correctly, not hide/show correctly.

The image show the problem.

What should i do?

 

Thanks.

Marco
Top achievements
Rank 1
 answered on 23 Aug 2017
0 answers
146 views

Hello

 

<telerik:RadClientExportManager ID="RadClientExportManager1" runat="server">
  <PdfSettings PageBreakSelector=".PageBreak" />
</telerik:RadClientExportManager>

 

On adding of PdfSettings the class which helps to change the exported content does not get applied to the content. 

Please help.

Ashwin
Top achievements
Rank 1
 asked on 23 Aug 2017
4 answers
247 views
Hi,

At the moment it doesn't appear possible to drag an Outlook email (.msg file) from Outlook on to the drag and drop box for uploading. It's possible to do it by dragging the email to the desktop to create the .msg file and then drag it to the RadAsyncUpload box but I want to just be able to drag an email directly from Outlook to the upload box.

When will it be possible to achieve the above or what is needed to implement it?

Thanks

Tim
Vishal
Top achievements
Rank 1
 answered on 23 Aug 2017
0 answers
71 views

Hi,

I have a problem to handle z-index on ImageManager and ImageEditor popup windows. In our application, we override z-index in .RadWindow_Bootstrap class ( .RadWindow_Bootstrap { z-index: 100000 !important; } ) to make sure ImageManager popup window display on top of other controls. The issue happens if we try to open ImageEditor window, the two windows shares the same css class, so the ImageEditor window is underneath of ImageManager window.

Is there any way we can solve it?

 

Thanks in advance,

 

lan

lan luo
Top achievements
Rank 1
Iron
 asked on 22 Aug 2017
0 answers
172 views

Hello,

I am having problem to display video in RadMediaPlayer

Server Environment:
Windows Server 2008 R2
IIS 7.5
Video file format mp4

Client Environment:

Windows 10
IE Version 11.540.15063.0

Windows 7
IE Version 11.0.9600.18163


Problem:
There was not MIME type "video/mp4" in the IIS - I have added that one

After that the video displays in the Chrome, FF, and IE 11 on Windows 10, but does not in IE 11 on Windows 7
When I changed source from local file (/video/testvideo.mp4) to Telerik demo site example
http://demos.telerik.com/aspnet-ajax/media-player/examples/functionality/mediatypes/video/justCode.mp4
The video displays correct in the all browsers on Windows 10 and Windows 7.

Thank you

Andy
Top achievements
Rank 1
 asked on 22 Aug 2017
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?