Telerik Forums
UI for ASP.NET AJAX Forum
9 answers
3.3K+ views

Hi,

 

I got the Uncaught ReferenceError: $telerik is not defined error. I saw many threads, but didn't find it fit my problem.

Details:

  • So far, the issue is not always reproduce. But when it does, it's only reproduce on Windows Server 2016 only, which runs IIS 10
  • It's look like the file that declares on window.$telerik is loaded after the file that assign the jQuery into Telerik $telerik.$ = jQuery.noConflict(true); (please see attached print screens)
  • There's couple of Telerik controls in the page, such RadUpload and RadButton

Pleas assist,

 

Shimiz

 

Rumen
Telerik team
 answered on 29 Oct 2020
3 answers
846 views

Hi. I'm new to the RadGrid, and I'm having an error when trying to databind it to a collection of objects coming from an externally provided component.

When I try to databind it, I get a message saying "[TypeName] does not contain a property with the name [PropertyName]".

While the object does have a member with the specified name, I couldn't be sure whether said member is a property or a regular field.

Does this make a difference for RadGrid?

If so, is there any workaround besides having to pester my component's provider to change the way their data objects are defined?

Thanks in advance.

Doncho
Telerik team
 answered on 29 Oct 2020
3 answers
226 views
We have a radgrid with batch editing mode and there are multiple rows in which we have radcombobox. We used to go through every field with tab and up/down arrow keys to select the radcombobox item. But after updating the latest Telerik DLL we are facing an issue that when we click/focus on radcombobox and then press the down arrow key, instead of dropping down to the next item in the radcombobox it goes to the same field in the below row.  It is working fine if we have single row and also down arrow key is working fine in last row and up arrow key in first row. Please provide the solution for the same.

When we use down arrow key then focus moves to the radcombobox which is in green but before updating DLL cursor used to move to the next item in the radcombobox which is in red.
Vessy
Telerik team
 answered on 29 Oct 2020
1 answer
148 views

This is just an observation.

When using RadGrid, together with EnableHeaderContextMenu = true, and by some reason its not working, check make sure that ClientIDMode="Static" is not set. When removed, it works. 

I understand this might be because of the pointers to the grid id, but just throwing this out to anyone having the same troubles we had. 

Vessy
Telerik team
 answered on 28 Oct 2020
2 answers
789 views

 <telerik:GridTemplateColumn HeaderText="Total" DataField="Total" ColumnGroupName="inv" Aggregate="Sum" FooterAggregateFormatString="{0}" ItemStyle-Font-Bold="true" ItemStyle-HorizontalAlign="Center" FooterStyle-Font-Bold="true" FooterStyle-HorizontalAlign="Center" HeaderStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Center" HeaderStyle-Width="60">

 <ItemTemplate>                                    
      <a href='../ubEntryQueue.aspx?team=<%# Server.UrlEncode(DataBinder.Eval(Container.DataItem,"TeamID").ToString()) %>&status=0&user=           <%=ddlViewUser.SelectedValue %>&group=<%=hfDepartments.Value %>' target="_blank"><%#DataBinder.Eval(Container.DataItem,"Total") %></a>
</ItemTemplate>

</telerik:GridTemplateColumn>

for 1 cell I need to disable the anchor but unable to figure out how.  I am trying to do this server side.

Thanks for any help in advance

Mark
Top achievements
Rank 1
Veteran
 answered on 28 Oct 2020
8 answers
190 views

Hi! We have had this problem for quite some time now.We have this code:

 <telerik:RadClientDataSource ID="csDsInprog" runat="server" EnableServerPaging="false" EnableServerSorting="false" AllowPaging="false" ClientEvents-OnCustomParameter="ParameterMap" EnableViewState="false"
              ClientEvents-OnRequestEnd="showInProgressGrid">
              <DataSource>
                <WebServiceDataSourceSettings>
                  <Select Url="/user/history/Default.aspx/GetHistoryInProg" RequestType="POST" DataType="JSON" ContentType="application/json" />
                </WebServiceDataSourceSettings>
              </DataSource>
              <Schema DataName="d">
              </Schema>
            </telerik:RadClientDataSource>

 

This is the ClientDataSourceID for a radgrid. However, when there are no records returned by the URL, we see that it does multiple postbacks. If it does return information, it does the postback only once.

 

Can you help us with this one? We have updated to the latest version of the UI but still it has the same error.

Peter Milchev
Telerik team
 answered on 27 Oct 2020
1 answer
82 views

Unable to export Rupee Symbol ₹

I am unable to export rupee symbol â‚¹ in PDF. 

Attila Antal
Telerik team
 answered on 26 Oct 2020
8 answers
158 views
Hello:
       I am working on a project to change the color of the controls using Visual Style Builder then wrap it into dll using the Skin Assembly Builder. I use the Skin Assembly Builder a lot each day. However, after using the Skin Assembly Builder for several hours, it began to give me an error message saying "Server Error in '/' Application.". It happens to me almost every day for the past a few days. I am wondering if there is a maximum usage for the Skin Assembly Builder? If so, is there a way that I can do about it?

Thank you very much!
Elizabeth
Rumen
Telerik team
 answered on 26 Oct 2020
3 answers
281 views

I have a client who uses currently uses RadGrids with <ItemTemplate> layouts to define rather complex record displays.

They would like these aspx pages converted to use a new ajax web service with client-side data binding.

I am having some difficulty finding the proper constructs to use to replicate the functionality they currently have. The <ClientItemTemplate> functionality doesn't seem to do it.

I did find this blog entry from 12 years ago:

https://www.telerik.com/blogs/telerik-radgrid-for-asp-net-ajax-q2-2008-client-side-edit-using-templates

This solution seems very bulky and, given the age of the article, likely outdated.

Is there a different approach/solution to use?

 

Vessy
Telerik team
 answered on 26 Oct 2020
2 answers
101 views
I have to say up front the page I'm working on was written by someone else and its all voodoo black magic to me, so I'm lost

We have a loan status page on out web site (asp.net, Telerik version 2015.2.826.45)  which uses the RadGrid for the loans and a second Rad Grid for the history. The way it used to work is when you click on a loan it loaded the history. Some time back it would still work but ONLY after changing to page 2 or greater and going back to page 1.  

I've attached screenshots
* Step 1 navigate to the Loan Status page,
* Step 2 change to any other data pages,
* Step 3 go back to data page 1,
* Step 4 Click a loan, history loads. 

If you change databases pages the history grid keeps the last valid data instead of going blank

Of possible technical importance is that all database calls are located in a separate class and not in the code behind

In the code behind We have
a dsLoan_Selecting which sets/changes a value in the ObjectDataSourceSelectingEventArgs
a dsLoan_Selected which checks the number of rows returned if its greater than 50 it enables a warning message.

One of our other pages did this same thing and I turned off paging all together and the problem went away. that did not happen on this page.

I am including the ascx page code below
Because we are working with financial data I removed any namespaces 

I've never worked with Telerik controls before this and I don't have the best luck working with them with this application so ANY help would be greatly appreciated. 
It's a simple page and I assume it a simple problem because after you page off and back it works fine...

<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ctlLTStatus.ascx.cs" Inherits="ctlLTStatus" %>

<telerik:RadCodeBlock ID="StatusCodeBlock" runat="server">
    <script type="text/javascript">

        function StatusRowClick(sender, eventArgs) {
            var key = eventArgs.getDataKeyValue("ID");
            document.getElementById("<%= txtLTLoanID.ClientID %>").value = key;
            document.getElementById("<%= hidLoanID.ClientID %>").value = key;
            var detailTable = $find("<%= jdStatusDetail.ClientID %>").get_masterTableView();
            if (detailTable !== null) {
                detailTable.rebind();
            }
            var prpcd = eventArgs.getDataKeyValue("PrepareCD");
            if (prpcd == 'False') {
                document.getElementById("butGenClosingDisclosure").value = 'No Closing Disclosure';
                document.getElementById("butGenClosingDisclosure").disabled = true;
            } else {
                document.getElementById("butGenClosingDisclosure").value = 'Generate UCD XML';
                document.getElementById("butGenClosingDisclosure").disabled = false;
            }
        }
    </script>
</telerik:RadCodeBlock>

<telerik:RadAjaxManagerProxy ID="AjaxproxyStatus" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="gridStatus">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="jdStatusDetail" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManagerProxy>

<asp:HiddenField ID="hidLoanID" runat="server" />
<asp:HiddenField ID="hdnFileName" runat="server" />

<telerik:RadAjaxPanel ID="StatusAjaxPanal" runat="server" LoadingPanelID="StatusLoading"  Width="100%" CssClass="CRAP2">
    <asp:Panel ID="pnlStatusDefaultButton" runat="server" DefaultButton="statussearchMaster">
        <asp:Panel ID="pnlStatusMessage" runat="server" Width="100%" BackColor="Yellow">
            <asp:Label ID="lblStatusMessage" runat="server" Text="&nbsp;&nbsp;&nbsp;&nbsp;You returned more than 50 results.  Not all loans are displayed, please limit your search" Font-Bold="False" Font-Size="Medium"></asp:Label>
        </asp:Panel>
        <telerik:RadToolBar ID="toolbarStatus" runat="server" Width="100%">
            <Items>
                <telerik:RadToolBarButton runat="server" Text="Search">
                    <ItemTemplate>
                        &nbsp;&nbsp;BMG Invoice:<telerik:RadTextBox ID="txtStatusInvoice" runat="server" />
                        &nbsp;&nbsp;Name:<telerik:RadTextBox ID="txtStatusName" runat="server"></telerik:RadTextBox>
                        &nbsp;&nbsp;Loan Number:<telerik:RadTextBox ID="txtStatusLoanNumber" runat="server"></telerik:RadTextBox>
                        <telerik:RadButton ID="butStatusSearch" runat="server" Text="Search" OnClick="butStatusSearch_Click" BorderStyle="Solid" BorderColor="#c9c9c9" />
                        <span class="RadButton RadButton_Silk rbSkinnedButton">&nbsp;&nbsp;<input type="button" id="butGenClosingDisclosure" onclick="SetTab('ClosingDisclosure');" disabled="disabled" class="rbDecorated" style="display: inline" value="Select a Loan" /></span>
                    </ItemTemplate>
                </telerik:RadToolBarButton>
            </Items>
        </telerik:RadToolBar>
        <telerik:RadGrid ID="gridStatus" AllowPaging="True" runat="server" AutoGenerateColumns="False" DataSourceID="dsStatus" Width="100%" Height="330px" GridLines="None" CellSpacing="0" AllowSorting="True" Skin="Metro">
            <ClientSettings ClientEvents-OnRowSelected="StatusRowClick">
                <Selecting AllowRowSelect="true" />
                <Scrolling AllowScroll="true" />
            </ClientSettings>
            <MasterTableView AllowSorting="True" DataSourceID="dsStatus" OverrideDataSourceControlSorting="True" DataKeyNames="ID, FileNumber, BorrowerName, LoanNumber" ClientDataKeyNames="ID,PrepareCD">
                <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column" />
                <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column" Visible="True" Created="True" />
                <Columns>
                    <telerik:GridBoundColumn DataField="ID" HeaderText="ID" UniqueName="ID" Visible="False" />
                    <telerik:GridBoundColumn DataField="FileNumber" HeaderText="FileNumber" UniqueName="FileNumber" HeaderStyle-Width="150px" HeaderStyle-Wrap="False" />
                    <telerik:GridBoundColumn DataField="BorrowerName" HeaderText="BorrowerName" UniqueName="BorrowerName" HeaderStyle-Width="250px" HeaderStyle-Wrap="False" />
                    <telerik:GridBoundColumn DataField="LenderName" HeaderText="Lender" UniqueName="LenderName" HeaderStyle-Width="300px" />
                    <telerik:GridBoundColumn DataField="ReceivedDate" HeaderText="Received" UniqueName="ReceivedDate" HeaderStyle-Width="200px" />
                    <telerik:GridBoundColumn DataField="CheckedOutByName" HeaderText="CheckedOutBy" UniqueName="CheckedOutByName" HeaderStyle-Width="175px" />
                    <telerik:GridBoundColumn DataField="StatusDescription" HeaderText="Status" UniqueName="StatusDescription" />
                    <telerik:GridBoundColumn DataField="PrepareCD" HeaderText="PrePareCD" UniqueName="PrepareCD" Display="false" />
                </Columns>
                <PagerStyle PageSizeControlType="RadComboBox" />
            </MasterTableView>
            <HeaderStyle Font-Bold="True" />
            <PagerStyle PageSizeControlType="RadComboBox" />
            <FilterMenu EnableImageSprites="False">
            </FilterMenu>
        </telerik:RadGrid>
        <asp:ObjectDataSource ID="dsStatus" runat="server" SelectMethod="SelectLoansCompleteFromJetDocs" TypeName="DataHelper" OldValuesParameterFormatString="original_{0}" OnSelecting="dsStatus_Selecting" OnSelected="dsStatus_Selected">
            <SelectParameters>
                <asp:Parameter DefaultValue="" Name="name" Type="String" />
                <asp:Parameter DefaultValue="" Name="loanNumber" Type="String" />
                <asp:Parameter DefaultValue="" Name="invoice" Type="String" />
                <asp:Parameter DefaultValue="" Name="jdCompCode" Type="String" />
            </SelectParameters>
        </asp:ObjectDataSource>
        <asp:Button ID="statussearchMaster" runat="server" OnClick="butStatusSearch_Click" Text="SearchMaster" Style="height: 0px; visibility: hidden;" />
    </asp:Panel>
</telerik:RadAjaxPanel>
<telerik:RadAjaxPanel ID="ajaxStatusHistory" runat="server" LoadingPanelID="StatusLoading" Height="370" Width="100%" Visible="True" CssClass="CRAP">

    <telerik:RadGrid ID="jdStatusDetail" AllowPaging="false"  runat="server" Height="325px" AutoGenerateColumns="False" DataSourceID="dsStatusDetail" Width="100%" GridLines="None" CellSpacing="0" AllowSorting="True" Skin="Metro" CssClass="CRAP3" Visible="True">
        <ClientSettings>
            <Selecting AllowRowSelect="true" />
            <Scrolling AllowScroll="true" />
        </ClientSettings>
        <MasterTableView AllowSorting="True" DataSourceID="dsStatusDetail" OverrideDataSourceControlSorting="True" DataKeyNames="ID">
            <CommandItemSettings ExportToPdfText="Export to PDF" />
            <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column" Visible="True">
            </RowIndicatorColumn>
            <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column" Visible="True">
            </ExpandCollapseColumn>
            <Columns>
                <telerik:GridBoundColumn Visible="false" DataField="ID" HeaderText="ID" UniqueName="ID" />
                <telerik:GridBoundColumn HeaderStyle-Width="150px" DataField="Status" HeaderText="Status" UniqueName="Status" />
                <telerik:GridBoundColumn HeaderStyle-Width="175px" DataField="BeginDate" HeaderText="BeginDate" UniqueName="BeginDate" />
                <telerik:GridBoundColumn HeaderStyle-Width="175px" DataField="EndDate" HeaderText="EndDate" UniqueName="EndDate" />
                <telerik:GridBoundColumn HeaderStyle-Width="150px" DataField="User"      HeaderText="Processor" UniqueName="User" />
                <telerik:GridBoundColumn DataField="Notes" HeaderText="Notes" UniqueName="Notes" />
            </Columns>
            <EditFormSettings>
                <EditColumn FilterControlAltText="Filter EditCommandColumn column">
                </EditColumn>
            </EditFormSettings>
            <PagerStyle PageSizeControlType="RadComboBox" />
        </MasterTableView>
        <PagerStyle PageSizeControlType="RadComboBox" />
        <FilterMenu EnableImageSprites="False">
        </FilterMenu>
    </telerik:RadGrid>
    <asp:ObjectDataSource ID="dsStatusDetail" runat="server" SelectMethod="GetLTHistory" TypeName="DataHelper" OldValuesParameterFormatString="original_{0}">
        <SelectParameters>
            <asp:ControlParameter ControlID="txtLTLoanID" DefaultValue="0" Name="id" PropertyName="Value" Type="String" />
        </SelectParameters>
    </asp:ObjectDataSource>
    <asp:HiddenField ID="txtLTLoanID" runat="server" />
    <asp:HiddenField ID="txtLTPrefix" runat="server" />
    <asp:HiddenField ID="txtJDCompCode" runat="server" />
</telerik:RadAjaxPanel>

<telerik:RadAjaxLoadingPanel ID="StatusLoading" runat="server">
    Loading Please wait
</telerik:RadAjaxLoadingPanel>



Attila Antal
Telerik team
 answered on 22 Oct 2020
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?