Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
85 views
I have two tabs on a page; the tabs are being created with JavaScript.  The first tab displays a repeater of events, the second tab is suppose to show the month view with the events using the RadScheduler.  When you first go to the page the first tab loads fine then you click on the tab to show the RadScheduler and nothing appears - if you refresh the browser the RadScheduler appears.  Is there some kind of page load event I should add or should I preload something?  This appears to be happening in these browsers IE, Firefox and Chrome (the only ones I tested with).

Any help or advice is greatly appreciated.

Thanks!
Nicole
Nicole
Top achievements
Rank 1
 asked on 22 Feb 2011
4 answers
485 views
Hi Team,

       Now, i'm old project control are replacing with telerik control. I have face with this problem. I call a rad window, after that how can i call a code behind function. Actual i want to call Rad Menu control server side function and link button. Kindly, please advice to me, it is need urgent.

Best Regards,
ALEX
Top achievements
Rank 1
 answered on 22 Feb 2011
3 answers
198 views
Hi ,
I would like to write some custom client code when radgrid columns are resized on the client. But there seems to be some event bubbling after my custom code works which renders my changes useless. Is there some way where I can specify cancelBubble = true for this onColumnResizing event?

Any help would be appreciated.
Kind Regards,
Paul

Vasil
Telerik team
 answered on 22 Feb 2011
0 answers
132 views
Hi,
Im using this RadTreeview when i click on the expand button to view the child nodes the font of the child nodes are increasing for each node.
Ex:
Root(xx-small)
- Child1(x-small)
  -Child1-1(Small)
   - child1-1-1(Medium)
I want to display everything in xx-small font.

<div style="font-size: xx-small">
                  <telerik:RadTreeView ID="rtvTreeView" CheckBoxes="true" runat="server"
                      Font-Size="XX-Small" OnNodeExpand="rtvTreeView_NodeExpand"
                      EnableDragAndDrop="True" EnableDragAndDropBetweenNodes="True"
                      OnNodeDrop="rtvTreeView_NodeDrop">
                      <CollapseAnimation Type="InQuint" Duration="100"></CollapseAnimation>
                      <ExpandAnimation Duration="100" Type="None"></ExpandAnimation>
                  </telerik:RadTreeView>
              </div>

 
win
Top achievements
Rank 1
 asked on 22 Feb 2011
1 answer
26 views
Hi,

I'm looking for a sample to edit title bar as described here Dock / Edit Title just for programmatically created Docks. How can I achieve this?

Thanks
Pero
Telerik team
 answered on 22 Feb 2011
3 answers
165 views
I have an ItemTemplate defined for my RadListBox. My list box is bound to the results of a Linq to SQL Query. In this case, it's bound to objects of type MyObject.

I'd like to be able to add a new RadListIBoxItem defined by the user. Ideally, I'd like to create a new MyObject instance and call myListBox.Items.Add(new RadListBoxItem(myNewObject)). This would then create a new item and bind the values in the ItemTemplate appropriately.

Of course, this isn't an option. I can only pass a text and value to the new RadListBoxItem, and this of course won't map to many of the controls in my ItemTemplate.

So what's the correct approach here? Is this simply the wrong control to use?
Dimitar Terziev
Telerik team
 answered on 22 Feb 2011
2 answers
114 views
I am applying a theme to RadTab strip and I isolated the problem to a snippet of code in css file:

.RadTabStrip

 

 

.rtsLevel1 .rtsLink

 

{

 

 

background-image: url('TabStrip/office2007.gif');

 

 

 

 

background-color: transparent;

 

 

 

 

background-repeat: no-repeat;

 

 

}

on running, the application appears as in the attached file, with the text running out of the tab shape. Is there any solution to this?

Alex Fefer
Top achievements
Rank 1
 answered on 22 Feb 2011
4 answers
91 views
I am hoping someone can solve my issue with the colorpicker.  I need to add a colorpicker icon to the radpanelbar but all it seems to do is display the icon on its initial load (even outside the scrolling region) and when the scroll bar is moved, the colorpicker icons remain in place.

I have started with the demo of the Scheduler / First Look which shows on the left side of the splitter, 2 stacked calendars and a radPanelBar with selectable "Team Calendars" and "My Calendar".  I have a replaced the existing radPanelBar of the demo with mine as follows:

<telerik:RadPanelBar id="rpbMyCalendars" runat="server" width="220px" ExpandMode="MultipleExpandedItems"
PersistStateInCookie="true" CookieName="xyzMyCalendarPanelBarCookie"/>


I have isolated a bit of test code to populate this radPanelBar by calling the function testLoad() during Page Load:

protected void testLoad()
{
    rpbMyCalendars.Items.Clear();
    createPanel(1, 8);
    createPanel(2, 8);
}
 
protected void createPanel(int panelNum, int count)
{
    var rpiRoot = new RadPanelItem("Root Panel " + panelNum);
    rpbMyCalendars.Items.Add(rpiRoot);
 
    for (var i = 1; i < count; i++ )
    {
        var rpiSub = new RadPanelItem("");
        rpiRoot.Items.Add(rpiSub);
 
        var literal = new Literal
        {
            Text = "<div title='Sub Panel " + i + "'>Sub Panel " + i + "</div>",
            ID = "tx_" + i,
        };
        rpiSub.Controls.Add(literal);
 
        var cp = new RadColorPicker
        {
            ID = "cp_" + i,
            ShowIcon = true,
            SelectedColor = Color.FromArgb(i * 0x100 + i * 0x10 + i),
            PaletteModes = PaletteModes.HSB,
            AutoPostBack = true
        };
        cp.ColorChanged += cpMyCalendar_OnColorChanged;
        rpiSub.Controls.Add(cp);
    }
}

This works just fine under IE8, Google Chrome, Firefox and Safari.  But under IE7, I get rendering issues of the colorpicker icon as show in the attached picture.  When I scroll the left side, the colorpicker icons remain where they were initially rendered.

I attempted to add the style rule "position:relative" to the owning parent(s) but all this did was make the parent exhibit the same behavior as the icon.

Thanks in advance for helping me out on this.

Ed
Ed
Top achievements
Rank 1
 answered on 22 Feb 2011
1 answer
55 views
Is there an event that fires when the ContentURL changes or finishes loading?
Niko
Telerik team
 answered on 22 Feb 2011
4 answers
121 views
Hello Telerik family.

I am tring to use scheduler component in a mvc project.
here there is my view :

<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>
<%@ Register Assembly="RadSchedulerDemo" Namespace="RadSchedulerDemo.Helpers" TagPrefix="cc1" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<script runat="server">
    //needed to run RadScheduler without <form> tag
    public override void VerifyRenderingInServerForm(Control control) {
        //base.VerifyRenderingInServerForm(control);
    }
</script>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Index
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <telerik:RadScriptManager runat="server" ID="RadScriptManager1">
    </telerik:RadScriptManager>
 
    <!-- to allow for user authentication, a custom control needed to be created to handle
            the ASPXAUTH cookie during the GetResources call.  see
            and relevant code in Helpers\MyScheduler.cs
    -->
    <cc1:MyScheduler ID="MyScheduler1" runat="server" SelectedView="WeekView" StartInsertingInAdvancedForm="true"  AppointmentStyleMode="Default" 
        StartEditingInAdvancedForm="true">
        <AdvancedForm Enabled="true" Modal="true" />
        <WebServiceSettings Path="~/SchedulerService" ResourcePopulationMode="ServerSide" UseHttpGet="false" />
    </cc1:MyScheduler>
</asp:Content>

And here there is the override of teh GetAppointments from SchedulerProviderBase in my implementation of the WebServiceAppointmentController



public override IEnumerable<Appointment> GetAppointments(RadScheduler owner)
        {
            List<Appointment> list = new List<Appointment>();
            AppointmentDS.SchedarioDataTable dt = null;
            DateTime star;
            DateTime end;
            Dictionary<DateTime, List<Appointment>> dic = new Dictionary<DateTime, List<Appointment>>();
 
            int ora = 9;
            int cont = 0;
 
            try
            {
                dt = dal.getSchedarioDT(DateTime.Today, DateTime.Today.AddDays(-7), DateTime.Today.AddDays(7));
                foreach (AppointmentDS.SchedarioRow row in dt)
                {
 
                    Appointment item = owner.CreateAppointment();
 
                    item.ID = row.STR_Id;
                    if (row.IsTIS_NomeNull())
                        item.Subject = "";
                    else
                        item.Subject = row.TIS_Nome;
 
                    star = new DateTime(row.PST_DataScadenza.Year, row.PST_DataScadenza.Month, row.PST_DataScadenza.Day,0,0,0);
                    end = new DateTime(row.PST_DataScadenza.Year, row.PST_DataScadenza.Month, row.PST_DataScadenza.Day, 0, 0, 0);
                     
                    item.Start = star.ToUniversalTime();
                    item.End = end.ToUniversalTime();
 
                    item.BackColor = System.Drawing.Color.Yellow;
                    item.CssClass = "testtest";
 
                    list.Add(item);
 
                }
 
               

                 
            }
            catch (Exception ex)
            {
                 
                throw;
            }
            return list;
 
        }
How you can see I use the item.BackColor = System.Drawing.Color.Yellow;
But it don't take effect in the View.

Samebody can help me please?

Thanks a lot                   

Peter
Telerik team
 answered on 22 Feb 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?