Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
236 views
can someone plz tell me how can i get the readOnly property of a column in the client Side?
Ethan
Top achievements
Rank 1
 answered on 01 Dec 2010
1 answer
265 views
Dear Team,

I have a DataTable object containing 4 columns... I want to bind it to RadChart, and I need to display column no.1 that is date column on the x-axis. please tell me complete steps what i need to perform... when I bind datatable it displays series against 2,3,4 th columns but displays 1,2,3,4... on x-axis.
Thanks
Evgenia
Telerik team
 answered on 01 Dec 2010
7 answers
233 views
Hi, i downloaded the trial and copied the FlashManager.asCx provided in ../EditorDialogs/ and then i tried to customize it. Having solved all "localization" errors, i still get the following error (using the provided sourcecode):

Sys.ArgumentUndefinedException: Value cannot be undefined. Parameter name: type

I'm using Telerik.Web.UI , Version 5.2.0.0__1f131a624888eeed.

I need to change the behaviour of the flashmanager dialog, because i want to have other html code generated (embedding flash object using swfobject...)

EDIT:

continued debugging and found the line which causes the error (l. 2705):
2690var $create = Sys.Component.create = function Sys$Component$create(type, properties, events, references, element) {
2691 /// <summary locid="M:J#Sys.Component.create" />
2692 /// <param name="type" type="Type"></param>
2693 /// <param name="properties" optional="true" mayBeNull="true"></param>
2694 /// <param name="events" optional="true" mayBeNull="true"></param>
2695 /// <param name="references" optional="true" mayBeNull="true"></param>
2696 /// <param name="element" domElement="true" optional="true" mayBeNull="true"></param>
2697 /// <returns type="Sys.UI.Component"></returns>
2698 var e = Function._validateParams(arguments, [
2699 {name: "type", type: Type},
2700 {name: "properties", mayBeNull: true, optional: true},
2701 {name: "events", mayBeNull: true, optional: true},
2702 {name: "references", mayBeNull: true, optional: true},
2703 {name: "element", mayBeNull: true, domElement: true, optional: true}
2704 ]);
2705 if (e) throw e;

EDIT II:
I should mention that I only copied "FlashManger.asCx" to my external Dialogs folder. Is it needed to have other controls in the same directory?

EDIT III:
Screenshot (attachment)

EDIT IV:
Just exchanged the whole source code from FlashManager.ascx with InsertLink.ascx and I still get the same problems
Sys.ArgumentUndefinedException: Value cannot be undefined. Parameter name: type

Thanks in advance,

Stephan
Dobromir
Telerik team
 answered on 01 Dec 2010
1 answer
141 views
Hi..

I Am using  Rad Scheduler in my web application. 

I have almost done with the basic functionality, But i have a issue that is I want to display the Different value in the Subject, Description and i want an extra value using that i want to set the the CSS for the Appointment.


such as  
SubjectId="1"
Subject = "Task"
Description = "This is a Task."
TypeId= 1

SubjectId="10"
Subject = "TroubleTicket"
Description = "This is a TroubleTicket."
TypeId= 2

so on radsch_AppointmentDataBound() event
I am checking  following condition.
 
if( e.Appointment.TypeId==1)
            {
                e.Appointment.CssClass = "rsCategoryYellow";
            }
            else if (e.Appointment.TypeId== 2)
            {
                e.Appointment.CssClass = "rsCategoryRed";
            }
            else 
            {
                e.Appointment.CssClass = "rsCategoryGreen";
            }           

-- right now i have used in subectid (Following code)

if( e.Appointment.Subject == Convert.ToString((int)EventType.Task))
            {
                e.Appointment.CssClass = "rsCategoryYellow";
            }
            else if (e.Appointment.Subject == Convert.ToString((int)EventType.TroubleTicket))
            {
                e.Appointment.CssClass = "rsCategoryRed";
            }
            else 
            {
                e.Appointment.CssClass = "rsCategoryGreen";
            }           

-- also I m attaching my code to.

Aspx
 <telerik:RadScheduler ID="radschMyCalendar" runat="server" Width="100%" DataKeyField="PrimeId"
                    DataStartField="StartDateTime" StartEditingInAdvancedForm="true" DataEndField="DueDateTime"
                    DataSubjectField="TypeId" DataDescriptionField="Description" ShowAllDayRow="true"                    
                    Culture="en-US" Height="100%" SelectedView="MonthView" AllowDelete="false" FirstDayOfWeek="Monday"
                    LastDayOfWeek="Sunday" OnAppointmentDataBound="radschMyCalendar_AppointmentDataBound">
                    <MultiDayView UserSelectable="false" />
                    <AdvancedForm Modal="true" />
                    <TimelineView UserSelectable="false" />
                    <AppointmentContextMenuSettings EnableDefault="true" />
                    <AppointmentTemplate>
                        <div>                            
                            <%# Eval("Subject").ToString().Replace(",", "<br/>")%>
                        </div>
                    </AppointmentTemplate>                   
                </telerik:RadScheduler>

aspx.cs

 if (objMyCalendarList != null)
            {
                radschMyCalendar.DataSource = objMyCalendarList;
                objMyCalendarList = objMyCalendarList.FindAll(delegate(MyActivityBE obj) { return obj.StartDateTime < obj.DueDateTime; });
                radschMyCalendar.DataBind();
            }
            else
            {
                radschMyCalendar.DataSource = null;
                radschMyCalendar.DataBind();
            }    


protected void radschMyCalendar_AppointmentDataBound(object sender, SchedulerEventArgs e)
        {
            e.Appointment.ToolTip = e.Appointment.Description;

            RadScheduler radschMyCalendar = (RadScheduler)sender;
         
            if( e.Appointment.Subject == Convert.ToString((int)EventType.Task))
            {
                e.Appointment.CssClass = "rsCategoryYellow";
            }
            else if (e.Appointment.Subject == Convert.ToString((int)EventType.TroubleTicket))
            {
                e.Appointment.CssClass = "rsCategoryRed";
            }
            else 
            {
                e.Appointment.CssClass = "rsCategoryGreen";
            }           

            e.Appointment.ToolTip = e.Appointment.Description;
            
        }


---
I have also attached some images..
So anyone can tell me that how can i able to get this functionality..

Thanx in advance.
Peter
Telerik team
 answered on 01 Dec 2010
2 answers
60 views
Hi,

I'm using the RadTabStrip on a DotNetNuke (DNN) environment. Is it possible to hide the child tabs (subpages) from  the RadTabStrip with a property in the .ascx or client-side through JavaScript (I don't have direct acces to the code-behind file)? 

Kind regards,
Stijn Vanderstraeten

edit: I forgot to mention I currently use:
.RadTabStrip_DNNTopMenu .level2 ul
{
    display:none;
}
 
.RadTabStrip_DNNTopMenu .level2 li a
{
    display:none;
}
 
.RadTabStrip_DNNTopMenu .level2 li a.selected,
.RadTabStrip_DNNTopMenu .level2 li a.selected:hover,
.RadTabStrip_DNNTopMenu .level2 li a:hover
{
    display:none;
}
Stijn
Top achievements
Rank 1
 answered on 01 Dec 2010
5 answers
221 views
Right, this is doing my head in.

I've extended a RadDatePicker to enable a pair of them to link up and essentially set the Min and Max dates of each other.  Problem is that its not being persisted on postback.  Like a custom user control which hasn't been saved in ControlState.  Thing is, I can't see how to persist it...

Code for PairedRadDatePicker.cs:
using System;
using System.Web;
using Telerik.Web.UI;
using System.Web.UI.WebControls;
using System.ComponentModel;
using System.Web.UI;
 
namespace Sonic.Infrastructure
{
    public enum PairedMinMax { GreaterThan, GreaterThanOrEqual, LesserThan, LesserThanOrEqual }
 
    public class PairedRadDatePicker : RadDatePicker
    {
        public string PairedControlID { get; set; }
        public PairedMinMax PairedOperator { get; set; }
 
        public override string UniqueID
        {
            get { return this.ID; }
        }
 
        public override string ClientID
        {
            get { return this.ID; }
        }
 
        protected override void OnLoad(EventArgs e)
        {
            if (PairedControlID != null && PairedControlID != string.Empty)
            {
                this.ClientEvents.OnDateSelected = "function(){itsMinMaxRadDatePicker('" + this.ClientID + "', '" + PairedControlID + "', '" + PairedOperator.ToString() + "');}";
 
                if (!Page.ClientScript.IsClientScriptIncludeRegistered("PairedRadDatePicker"))
                {
                    Page.ClientScript.RegisterClientScriptInclude("PairedRadDatePicker", "/Scripts/PairedRadDatePicker.js");
                }
            }
        }
 
    }
}
 And they are added to the page like so:

<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/FormMasterPage2.master" AutoEventWireup="true" CodeBehind="AcademicYearEdit.aspx.cs" Inherits="Sonic.Infrastructure.AcademicYearEdit" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<%@ Register Assembly="Sonic" Namespace="Sonic.Infrastructure" TagPrefix="sonic" %>
 
<asp:Content ID="Content3" ContentPlaceHolderID="MainContentPlaceHolder" runat="server">
 
<p><sonic:PairedRadDatePicker ID="PairedDatePicker1" PairedControlID="PairedRadDatePicker2" SelectedDate="2010/05/06" PairedOperator="LesserThan" runat="server" /></p>
 
<p><sonic:PairedRadDatePicker ID="PairedRadDatePicker2" PairedControlID="PairedDatePicker1" PairedOperator="GreaterThan" runat="server" /></p>
 
<asp:Button ID="btnSave" OnClick="btnSave_Click" Text="save" runat="server" />
 
<asp:Label ID="lblDates" runat="server" />
 
</asp:Content>

And the routine for the button in the page code behind:
protected void btnSave_Click(object sender, EventArgs e)
{
    DateTime? st_date = PairedDatePicker1.SelectedDate;
    lblDates.Text = st_date.ToString();
}

On a normal web page, postback isn't a problem.  On a Master/Content page, values are lost on postback.

I've done loads of user controls, loading and retrieving properties in ControlState.  But this is different, I'm extending the RadDatePicker class and I can't see how to persist it.

Any pointers please?

kitster
Kit
Top achievements
Rank 1
 answered on 01 Dec 2010
5 answers
115 views
Is it possible to bind and Olap Cube with telerik radGrid? if there is any option for the same, please let me know?
Nathan
Top achievements
Rank 1
 answered on 01 Dec 2010
8 answers
821 views
Hai All,

How can i add rows dynamically in RadGrid
and can also delete any row in that grid not in database..
Pls...
Radoslav
Telerik team
 answered on 01 Dec 2010
7 answers
262 views
Hi Telerik team

The following is my code snippet. what I want to achieve is when I copied the code snippet into editor html view and switch back to design view, it keeps everything same as I copied. I found it's very very hard to achieve that. Here are two scenarios I tested
1)
If I turn off the ContentFilters, most of the html tag & attriburte has just been upper-cased, and double quote has been removed, even my original code has "double quote" and html tag is lower-case. I guess there must be some magic things done by telerik editor. 

2) If I enable the default ContentFilters, then editor works most correctly, but it does some smart things which I don't need. e.g. align="right" will be changed to style="float:right".Because we are the email marketing company, we need to make sure our email is compatible for most of the email client. The style element can't be rendered by outlook2007 correctly. 
<img name="designtime" align="right" alt="Digg" src="../../../App_Themes/Modern/images/Icons/32x32/socialnetworking/digg_32.png" />

Please give some help, heaps of thanks.

Vincent
Rumen
Telerik team
 answered on 01 Dec 2010
3 answers
67 views
I've been using RadEditor version 7.x for several years now and have just upgraded to Q2 2010 release.
I was using SaveInFile property but now cannot find a documentation on how to do the same thing with Q2 2010.
Please point me in the right direction. thanks
Rumen
Telerik team
 answered on 01 Dec 2010
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
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
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?