Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
78 views
Is there an event that fires when the ContentURL changes or finishes loading?
Niko
Telerik team
 answered on 22 Feb 2011
4 answers
146 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
2 answers
515 views
Hello, let's say I have a RadTextBox and a RadButton
with CSS:
.Control
{
    Width: 100%;
}
If I apply to both RadTextBox and RadButton ( CssClass="control" ), the RadTextBox will not expands to the maximum width, althought RadButton does, but the background image from RadButton's default style is gone.
When I try to set Width="100%" within the control, it work prefectly.
You can see the screenshot from the attachment, the first two control is RadTextBox and RadButton with CSS width 100% applied, the third and fourth control is Asp.Net's default TextBox and Button control with CSS width 100% applied.

I wonder if this an issue and have been fixed? Or just that the way I applied was wrong?
Since I haven't update my Telerik Componet since November.

Thanks
King Chan
Top achievements
Rank 1
 answered on 22 Feb 2011
3 answers
194 views
Hi Telerik Team !

Most of our users are using IE6, but we would like to use the Embedded Icons as available in RadButton. The Icons doesn't display well. Is there is any know remedy ?

Cheers,

S.F.
Sébastien
Top achievements
Rank 2
 answered on 22 Feb 2011
5 answers
774 views
Dear Telerik Team,

I am actually migrating the asp:button to telerik:radbutton and some logic doesn't work as expected.
For example, It was easy to use things like that to click a button using jQuery : 

function keyboardActions(event) {
    if (event.keyCode == 13) {
 
        eval($("#<%=btnSearch.ClientID %>").trigger('click')); // Doesn't work with RadButton Q3.2010
        return false;
    }
    //  other keypressed other actions ?
}
 
// If the client press ENTER, the Search button is clicked.
$(document).ready(function () {
    if ($.browser.mozilla) {
        $("#<%=txtName.ClientID %>").keypress(keyboardActions);
        $("#<%=txtCode.ClientID %>").keypress(keyboardActions);
     } else {
        $("#<%=txtName.ClientID %>").keydown(keyboardActions);
        $("#<%=txtCode.ClientID %>").keydown(keyboardActions);
    }
});

How may I do the same logic using RadButton ?

Cheers,

S.F.
Sébastien
Top achievements
Rank 2
 answered on 22 Feb 2011
3 answers
192 views

Hello,

I am displaying several RadSliders within a RadListView inside of a 'load on demand' RadTabStrip, and I am getting a rendering issue with the RadSlider on all browsers.

After my ‘compatibility’ tab loads the RadSliders look as you see them in ImageA.  You will notice that I have placed one test RadSlider outside of the RadListView which also displays incorrectly.

If I click on my ‘profile’ tab and then back to my ‘compatibility’ tab the RadSliders will display correctly and as expected in ImageB.

Does anyone know how to correct this issue?

Best regards,

~Dean

Dean
Top achievements
Rank 1
 answered on 22 Feb 2011
2 answers
310 views
Hello,
I'm using a userControl as an editForm for my radGrid. In the said editForm, I have a bunch of other userControl with contains custom radComboBox. I'm trying to add server-side SelectedItemChanged event to those comboBox, but the event never gets fired. Here's the way I'm adding the event:

dataComboBox.SelectedIndexChanged += new RadComboBoxSelectedIndexChangedEventHandler(this.dataComboBox_SelectedItemChanged);

Since I use those userControl elsewhere, I know that the syntax isn't the issue. I tried to add the event withing my editForm userControl at a bunch of different place, such as in DataBinding and OnInit event. I also tried to add the event in the ItemDataBound event of my radGrid without any success. How or where can I add my SelectedItemChanged?

Thank you for your help,
LP
Louis-Philippe
Top achievements
Rank 1
 answered on 22 Feb 2011
2 answers
215 views
Hello,
I have a page containing two radGrid, one of them using a userControl as an editForm. When the user click on the update button, I have no trouble accessing the data from the UpdateCommand event. But, if the user click on the other radGrid, I need to exit edit mode, so I whant to do some verification and update the data if needed, but I can't find a way to access the user control containing the data. Since I was accessing the data from ItemDataBound and UpdateCommand this way
UserControl scheduleApprobationEditForm = e.Item.FindControl(GridEditFormItem.EditFormUserControlID) as UserControl;
I tried to access the data using the same idea from outside of my grid's events
UserControl userControl = (UserControl)_radg.EditItems[0].FindControl(GridEditFormItem.EditFormUserControlID);
But userControl stays null. I can access the item been edited as a GridEditableItem, but I haven't found a way to extract my userControl from it. So how can I access the userControl representing my editForm from anywhere in my code?

Thank you for your help,
LP
Louis-Philippe
Top achievements
Rank 1
 answered on 22 Feb 2011
3 answers
195 views
I am using VS 2008 trying to access SQL server 2005.  When trying to setup a database connection I get the following error:

Could not load file or assembly 'Microsoft.SqlServer.Management.Sdk.Sfc, Version=10.0.0.0, Culture=neutral, PublicKey Token=89845dcd8080cc91' or one of its dependecies.  The system cannot find the file specified.

It seems that this used to work before installing the Telerik controls or maybe it's just been a while since I've done this.  Thanks for any help.

Joe Weber
Top achievements
Rank 2
 answered on 22 Feb 2011
2 answers
149 views
Hi there,

In my appointment context menu, I have a delete menu item that I would like to cancel if the user does not confirm that they are sure they want to delete this item.  However, the args argument for OnClientAppointmentContextMenuItemClicked does not seem to have a "set_cancel" method in the same way as is the case on the OnClientAppointmentDeleting.  Here is what I am trying to do:

function onAppointmentContextMenuItemClicked(sender, args) {
    switch (args.get_item().get_value()) {
        case "CommandDelete":
            if (args.get_appointment().get_id().startsWith('booking'))
                type = "booking";
            else if (args.get_appointment().get_id().startsWith('fixture'))
                type = "fixture"; 
            if (!confirm("Are you sure you want to delete this " + type)) {
                args.set_cancel(true);
            }
            break;
    }
}

There is no set_cancel event on the args object, so I can't see how to cancel the callback to the server.  Can you tell me how I can cancel it?
Matthew
Top achievements
Rank 1
 answered on 22 Feb 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?