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

I need some suggestions/ideas...

I use a RadComboBox with "EnableLoadOnDemand=true" and a web service. With these settings I cannot change the value of the property "AllowCustomText": it cannot be different from true as explained here:  http://www.telerik.com/help/aspnet-ajax/cannot-disable-allowcustomtext-load-on-demand.html.

The problem that I have is that the combo box displays a closed list, which means that it should not allow the user to select a value which is not in that list. But with the "AllowCustomText = true", nothing prevents the user from doing this. 

What can I do to tell the user that he/she has entered something not allowed ? Has anybody some ideas to do something nice in that case ?

I like what is done here http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/autocompleteclientside/defaultcs.aspx when "AllowCustomText = false" : the user cannot enter letters when there is no match in the combo box. 

Note that I have tried what is proposed in the above link but this is not OK since there is no call to the web server when the user enter some text in the combo box. 

Thierry
Cori
Top achievements
Rank 2
 answered on 01 Dec 2010
6 answers
119 views
Hi,
I'm using Telerik Ajax Manager/RadAjaxPanel/RadAjaxLoadingPanel inside SharePoint 2010 Webparts.

The problem is that the AjaxLoadingPanel is displayed just after the second request.
In the first request the website loads normal without any LoadingPanel.

How can I fix this error ?

Thanx and regards
Stephan
USI
Top achievements
Rank 1
 answered on 01 Dec 2010
2 answers
108 views
HI,

I am facing a JavaScript error in my RadTabStrip and am not able to make head or tails of it. Help! This is what I am trying to achieve.

WebPage  (Has RadAjaxManagerProxy and no JavaScript)
RadTabStrip
---Tab 1
------User entry Input Boxes
------Next and Previous Navigation buttons
---Tab 2
------Custom User Control containing RadListView (This control has RadAjaxManagerProxy and no JavaScript)
------Next and Previous Navigation buttons

Idea is that User cannot directly go to Tab2 (Tab disabled) unless Tab1 is filled and validated. To go to Tab2 User will have to click on the Next button on Tab1. On the Tab1, Next button click I call the following code:

int selectedIndex = RadTabStrip1.SelectedIndex;
RadTabStrip1.Tabs[selectedIndex+1].Selected = true;
RadMultiPage1.SelectedIndex = selectedIndex + 1;

The problem is that I get a general JavaScript ("undefined is null or not an object") error when ever I click on the Tab1 Next button and the User Control does not render correctly.  However, If I just click on Tab2 then I can see the User control correctly without any error.

Not sure what I am doing wrong and where to look. Please advise.

TIA
Dimitar Terziev
Telerik team
 answered on 01 Dec 2010
6 answers
182 views
Hi There,

I am trying to display a tooltip when a dynamically generated RadMenuItem is hovered over.

I'm using RadToolTipManager and am successfully populating the TargetControls list for each MenuItem using its CliemtID.

However whilst I can display a tool tip when testing with a simple Button the Menu is not triggering the AjaxUpdate at all. I believe this is due to the way the menu items are rendered (without an acutal ID).

I am not currently using a template for my menu and would prefer not to if I can get away with it.

Please let me know if there's a way to do this without templating my menu.

Cheers,

Kate
smriti
Top achievements
Rank 1
 answered on 01 Dec 2010
4 answers
304 views
Hello,

I am trying to create a daily appointment into rad scheduler by using code. As i want to achieve 2 possible scenarios 

a)  create a daily appointment that appears on the rad scheduler on every Monday till the end date of the appointment.
b)  create daily appointment that shows on the scheduler based on the time interval of day for example:- recurrence of appointment after 1,10,15,20,30,100 etc 

although i partially manage to complete the first scenario to recur appointment every monday but it showing only 3 recurrence in month instead of 4 times during the dates between 2/1/1010 and 3/1/2010.  this is my code which i am using to create the appointment can you tell me is i am doing something wrong... 

 DateTime startTime = new DateTime(2010, 2, 1, 9, 0, 0)

   // Creates a recurrence range, that specifies a limit of 4 occurrences for the appointment.
        RecurrenceRange range = new RecurrenceRange();
        range.Start = startTime;
        range.EventDuration = new TimeSpan(1, 0, 0);
        range.MaxOccurrences = 4;
        range.RecursUntil = DateTime.MaxValue;

      // Creates a recurrence rule to repeat the appointment every Monday.
        DailyRecurrenceRule rrule = new DailyRecurrenceRule(RecurrenceDay.Monday, range);
        
        Appointment recurringAppointments = new Appointment("1", Convert.ToDateTime("2/1/2010"), Convert.ToDateTime("3/15/2010"), "Recurring appointment", rrule.ToString(), null, RecurrenceState.Occurrence);
        recurringAppointments.RecurrenceRule = rrule.ToString();

        RadScheduler1.InsertAppointment(recurringAppointments);
        RadScheduler1.DataBind();

Also enclosing the screen shots that shows on 3 recurrence appointment in a month.

For the second scenario i am  doing everything the same just changing the daily recurrence rule  based on days such as 
 DailyRecurrenceRule rrule = new DailyRecurrenceRule(20, range);

 but if i have interval with more than 17 days its not showing recurring appointment... enclosing the second screenshot with filename: RecurrenceByDay for  your reference

Can you also please show me how to create a reference rule for weekly & monthly !

I look forward to hear from you.

Thanks,
Imran 

Peter
Telerik team
 answered on 01 Dec 2010
1 answer
102 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
5 answers
229 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
260 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
231 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
135 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?