Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
150 views
Dear,

I'm using the following code to display a PDF on a webpage: 

 <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server" />
                    <telerik:RadSplitter ID="Radsplitter1" runat="server" Orientation="Horizontal" Width="680">
                      <telerik:RadPane ID="Radpane1" runat="server" Height="850" Width="680" ContentUrl="PDFs/test.pdf">
                      </telerik:RadPane>
                    </telerik:RadSplitter>


My goal is to show the content of the PDF on the webpage.
This works great on windows devices and IOS, however when opening the webpage in Android - chrome (tried kitkat and jellybean) the pdf just downloads and does not show on the page.
(fyi on android using the standard 'internet browser' or firefox, the PDF's don't show up at all)

I found that the following code can be added to the header of the webpage:
Content-Type: application/pdf
Content-Disposition: inline; filename.pdf
I tried adding that to my masterpage, but that didn't help. I'm assuming that if i could add it to the RadPane that it would work.
Is there any way to do this, or is there another way to show the PDF files on android - chrome?







Vessy
Telerik team
 answered on 03 Jun 2014
1 answer
563 views
Compiler Error Message: BC30456: 'grdOrders_SelectedIndexChanged' is not a member of 'ASP.default_aspx'

on the following aspx code:

<telerik:RadGrid ID="grdOrders" runat="server" AllowSorting="True"
        Width="870px" Height="475px" AllowPaging="True" PageSize="16"
        PagerStyle-PageSizeControlType="None"
        PagerStyle-PageButtonCount="16" AutoGenerateColumns="False"
        OnNeedDataSource="grdOrders_NeedDataSource"
        OnSelectedIndexChanged="grdOrders_SelectedIndexChanged"
        OnItemCommand="grdOrders_ItemCommand"
        OnPreRender="grdOrders_PreRender"
        SelectedItemStyle-BackColor="#CCFF66"
        SelectedItemStyle-BorderStyle="Dashed">
        <MasterTableView AllowMultiColumnSorting="True" ClientDataKeyNames="Ord_ID">
          <Columns>
            <telerik:GridBoundColumn DataField="Ord_ID" 
              DataType="System.Int32" HeaderText="Order ID"
              SortExpression="Ord_ID" UniqueName="Ord_ID" ReadOnly="True"
              HeaderStyle-Width="58px" ItemStyle-Width="60px">
            </telerik:GridBoundColumn>
   .....
          </Columns>
        </MasterTableView>
        <ClientSettings Selecting-AllowRowSelect="true" EnablePostBackOnRowClick="true">
          <Scrolling AllowScroll="True" UseStaticHeaders="True"
            SaveScrollPosition="true">
          </Scrolling>
        </ClientSettings>
        <SelectedItemStyle BackColor="#FFFFCC" BorderColor="#CCFFCC" BorderStyle="None"
          BorderWidth="1px" />
      </telerik:RadGrid> 
 
 In the Deault.aspx.vb the Private Sub grdOrders_SelectedIndexChanged... exists

I would appreciate any help

 

Shinu
Top achievements
Rank 2
 answered on 03 Jun 2014
2 answers
128 views
Hi, i'm using Radgrid (Q2 2013) with a user control for editing detail item.

If in the usercontrol i put a "DropDownExtender" (AjaxControlToolkit Ver. 3.0xxxxx) when in the user control i press the cancel button all disappear and remains only the combobox put in aspx page and the radgrid disappear.

This is piece inside usercontrol (ASCX page)

 <div>
                         <asp:Panel ID="pnlNomeInterno" runat="server">
                         <asp:ListBox Class="textboxEdit" ID="lstNomeInternoVariabile" runat="server" OnSelectedIndexChanged="lstNomeInternoVariabile_SelectedIndexChanged"  
                         DataSourceID="" AutoPostBack="True" >
                         </asp:ListBox>


                        </asp:Panel>
                        
                        <asp:TextBox runat="server" ID="TextBox7" Width="80%" Class="textboxEdit"
                        Text='<%# DataBinder.Eval( Container, "DataItem.Nome_Interno_Variabile") %>' >
                       </asp:TextBox>
                       <br /><br />

                        <cc3:DropDownExtender ID="DropDownExtender2" TargetControlID="TextBox7" DropDownControlID="pnlNomeInterno" runat="server">
                        </cc3:DropDownExtender>

                        <br />
                    </div>

On contrary if comment the piece

<cc3:DropDownExtender ID="DropDownExtender2"
TargetControlID="TextBox7" DropDownControlID="pnlNomeInterno"
runat="server">
</cc3:DropDownExtender>

all is perfect but i lose functionaly of dropdownbox

I've used in user control file (ASCX file)

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc3" %>

and in the ASPX page i need also another that i called
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc2" %>


Thanks in advance for your time and collaboration.



Konstantin Dikov
Telerik team
 answered on 03 Jun 2014
5 answers
152 views
Hi,

I see there is an event for appointment double click (OnClientAppointmentDoubleClick), but I don't find an event for double clicking an empty timeslot.

Is there an event for that?
If not, how can I implement this?

* Using version 2014.1.403.40

Thanks,
Guy.
Nencho
Telerik team
 answered on 03 Jun 2014
3 answers
401 views
HI All,

I am upgrading Telerik RadControls for ASP.Net Ajax to v2014.1.225.40 and VS 2012.

For the most part things seem to be working well except a JavaScript error during postback in IE 11, it is working fine in Chrome and FF

http://localhost:39947/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_rsm_TSM&compress=1&_TSM_CombinedScripts_=;;System.Web.Extensions,+Version=4.0.0.0,+Culture=neutral,+PublicKeyToken=31bf3856ad364e35:en-US:c9cbdec3-c810-4e87-846c-fb25a7c08002:ea597d4b:b25378d2;Telerik.Web.UI,+Version=2014.1.225.40,+Culture=neutral,+PublicKeyToken=121fae78165ba3d4:en-US:fe3df733-ee56-4563-8789-bc399360084a:16e4e7cd:ed16cbdc:f7645509:24ee1bba:7165f74:e330518b:2003d0b8:c128760b:88144a7a:1e771326:c8618e41:e4f8f289:1a73651d:333f8d94:58366029:f46195d3:a7e79140:aa288e2d:258f1c72:7c926187:8674cba1:b7778d6c:c08e9f8a:59462f1:a51ee93e:19620875:874f8ea2:cda80b3:e085fe68:52af31a4:92fe8ea0:fa31b949:490a9d4e:bd8f85e4:383e4ce8

0x80004005 - JavaScript runtime error: Unspecified error.

Any help would be greatly appreciated.

Thanks.


Pavlina
Telerik team
 answered on 03 Jun 2014
2 answers
272 views
Dear Telerik,

I have the following AutoCompleteBox:

<td style="width: 150px; white-space:nowrap">
<telerik:RadAutoCompleteBox ID="MachineWORadAutoCompleteBox" runat="server"
TextSettings-SelectionMode="Single" MinFilterLength="2" DropDownWidth="200px"
OnClientRequesting="OnClientRequestingMachineWO"
OnEntryAdded="MachineWORadAutoCompleteBox_EntryAdded">
<WebServiceSettings Path="FeedbackForm.aspx" Method="LookupMachineWorkOrder" />
</telerik:RadAutoCompleteBox>

<asp:RequiredFieldValidator ID="MachineWORadAutoCompleteBoxValidator" ValidationGroup="Save"
runat="server" Display="Dynamic" ControlToValidate="MachineWORadAutoCompleteBox" ForeColor="red" ErrorMessage="*"></asp:RequiredFieldValidator>
</td>

With a required field validator, the validation is triggered the validation itself works fine the problem I get is that the Error message is wrapped to the next line even though the style tag explicitly says "no wrap". See attached picture as an example of what.

Form looking online the autocompletebox is wrapped around update panels and using an Ajax Manager you can specify if you want to render inline, I tried this out but it didn't have any effect.

Any ideas?

Thanks,
Germán
Germán
Top achievements
Rank 1
 answered on 03 Jun 2014
1 answer
721 views
I am trying to implement single search/filter for all the columns in the grid (see attached image). I have customized filter for column, using filter template. Below are my questions, will appreciate your help/ suggestions.
1) I wanted the custom filter above column headers and also it should not be attached to one column. In the image, you can see the column expands to the width of custom filter. Can we implement this in radgrid?

2) Do telerik radgrid has any out of the box functionality similar to the mentioned requirement?

Thanks.
Princy
Top achievements
Rank 2
 answered on 03 Jun 2014
7 answers
408 views
I have two examples now, my first two, where a place a RadComboBox on a web form, and populate it, but it won't drop down.  I first picked this up on a big web application project, and then on a simple little web site project, for investigating this.  In my sample project, it is the only control on the page  besides the ScriptManager, and there are rows in the data source, and it does display the first row, but it just doesn't drop down.  Any ideas on this?

BTW, this is theh first time I've restored this project onto a new XP machine, where I previously was working on a Vista machine that died.
Mujeeb
Top achievements
Rank 1
 answered on 03 Jun 2014
1 answer
119 views
Hi,
I want to add custom menu items to HeaderContextMenu of RadGrid.
I am able to do it from Javascipt OnClientLoad event.

But I want to do this in code behind. I tried following way:

         this.HeaderContextMenu.PreRender += HeaderContextMenu_PreRender;
        void HeaderContextMenu_PreRender(object sender, EventArgs e)
        {
            RadMenuItem resetItem = new RadMenuItem("Reset Columns New");
            resetItem.PostBack = false;
            resetItem.Visible = true;
            this.HeaderContextMenu.Items.Insert(2, resetItem);
        }

But this doesnt add new menu item. Any idea how I can achieve this?














Viktor Tachev
Telerik team
 answered on 03 Jun 2014
1 answer
149 views
Could you give an example of using the PageLayout in a MasterPage/ChildPage scenario?  When I try to do one, the contentholder on the child page isn't visible during design view and make it difficult to work on the page.
Shinu
Top achievements
Rank 2
 answered on 03 Jun 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?