Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
291 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.5K+ 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
101 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
196 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
128 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
136 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
235 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
64 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
161 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
6 answers
284 views

We have an ASP.Net application that is contains a tab control with several tabs. At one time, when you would do Print from the browser, it would print all the tabs at once. That no longer works now. Neither of the code snippets help...

@media print 
{
    .k-tabstrip .k-content
    {
        display: block;
    }
}

...or...

<style type="text/css" media="print">
        .rmpHiddenView {
            display: block !important;
        }

        #NavigationTab, #btnNew, #btnSave, #QRDiv, .hidePrint, #cboChecklists, #cboJobsWithChecklists {
            display: none;
        }        
    </style>

Here is the code we're using to get the tabs set up...

<telerik:RadTabStrip ID="NavigationTab" runat="server" SelectedIndex="0" MultiPageID="NavigationTabPages">
                    <Tabs>
                        <telerik:RadTab runat="server" Text="Shop" Owner="NavigationTab" PageViewID="ShopPageView"></telerik:RadTab>
                        <telerik:RadTab runat="server" Text="Testing" Owner="NavigationTab" PageViewID="TestingPageView"></telerik:RadTab>
                        <telerik:RadTab runat="server" Text="Testing Coordinator" Owner="NavigationTab" PageViewID="TestingCoordinatorPageView"></telerik:RadTab>
                        <telerik:RadTab runat="server" Text="Punch List" Owner="NavigationTab"></telerik:RadTab>
                        <telerik:RadTab runat="server" Text="Shipping" Owner="NavigationTab" PageViewID="ShippingPageView"></telerik:RadTab>
                        <telerik:RadTab runat="server" Text="Notes" Owner="NavigationTab" PageViewID="NotesPageView"></telerik:RadTab>
                        <telerik:RadTab runat="server" Text="QR Code" Owner="NavigationTab" PageViewID="QRPageView" Visible="False"></telerik:RadTab>
                    </Tabs>
                </telerik:RadTabStrip>
                <telerik:RadMultiPage ID="NavigationTabPages" runat="server" SelectedIndex="0">
                    <telerik:RadPageView ID="ShopPageView" runat="server" >

Any thoughts about what might be causing this?

 

 

Joseph
Top achievements
Rank 1
 answered on 22 Aug 2017
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?