Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
156 views

Hello,

 

We have an application that is being hosted both USA and UK.

In there we have few javascriptf unctions.

1. Copy a date from raddatepicker to another 

     e.g. StartDate to SalaryStartDate in certain situaltions

2. Compares a manually entered date to be in a range

    e.g. SalaryStartDate should be between StartDate and EndDate

 

It loads the date properly from server side, also when manually selected it shows in correct format but it fails in javascript while assigning or comparing

 

Can anyone please help me figure out the solution?

 

Thanks

 

 

Eyup
Telerik team
 answered on 17 Dec 2019
1 answer
272 views

Hello!

I'm in the process of upgrading our product from version 2013.1.403.35 to the latest version. I understand that in the 2014 Q1 release, there has been some restructuring done to the scripts and the skins. While I've figured out how to handle the deprecated skins, I'm running into script errors when rendering to the page. We're making use of the "EnableEmbeddedScripts = false" to ensure faster rendering via script proxies. Can you please provide the exact list of files needed along with the proper order that needs to be observed? I'm following this KB article, but I'm still unable to get my component working. The component consists of:
RadAjaxPanel
RadAjaxLoadingPanel
RadToolBar
RadTextBox
RadGrid
RadContextMenu
RadWindowManager
RadWindow

Thank you very much for you attention! I hope my error is something simple.

Peter Milchev
Telerik team
 answered on 17 Dec 2019
2 answers
150 views
Hi There

I'm using a RadTileList to display a range of items from a SQL DB.
I want each tile to link to a certain (the same) page and also provide the "ID" field of that item in a querystring. But I'm not sure how to accomplish this.

So I currently have this:
<telerik:RadTileList runat="server" ID="tileListSticky" AppendDataBoundItems="true" RenderMode="Classic"
                Width="100%" TileRows="4" OnTileDataBound="RadTileList1_OnTileDataBound" OnTileCreated="RadTileList1_OnTileCreated" Skin="Sunset" ScrollingMode="Auto" SelectionMode="Single" AutoPostBack="true" OnTileClick="tileListSticky_TileClick">

Importantly, the "OnTileClick" part fires an event, but I'm not sure how to go about getting the "ID" field of the item in the DB. It's not specifically bound to the tile either.

Regards
JohannS


Otoniel
Top achievements
Rank 1
 answered on 16 Dec 2019
6 answers
356 views

Hello,

I have a RadGrid used in EditMode. One of the column has a RadDatePicker in the EditItemTemplate. I want to update all these RadDatePicker on the client side when the value of another RadDatePicker is changed. I manage to update all the date picker in the grid with JQuery doing this:

function rdpPaymentDate_ClientClick() {
    var rdp = $find("<%= rdpPmtDate.ClientID %>");
    var date = rdp.get_selectedDate();
 
    $("input[id*='rdpPaymentDate_dateInput']").val(date.mmddyy());
}
 
Date.prototype.mmddyy = function () {
    var mm = this.getMonth() + 1; // getMonth() is zero-based
    var dd = this.getDate();
 
    return [
        (mm > 9 ? '' : '0') + mm,
        (dd > 9 ? '' : '0') + dd,
        this.getFullYear()                   
    ].join('/');
};

 

When i submit my page to update my data, it says Invalid JSON primitive: 29/2019. Where 29 and 2019 are the day and year of the new date I had selected.

How can I update client side all the RadDatePicker controls at once please?

Thank you

Gregory

Gregory
Top achievements
Rank 2
 answered on 16 Dec 2019
1 answer
130 views
Hi,
   Any new skin release with latest version 2019 ? i am used Metro Theme , but it not look to good -- screenshot https://prntscr.com/qaaikf.
Any other new skin released, where i can see new release notes.

Thanks
Rumen
Telerik team
 answered on 16 Dec 2019
3 answers
257 views

Hello,

I have the following structure:

Master Page
         Master Menu
         Contentplaceholder (side bar)
         Contentplaceholder (main content)

The master menu loads content pages that have content specific navigation in the side bar.

The problem I'm having is with a content page that has a dropdown and a RadMenu in the "side bar" placeholder that are used to change selectparameters for a grid in the "main content" placeholder.
I can get a label in the "main content" to update, but the grid won't rebind. SQL server profiler shows no activity, so the rebind isn't firing for some reason.

Thx in advance for help and/or pointers !!

Mater Page

<telerik:RadScriptManager runat="server"></telerik:RadScriptManager>
<telerik:RadAjaxManager ID="AjaxMgr1" runat="server" />
    < ... some RadPageLayout directives ... >
 
        <%--Main Nav--%>   
        <telerik:RadMenu ID="RadMenu1" runat="server" RenderMode="Auto">
            <Items>
                <telerik:RadMenuItem Text="Home" NavigateUrl="Default.aspx" />
                < .. more stuff .. >
            </Items>
        </telerik:RadMenu>
 
 
                <%--Main--%>
                <telerik:LayoutRow>
                    <Columns>
 
                        <%--Sidebar--%>
                        <telerik:LayoutColumn Span="2" HiddenMd="true" HiddenSm="true" HiddenXs="true">
                            <asp:ContentPlaceHolder ID="SidebarPlaceHolder" runat="server">
                            </asp:ContentPlaceHolder>
                        </telerik:LayoutColumn>
 
                        <%--Content--%>
                        <telerik:CompositeLayoutColumn Span="10" SpanMd="12" SpanSm="12" SpanXs="12">
                            <Content>
                                <asp:panel runat="server" ID="GridPanel">
                                    <asp:ContentPlaceHolder ID="MainPlaceHolder" runat="server">
                                    </asp:ContentPlaceHolder>
                                </asp:panel>
                            </Content>
                        </telerik:CompositeLayoutColumn>
                    </Columns>
                </telerik:LayoutRow>

 

Content Page

<asp:Content ID="SBContent" ContentPlaceHolderID="SidebarPlaceHolder" Runat="Server">
    <telerik:RadAjaxManagerProxy runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="usrDD">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="GridPanel" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="RadMenu2">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="GridPanel" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManagerProxy>
 
    <telerik:RadDropDownList ID="usrDD" runat="server" Width="205px" ZIndex="10000" AutoPostBack="true"
        DataSourceID="employeeDS" DataValueField="idx" DataTextField="FullName" OnItemSelected="usrDD_ItemSelected">
        <Items><telerik:DropDownListItem Selected="true" Text="Select Employee" /></Items>
    </telerik:RadDropDownList>
 
    <telerik:RadMenu ID="RadMenu2" CssClass="sidebar" Flow="Vertical" runat="server" OnItemClick="RadMenu2_ItemClick" >
        <Items>
            <telerik:RadMenuItem Text="Common Systems" Value="1" Selected="true"/>
        < .. more stuff .. >
        </Items>
    </telerik:RadMenu>
 
<asp:SqlDataSource ID="employeeDS" .......
</asp:Content>
 
<asp:Content ID="MainContent" ContentPlaceHolderID="MainPlaceHolder" runat="server"> 
    <telerik:RadAjaxManagerProxy runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadGrid1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" />
                    <telerik:AjaxUpdatedControl ControlID="SavedChangesList" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManagerProxy>
     
    <telerik:RadAjaxLoadingPanel runat="server" ID="RadAjaxLoadingPanel1"></telerik:RadAjaxLoadingPanel>
     
    <h3><asp:Label runat="server" ID="lblHeader" Text="some text" /></h3>
         
    <telerik:RadGrid RenderMode="Lightweight" ID="RadGrid1" GridLines="None" runat="server" AllowAutomaticDeletes="True"
             MasterTableView-CommandItemSettings-ShowAddNewRecordButton="false"
             AllowAutomaticInserts="true" PageSize="10" OnItemDeleted="RadGrid1_ItemDeleted" OnItemInserted="RadGrid1_ItemInserted"
             OnItemUpdated="RadGrid1_ItemUpdated" OnPreRender="RadGrid1_PreRender" AllowAutomaticUpdates="True" AllowPaging="True"
             AutoGenerateColumns="False" OnBatchEditCommand="RadGrid1_BatchEditCommand" DataSourceID="SqlDataSource1">
            <MasterTableView CommandItemDisplay="TopAndBottom" DataKeyNames="idx"
                DataSourceID="SqlDataSource1" HorizontalAlign="NotSet" EditMode="Batch" AutoGenerateColumns="False">
        < .. more grid stuff .. >
 
<asp:SqlDataSource ID="SqlDataSource1" ......
</asp:Content>

 

Content page Code

   protected void RadMenu2_ItemClick(object sender, RadMenuEventArgs e)
        {
            lblHeader.Text = e.Item.Text;
            SqlDataSource1.SelectParameters.Add("parent", e.Item.Value);
            SqlDataSource1.SelectParameters.Add("employee", usrDD.SelectedValue);
        }
 protected void usrDD_ItemSelected(object sender, DropDownListEventArgs e)
        {
            SqlDataSource1.SelectParameters.Add("employee", e.Value);
            SqlDataSource1.SelectParameters.Add("parent", RadMenu2.SelectedValue);
            RadGrid1.Rebind();
        }
Attila Antal
Telerik team
 answered on 16 Dec 2019
1 answer
298 views

Hi Telerik team,

 

Is there any way we can make file manager or image manager popup window resizable?

 

Thanks in advance,

 

Lan

Rumen
Telerik team
 answered on 16 Dec 2019
4 answers
352 views

Can you recommend way to remove 3d effect from charts?

Thank you

Vessy
Telerik team
 answered on 16 Dec 2019
1 answer
214 views

Skin is not applied to RadLabel, when i am using Sass Theme Builder for Bootstrap.

Even if I select all the controls, there is no css file in the downloaded archive that would contain the class name .RadLabel

Rumen
Telerik team
 answered on 16 Dec 2019
3 answers
1.0K+ views

In previous versions of Visual Studio and the Telerik extension I was able to create a new ASP.Net WebForms application and use the Telerik menu in VS to convert the project. Now in VS2019, the Telerik extension menu is within the new Extensions menu, but I see no options to convert my project.

Am I missing something?

Yana
Telerik team
 answered on 16 Dec 2019
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?