Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
89 views
Its giving below error while exporting the radscheduler timeline view ...


'10' is an unexpected token. The expected token is '"' or '''. Line 11, position 27.


Thanks
Vijay Joshi
Bozhidar
Telerik team
 answered on 15 Nov 2013
3 answers
153 views
I have a Rad Autocomplete Box returning 3 values via web service, I also have several Rad windows on the page.  What I am trying to do is get those values from the auto complete box and load a certain Rad Window based on the values returned from the auto complete box.  I am having issues getting those values, when I try to grab the values and pass them to the rad window it conflicts with the select function.  I was wondering if there is a way to call a function inside a function, if so how do I accomplish this task?

Below is my code.

        function LoadWindow(Type) {
             var radDash = $find("<%= radDashboard.ClientID%>");
                      if (Type == 1) {
                          radDash.setUrl("ManageProcessor.aspx");
                      }
                      else if (Type == 2) {
                          radDash.setUrl("WoTracker.aspx");
                      }
                      else if (Type == 3) {
                          radDash.setUrl("WoTracker.aspx");
                      }
                      else if (Type == 4) {
                          radDash.setUrl("WoTracker.aspx");
                      }
                      else if (Type == 5) {
                          radDash.setUrl("PriorService.aspx");
                      }
                      else if (Type == 6) {
                          radDash.setUrl("WorkingRecruits.aspx");
                      }
                      radDash.show();
                      radDash.maximize();
         }
    </script>
    <script>       
         $(document).ready(function () {
             BindControls();
         });
         function BindControls() {
             $("#<%= txtSearch.ClientID%>").autocomplete({
                         source: function (request, response) {
                             $.ajax({
                                 url: "../Recruiting.asmx/FindRecID",
                                 data: "{ 'sLookUP': '" + request.term + "' }",
                                 dataType: "json",
                                 type: "POST",
                                 contentType: "application/json; charset=utf-8",
                                 dataFilter: function (data) { return data; },
                                 success: function (data) {
                                     response($.map(data.d, function (item) {
                                         return {
                                             label: item.split("-")[0],
                                             val: item.split("-")[1],
                                             ID: item.split("-")[2]
                                         }
                                     }))
                                 },
                                 error: function (response) {
                                     alert(response.responseText);
                                 }
                             });
                         },
 
                         select: function (e, i) {
                             $("#<%= HFRecruit.ClientID%>").val(i.item.val);
                             $("#<%= HFId.ClientID%>").val(i.item.ID);                            
                         },
 
                minLength: 2    // MINIMUM 1 CHARACTER TO START WITH.
            });
            }
    </script>
        <link href="../Recuiting.css" rel="stylesheet" />
    <link href="../Styles/Styles.css" rel="stylesheet" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="BodyContent" Runat="Server">
    <telerik:RadAjaxPanel ID="radajax" runat="server">
        <div style="width:auto">
            <div class="dvGridWrapper">
                    <asp:HiddenField ID="HFRecruit" runat="server" /><asp:HiddenField ID="HFId" runat="server" />
                    <asp:TextBox ID="txtSearch" runat="server" Width="260px" ToolTip="Enter Last Name First Name"></asp:TextBox>
                    <asp:TextBoxWatermarkExtender ID="txtSearch_WME" runat="server" TargetControlID="txtSearch" WatermarkText="Lookup Processor" WatermarkCssClass="Watermark"></asp:TextBoxWatermarkExtender>

    <div>
        <table  style="width:90%;margin-right:auto;margin-left:auto;margin-top:20px">               
            <tr>
                <td style="width:100%text-align:center">
                   <asp:HyperLink ID="hyEnlist" runat="server" onclick="LoadWindow(1)"><asp:Image ID="imgEnlist" runat="server" ImageUrl="../Images/SGT.jpg" CssClass="change_opacity" /></asp:HyperLink>&nbsp;Non-Prior Service
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:HyperLink ID="hyPrior" runat="server" onclick="LoadWindow(1)"><asp:Image ID="imgPrior" runat="server" ImageUrl="../Images/Corp.jpg" CssClass="change_opacity" /></asp:HyperLink>&nbsp;Prior Service
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:HyperLink ID="hyOfficer" runat="server" onclick="LoadWindow(2)"><asp:Image ID="imgOff" runat="server" ImageUrl="../Images/Cpt.jpg" CssClass="change_opacity" /></asp:HyperLink>&nbsp;Basic Branch
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                   <asp:HyperLink ID="HyWarrant" runat="server" onclick="LoadWindow(3)"><asp:Image ID="imgWarrant" runat="server" ImageUrl="../Images/W03.jpg" CssClass="change_opacity" /></asp:HyperLink>&nbsp;Warrant
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:HyperLink ID="hyGNPS" runat="server" onclick="LoadWindow(3)"><asp:Image ID="imgGNPS" runat="server" ImageUrl="../Images/glossary.jpg" CssClass="change_opacity" /></asp:HyperLink>&nbsp;Glossory Non Prior Service                  
                </td>
            </tr>
            <tr>
                <td style="padding-top:40pxtext-align:center">
                    <asp:HyperLink ID="hyIncentives" runat="server" onclick="LoadWindow(3)"><asp:Image ID="imgIncent" runat="server" ImageUrl="../Images/Incentive.jpg" CssClass="change_opacity" /></asp:HyperLink>&nbsp;Incentive Credit
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:HyperLink ID="hySpec" runat="server" onclick="LoadWindow(4)"><asp:Image ID="imgSpec" runat="server" ImageUrl="../Images/EFM.jpg" CssClass="change_opacity" /></asp:HyperLink>&nbsp;Specialty Branch
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<%--                    <asp:HyperLink ID="hyRFP" runat="server" onclick="LoadWindow(3)"><asp:Image ID="imgRFP" runat="server" ImageUrl="../Images/recruit.jpg" CssClass="change_opacity" /></asp:HyperLink>&nbsp;Recruit Force Pool
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--%>
                    <asp:HyperLink ID="hyIST" runat="server" onclick="LoadWindow(3)"><asp:Image ID="imgIST" runat="server" ImageUrl="../Images/IST.png" CssClass="change_opacity" /></asp:HyperLink>&nbsp;Interstate Transfer
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:HyperLink ID="hyDSE" runat="server" onclick="LoadWindow(3)"><asp:Image ID="imgDSE" runat="server" ImageUrl="../Images/toy2.jpg" CssClass="change_opacity" /></asp:HyperLink>&nbsp;Direct Service Enlistment 
                </td>
            </tr>
        </table>
    <telerik:RadWindow ID="radDashboard" runat="server" InitialBehaviors="Reload" ShowContentDuringLoad="false" CenterIfModal="true" Modal="true" Behaviors="Close" ></telerik:RadWindow>
        </div>    
    </telerik:RadAjaxPanel>
</asp:Content>
Nencho
Telerik team
 answered on 15 Nov 2013
15 answers
312 views
Hi,

I am using the latest version of RadControls for ASP.NET Ajax and get the following error (using Firefox) when returning from a Usercontrol popup window (running ASP.NET on a German Windows XP).
Any hints would be greatly appreciated.

Thanks,
Stefan

The numeric part ('161.5') of '161.5px' cannot be parsed as a numeric part of a Pixel unit.

Stack Trace:

[FormatException: The numeric part ('161.5') of '161.5px' cannot be parsed as a numeric part of a Pixel unit.]
   System.Web.UI.WebControls.Unit..ctor(String value, CultureInfo culture, UnitType defaultType) +508
   System.Web.UI.WebControls.Unit.Parse(String s) +63
   Telerik.Web.UI.RadGrid.LoadClientState(Dictionary`2 clientState) +946
   Telerik.Web.UI.RadCompositeDataBoundControl.LoadPostData(String postDataKey, NameValueCollection postCollection) +193
   Telerik.Web.UI.RadCompositeDataBoundControl.System.Web.UI.IPostBackDataHandler.LoadPostData(String postDataKey, NameValueCollection postCollection) +42
   System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) +693
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1743
Stef
Telerik team
 answered on 15 Nov 2013
3 answers
196 views
Hello Telerik Team,

we have a strange behavior after changing the ASP.NET AJAX Telerik Version from "2009.3.1103.35" to "2010.1.519.35":
 
We have a ASPX page, which opens a new RadWindow in Modal mode. This window is opened via "window.radopen(...)".
The RadWindow has also get declared a close event handler with "add_close(...)".

When the RadWindow closes, the calling page opens a new IE window with "window.open(...)" in the close event function and calls  "newWin.focus()" on the new window.  

The parent page is not reloaded at this point.


With the previous (old) Telerik Version, the new window was opened as expected and set to the front.

After updating the Telerik Version, the new window was already opened in the close event handler, but the focus did not get assigned to the new window. It seems, that the parent window is grabbing the focus back. Even with the JS calls:

Parent Page: self.blur(); newWindow.focus();
New Window Page: self.focus();

the new window is moved to the background.


Do you know of any issues when using the RadWindow in this way in the version as defined above?


Kind regards,
Johann
Marin Bratanov
Telerik team
 answered on 15 Nov 2013
7 answers
160 views
The grid displays differently in Chrome and IE. The issue is with Chrome. I have attached tow files illustrating the displays.
Maria Ilieva
Telerik team
 answered on 15 Nov 2013
3 answers
305 views
Hi.
I'm using RadOrgChart with custom itemtemplate.
It works fine in FF but in Chrome & IE 10 it has a problem that show in my attachment.
I found that there's a div with class "rocViewPort". In FF its width is "160px" but in Chrome is "0px".
Below is all custom css in use

.RadOrgChart li .rocItem {
    height: auto !important;
    width: 150px !important;
}
.rocItemTemplate {
    border-radius: 10px !important;
    height: auto !important;
}
.RadOrgChart li .rocItemTemplate {
    text-align: center;
    height: auto !important;
    padding: 0px !important;
}
.RadOrgChart .rocItemContent {
    height: auto !important;
}
.rocLineDown {
    top: 24px !important;
}


Can someone help me on this problem?


Thanks.
Magdalena
Telerik team
 answered on 15 Nov 2013
3 answers
187 views
Hi there

I've tried to export to pdf functionality.

I require to export grid data and have an issue.
My grid contains few lines in one cell and cell could be splited cell between pages.

I guess pdf may contains smth like "Allow row to break across pages".

Could you help me setup correctly export?
Kostadin
Telerik team
 answered on 15 Nov 2013
2 answers
83 views
Hi Telerik people,

In our CMS I have build a simple test page on which I placed a RadEditor and I try to put some classes in the Classes dropdown.
The CSS is coupled from another machine through Virtual Directory.
This is working in IE11 but not in FF, Chrome.
I try to debug with Fiddler but to no avail.

The page is here: http://www.insight5.nl/test.aspx

Can you see what is happening here?

Thanks, Marc
Fit2Page
Top achievements
Rank 2
Bronze
Iron
Iron
 answered on 15 Nov 2013
3 answers
139 views
Hello . 
We are using Telerik 2013 . Q1 . SP1 ,and we have some problems with rendering in Different Browsers.
this menu shows Correctly in IE10 ,but It renders Incorrectly in FireFox 24.0 ,  Opera 12.15 , Chrome 30.0.1599.101 m ,
and Safari 5.1.7 .
I attached the Picture of This Problem .
Our Menu begins with :<telerik:RadMenu ID="MainMenu" runat="server" dir="rtl" Skin="Office2007" OnItemClick="RadMenu1_ItemClick" Width="1020px" EnableRootItemScroll="true">

I found some styles For Solving this Problem.I can't remember where I Found It.
It is :
 * html div.RadMenu

  {
     
display: inline !important;

    }

 

+ html div.RadMenu

 {

    display: inline !important;

 

 

div.RadMenu

 {

     float: none !important;

   display: inline-block !important;

   vertical-align: middle !important;

 }
 
div.RadMenu .rmRootLink .rmLeftImage, div.RadMenu .rmFirst
 {
    width
: 16px;

    padding-right: 15px;

   }

 

 div.RadMenu, div.RadMenu .rmRootLink

 {

    width: 100%;

 }

This style Solved My Problem in These Browsers , but this Problem Still Exist In IE8 and I Can't Find Anything for this version of IE .

 

 Can anybody Help Us?

Magdalena
Telerik team
 answered on 15 Nov 2013
4 answers
195 views
Think I found one issue, this call is not finding the grid

"$find("ctl00_ctl00_BodyContentPlaceHolder_BodyContentPlaceHolder_ReportsList_CustomReportGrid")._showFilterMenu("ctl00_ctl00_BodyContentPlaceHolder_BodyContentPlaceHolder_ReportsList_CustomReportGrid_ctl00",



Be patient I am new to using telerik

No Text in filter text box.  Click filter button to bring up menu, the menu never appears but a whole page post back occurs. We have just updated our Telerik from 2010 to RadControl AJAX Q2 2013.  

AutoGenerateColumns is used and the calendar button is not working either for dated columns it just places a '#' in the address url. 


<telerik:RadGrid EnableEmbeddedSkins="true" ID="CustomReportGrid" runat="server" AutoGenerateColumns="true" ShowFooter="true" AllowSorting="true"
                AllowPaging="true" AllowFilteringByColumn="true" PagerStyle-Mode="NextPrevAndNumeric"
                PageSize="50" EnableOutsideScripts="false"
                MasterTableView-NoMasterRecordsText="No records to display." ><ExportSettings OpenInNewWindow="true" FileName="CustomReport">
                    <Pdf PageWidth="3000px"  PaperSize="A4" AllowPrinting="true" PageBottomMargin="10px" PageTopMargin="25px"
                        PageHeaderMargin="0px" PageLeftMargin="10px" PageRightMargin="10px" PageTitle="CustomReport" />
                </ExportSettings>
                <ClientSettings>
                    <Scrolling UseStaticHeaders="true" />
                </ClientSettings>
                <ItemStyle BackColor="transparent" HorizontalAlign="Left" />
                <HeaderStyle HorizontalAlign="Left" />
                <FilterItemStyle HorizontalAlign="Left" />
                <AlternatingItemStyle BackColor="#F9F9F9" />
            </telerik:RadGrid>

This is the markup that is being generated for the filter button

<input id="ctl00_BodyContentPlaceHolder_ReportsList_CustomReportGrid_ctl00_ctl02_ctl02_Filter_Client Name" class="rgFilter" type="submit" title="Filter" onclick="$find("ctl00_BodyContentPlaceHolder_ReportsList_CustomReportGrid")._showFilterMenu("ctl00_BodyContentPlaceHolder_ReportsList_CustomReportGrid_ctl00", "Client Name", event); return false;" value=" " name="ctl00$BodyContentPlaceHolder$ReportsList$CustomReportGrid$ctl00$ctl02$ctl02$Filter_Client Name"></input>


This is the markup for the calendar button on the date column filter

<a id="ctl00_BodyContentPlaceHolder_ReportsList_CustomReportGrid_ctl00_ctl02_ctl02_RDIPFRequested Date_popupButton" class="rcCalPopup" href="#" title="Open the calendar popup."> … </a>


Pavlina
Telerik team
 answered on 15 Nov 2013
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?