Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
173 views

I need to implement a custom paging template in a radgrid.

Is there a way to skin radbuttons in the paging template w/ the "standard" icons which normally appear in the paging template?

something like

<telerik:RadButton runat="server" ID="RadGrid_Button_PageFirst" CssClass="rgPageFirst" />

doesn't seem to work.

Doncho
Telerik team
 answered on 11 Aug 2020
1 answer
139 views

 Hi,

I have a slider with a number of sliding zones.

I want to save data (in server side) when I close/collapse one of these sliding zone.

I have collected the data in a hiddenfield using javascript.

Now I need to save the content of this hiddenfield in the database.

 

Thank you for your help

 

Anne

Vessy
Telerik team
 answered on 11 Aug 2020
1 answer
238 views

Hello!

I've been having problems attempting to reach values from my RadSpreadsheet component, which have been entered directly into the spreadsheet.

Retrieving cell values works fine when using a SpreadsheetDocumentProvider or a custom provider, which populates the RadSpreadsheet with sheets, rows and cell values. But only the initially populated cells have accessable values - if any new values were to be added, they would show up as NULL when I would try to reach them.

In the image I attempt to get a cell value (and save a referenced workbook) in a button click event.

 

Telerik UI for ASP.NET AJAX 2020.2.617

 

Peter Milchev
Telerik team
 answered on 11 Aug 2020
4 answers
206 views
Hello, I have some aspx pages already written and working with code-behind, I'd like to display these pages within a TABStrip...is there a way to load a webform into RadMultiPageView so each webform can be rendered within the tab when clicked...I'd perfer to not have to recreate all the webforms as ascx user controls.  I tried setting the NavigationURL of each tab but that just behaves like a hyperlink and redirects you to the aspx page you must press the BACK button to get back to the page with the TabStrip.

Thanks
Vessy
Telerik team
 answered on 11 Aug 2020
1 answer
216 views

Hi,

     I have a radtreeview which will order the hierarchy level by level. Here is the code

uiAvailableLocations.DataValueField = FujiXerox.Common.Systems.Sustainability.Constants.Location.ID;
uiAvailableLocations.DataTextField = FujiXerox.Common.Systems.Sustainability.Constants.Location.LocationName;
uiAvailableLocations.DataFieldID = FujiXerox.Common.Systems.Sustainability.Constants.Location.ID;
uiAvailableLocations.DataFieldParentID = FujiXerox.Common.Systems.Sustainability.Constants.Location.ParentID;
uiAvailableLocations.DataSource = ds;
uiAvailableLocations.DataBind();

 

The dataset ds will return the data in alphabetically order. At most times, the treeview can be sort in parent child order normally. But for some strange moments, it will just render the result alphabetically but not in parent child order. The code is same, however sometimes it just render the data alphabetically. What is the reason and how can I fix it?

 

Peter Milchev
Telerik team
 answered on 11 Aug 2020
2 answers
156 views

Hi I’ve got the problem with the radcalendar please see the attached as that shows you what i'm looking to produce.

 

This is the aspx;

<%@ Page Title="" Language="C#" MasterPageFile="~/App_Templates/Local/ConfigLayoutContainer.master" AutoEventWireup="true" CodeBehind="OnCall.aspx.cs" Inherits="ConfigurationModule.rota.OnCall" %>
<%@ Register TagPrefix="user" Namespace="TESTones.Web.UI.Telerik" Assembly="TESTones.Web.UI" %>
 
<asp:Content ID="Header" ContentPlaceHolderID="InstanceHeader" runat="server">
    <title>TESTones | Configuration Module | Manage Overtime</title>
    <link href="/styles/global.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .rcWeekend {
            background-color: #2291a1 !important;
        }
         
        .rcDisabled
        {
            background-color: #fb1f33 !important;
            border: 1px solid #fb1f33 !important;
            background-repeat: no-repeat;
            background-position: 5px 5px !important;
        }
    </style>
</asp:Content>
 
<asp:Content ID="Page" ContentPlaceHolderID="InstanceContent" runat="server">
 
<telerik:RadWindowManager ID="RadWindowManager1" runat="server" Modal="true" Width="800" Height="600" />
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"  >
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="btnSave">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="JustOnePanel" LoadingPanelID="LoadPanel1"></telerik:AjaxUpdatedControl>
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>
 
<telerik:RadAjaxLoadingPanel ID="LoadPanel1" runat="server">
</telerik:RadAjaxLoadingPanel>
 
<telerik:RadToolBar ID="RadToolBar1" runat="server" CssClass="PageMenu">
    <Items>
        <telerik:RadToolBarButton Value="Name" runat="server">
            <ItemTemplate>
                <h1>
                    <asp:Label ID="Label4" runat="server" Text="Manage On Call" /></h1>
            </ItemTemplate>
        </telerik:RadToolBarButton>
    </Items>
</telerik:RadToolBar>
     
 
    <div class="Form">
        <div class="ContentLeft" style="width: 200px;">
            <p>
                <asp:Label ID="lblEngineer" CssClass="formLabel" Text="Engineer" runat="server" />
                <telerik:RadComboBox ID="ddlEngineer"
                    runat="server" AppendDataBoundItems="true" AutoPostBack="True" Filter="Contains" EmptyMessage="Please Select..." CssClass="SearchFormDropdown" EnableLoadOnDemand="True"
                                     OnSelectedIndexChanged="ddlEngineer_SelectedIndexChanged"/>
            </p>
        </div>
        <div>
            <telerik:RadCalendar Width="350px" Height="200px" ID="RadCalendar1" runat="server" EnableMultiSelect="True" AutoPostBack="True" CultureInfo="en-GB"
                                  OnSelectionChanged="RadCalendar1_SelectionChanged">
                <WeekendDayStyle CssClass="rcWeekend" />
                <CalendarTableStyle CssClass="rcMainTable" />
                <OtherMonthDayStyle CssClass="DayStyle" />
                <OutOfRangeDayStyle CssClass="rcOutOfRange" />
                <DisabledDayStyle CssClass="rcDisabled" />
                <SelectedDayStyle CssClass="rcSelected" />
                <DayOverStyle CssClass="rcHover" />
                <FastNavigationStyle CssClass="RadCalendarMonthView RadCalendarMonthView_WebBlue" />
                <ViewSelectorStyle CssClass="rcViewSel" />
                <DayStyle CssClass="DayStyle" />
            </telerik:RadCalendar>
        </div>
         
        <telerik:RadAjaxPanel ID="JustOnePanel" runat="server">
 
            <div class="ContentRight">
                <p>
                    <div style="margin-top: 34px; margin-left: 15px;">
                        <telerik:RadButton  runat="server" ID="btnSave" Text="Save On Call Selection" OnClick="btnSaveChanges_Click" >
                            <Icon PrimaryIconLeft="5px" PrimaryIconTop="2px" PrimaryIconUrl="../images/icons/tick.png"  />
                        </telerik:RadButton>
                        <asp:Label ID="lblSaved" CssClass="formLabel" Text="Saved" ForeColor="green" runat="server" />
                    </div>
                </p>
            </div>
 
        </telerik:RadAjaxPanel>
    </div>
</asp:Content>

 

and this is the cs;

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web.UI;
using Ninject;
using Test.Core.Sevices;
using Telerik.Web.UI;
using Telerik.Web.UI.Calendar;
 
namespace ConfigurationModule.rota
{
    public partial class OnCall : Page
    {
        #region Dependency declarations
        [Inject]
        public IResourceService svcResourceService { get; set; }
        [Inject]
        public ICheapSingleUserStorageService svcUser { get; set; }
        #endregion
 
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                lblSaved.Visible = false;
                BindEngineersDropDown();
                SetUpCalendar();
            }
        }
 
        protected void BindEngineersDropDown()
        {
            ddlEngineer.DataSource = svcResourceService.ListByContracts(svcUser.Get().ContractCollection().ToList());
            ddlEngineer.DataBind();
        }
 
        protected void ddlEngineer_SelectedIndexChanged(object sender, EventArgs e)
        {
            lblSaved.Visible = false;
            SetUpCalendar();
        }
 
 
        protected void RadCalendar1_SelectionChanged(object sender, SelectedDatesEventArgs e)
        {
            lblSaved.Visible = false;
        }
 
 
        protected void SetUpCalendar()
        {
            RadCalendar1.RangeMinDate = DateTime.Today;
            RadCalendar1.SpecialDays.Clear();
            RadCalendar1.SelectedDates.Clear();
 
            var onCallList = svcResourceService.GetOnCallList(ddlEngineer.SelectedValue).ToList();
 
            foreach (var rotaOverride in onCallList)
            {
                var calendarDay = new RadCalendarDay { Date = rotaOverride.Date };
 
                 
                if (rotaOverride.TypeId == 2)
                {
                    calendarDay.ItemStyle.CssClass = "rcSelected2";
                    calendarDay.IsSelectable = false;
                    RadCalendar1.SpecialDays.Add(calendarDay);
                }
                else
                {
                    RadCalendar1.SelectedDates.Add(new RadDate(rotaOverride.Date));
                }
 
                 
            }
        }
 
        protected void btnSaveChanges_Click(object sender, EventArgs e)
        {
            List<DateTime> dates = new List<DateTime>();
 
            foreach (RadDate date in RadCalendar1.SelectedDates)
            {
                var d = date.Date;
                dates.Add(d);
            }
 
            svcResourceService.UpdateOnCallList(dates, ddlEngineer.SelectedValue.ToString());
            lblSaved.Visible = true;
        }
 
    }
}

Martin
Top achievements
Rank 1
 answered on 10 Aug 2020
6 answers
153 views

Hi sir,

 

            I use radgrid in that i give MasterTableView in that datakeynames and clientdatakeynames some time it show error like this"Cannot read property 'get_dataItems' of null". once i clear the temp file and run again it work. After 2 days it show some error again. I need solution for this ASAP.

M Kumar
Top achievements
Rank 1
Iron
Iron
Veteran
 answered on 10 Aug 2020
3 answers
381 views
Hi,

I need to send an Email containing some information and also 3 RadGrid's. I would like to paste them in the body of email (not attached) in the same way that they are in the software (skin style) but with no paging / buttons and also with hierarchy expanded.

Thanks for your help,

Vinicius
Doncho
Telerik team
 answered on 07 Aug 2020
6 answers
633 views

 The way the button is setup, is that there are a couple of rad buttons inside a rad tree list, of which is in a user control, and the usercontrol is inside a rad wizard, and finally the rad wizard is inside an rad ajax panel. I tested the wizard with the buttons locally on my machine and pushed it online and I have no issues. However, I am getting error emails that it seems to be throwing an error on the rad button, with a couple of other users. So far I only received two of the errors in the control. So I am unsure as to why it would be throwing an error. Would any one know why it worked for me but it threw these errors on a couple of users?

Here are a couple of the stack trace errors:

System.ArgumentException: Invalid object passed in, ':' or '}' expected. (181): {"text":"Add","value":"","checked":false,"target":"","navigateUrl":"","commandName":"AddTag","commandArgument":"","autoPostBack":true,"selectedToggleStateIndex":0,"validationGroup"% at System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializeDictionary(Int32 depth) at System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializeInternal(Int32 depth) at System.Web.Script.Serialization.JavaScriptObjectDeserializer.BasicDeserialize(String input, Int32 depthLimit, JavaScriptSerializer serializer) at System.Web.Script.Serialization.JavaScriptSerializer.Deserialize(JavaScriptSerializer serializer, String input, Type type, Int32 depthLimit) at Telerik.Web.UI.RadButton.LoadPostData(String postDataKey, NameValueCollection postCollection) at System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

 

Here's another one :

System.ArgumentException: Unterminated string passed in. (29): {"text":"Add","value":"","che at System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializeString() at System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializeMemberName() at System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializeDictionary(Int32 depth) at System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializeInternal(Int32 depth) at System.Web.Script.Serialization.JavaScriptObjectDeserializer.BasicDeserialize(String input, Int32 depthLimit, JavaScriptSerializer serializer) at System.Web.Script.Serialization.JavaScriptSerializer.Deserialize(JavaScriptSerializer serializer, String input, Type type, Int32 depthLimit) at Telerik.Web.UI.RadButton.LoadPostData(String postDataKey, NameValueCollection postCollection) at System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Vessy
Telerik team
 answered on 07 Aug 2020
2 answers
306 views

Hi

We need to download version 2014.3.1209 of Telerik UI for ASP.NET AJAX, as we're working on an app from a client which is using that version.

Under download software i only see a few version, is there a way to get this specific version at all?

 

Thanks

Richard
Top achievements
Rank 1
 answered on 06 Aug 2020
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?