Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
254 views
We've developed a tool for a client of ours that uses the radScheduler control so they can make plans for their consultants for the future.

However, we've received a call today to say that they cannot view data beyond 1 year into the future. I've done some testing, and noticed that the end date is indeed 365 days from today (today being 21st May 2013 - EndDate is 21st May 2014) , and it's read only. If I set the StartDate of the timeline view to be after this (30th June 2014), the radScheduler control only shows data up to the TimeLineView EndDate and not beyond.

How can I get around this, and force the radScheduler control to show data beyond 365 days from a given date?

We are using an older version of the control, but you have removed other controls we use (such as RadPanelBar) so upgrading will be a major pain.

Karl

Boyan Dimitrov
Telerik team
 answered on 05 Sep 2013
5 answers
122 views
Hi, 
I'm loading appointments to scheduler using: 
<WebServiceSettings Path="~/Webservices/Scheduler.asmx" ResourcePopulationMode="ServerSide" />

This is my scheduler.asmx.cs
public class MySchedulerInfo : SchedulerInfo
    {
        private int _hubID;
        public int HubID
        {
            get { return _hubID; }
            set { _hubID = value; }
        }
        private int _orderID;
        public int OrderID
        {
            get { return _orderID; }
            set { _orderID = value; }
        }
        private string _date;
        public string Date
        {
            get { return _date; }
            set { _date = value; }
        }
    }
 
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [System.ComponentModel.ToolboxItem(false)]   
    [System.Web.Script.Services.ScriptService]
    public class Scheduler : System.Web.Services.WebService
    {
        private WebServiceAppointmentController _controller;
 
        /// <summary>
        /// The WebServiceAppointmentController class is used as a facade to the SchedulerProvider.
        /// </summary>
        private WebServiceAppointmentController Controller
        {
            get
            {
                if (_controller == null)
                {
                    _controller = new WebServiceAppointmentController("MyDBSchedulerProvider");
 
                }
                return _controller;
            }
        }
 
        [WebMethod(EnableSession=true)]
        //public IEnumerable<AppointmentData> GetAppointments(SchedulerInfo schedulerInfo)
        public IEnumerable<AppointmentData> GetAppointments(MySchedulerInfo schedulerInfo)
        {
            //
            Session["schHubID"] = schedulerInfo.HubID;
            Session["schDate"] = schedulerInfo.Date;
            Session["schOrderID"] = schedulerInfo.OrderID;
            return Controller.GetAppointments(schedulerInfo);
        }
 
 
         [WebMethod(EnableSession = true)]
        //public IEnumerable<AppointmentData> UpdateAppointment(SchedulerInfo schedulerInfo, AppointmentData appointmentData)
        public IEnumerable<AppointmentData> UpdateAppointment(MySchedulerInfo schedulerInfo, AppointmentData appointmentData)
        {
            Session["schHubID"] = schedulerInfo.HubID;
            Session["schDate"] = schedulerInfo.Date;
            Session["schOrderID"] = schedulerInfo.OrderID;
            return Controller.UpdateAppointment(schedulerInfo, appointmentData);
        }
 
        #region not used
        [WebMethod]
        public IEnumerable<AppointmentData> InsertAppointment(SchedulerInfo schedulerInfo, AppointmentData appointmentData)
        {
            return Controller.InsertAppointment(schedulerInfo, appointmentData);
        }
 
        [WebMethod]
        public IEnumerable<AppointmentData> CreateRecurrenceException(SchedulerInfo schedulerInfo, AppointmentData recurrenceExceptionData)
        {
            return Controller.CreateRecurrenceException(schedulerInfo, recurrenceExceptionData);
        }
 
        [WebMethod]
        public IEnumerable<AppointmentData> RemoveRecurrenceExceptions(SchedulerInfo schedulerInfo, AppointmentData masterAppointmentData)
        {
            return Controller.RemoveRecurrenceExceptions(schedulerInfo, masterAppointmentData);
        }
 
        [WebMethod]
        public IEnumerable<AppointmentData> DeleteAppointment(SchedulerInfo schedulerInfo, AppointmentData appointmentData, bool deleteSeries)
        {
            return Controller.DeleteAppointment(schedulerInfo, appointmentData, deleteSeries);
        }
        #endregion
 
       [WebMethod(EnableSession = true)]
        public IEnumerable<ResourceData> GetResources(MySchedulerInfo schedulerInfo)
        {
            Session["schHubID"] = schedulerInfo.HubID;
            return Controller.GetResources(schedulerInfo);
        }
    }

Within MyDBSchedulerProvider:
public class MyDbSchedulerProvider2 : DbSchedulerProviderBase
    {
        #region get Vans
        private IDictionary<int, Resource> _vans;       
 
        private IDictionary<int, Resource> Vans
        {
            get
            {
                bool load = false;
                if (_vans == null)
                {
                    load = true;
                }
                if (!load)
                {
                    //if (_vans.Count == 0)
                        load = true;
                }
                if (load)
                {
                    _vans = new Dictionary<int, Resource>();
                    foreach (Resource van in LoadVans()) <---NEED TO PASS PARAM HERE
                    {
                        _vans.Add((int)van.Key, van);
                    }
                     
                }
 
                return _vans;
            }
        }
        public override IEnumerable<ResourceType> GetResourceTypes(RadScheduler owner)
        {
            ResourceType[] resourceTypes = new ResourceType[1];
            resourceTypes[0] = new ResourceType("Van", false);
            return resourceTypes;
        }

 I'm loading my resources (Vans), but I need to be able to pass a parameter (HubID) from my aspx to allow me to load the right resources.. I've tried doing this via "Session["schHubID"] = schedulerInfo.HubID;"
#region LoadVans
        private IEnumerable<Resource> LoadVans()
        {
            List<Resource> resources = new List<Resource>();
            int hubID = (int)HttpContext.Current.Session["schHubID"];
DO the load based on hubID


I'm no having much luck passing the param to the session... any ideas?

using Version 2010.1.309.35
Thanks

Boyan Dimitrov
Telerik team
 answered on 05 Sep 2013
3 answers
101 views
Hi
I use RadSkinManager to apply mycustom skin on every controls in my web application.
I add RadSkinManager in OnInit event in my PageBase.
I would like to do this...
MySkinManager.TargetControls.Add(ControlTypeToApplySkin.RadTreeViewContextMenu, mythema);

But ControlTypeToApplySkin
doesn't contain RadTreeViewContextmenu.
I tried to add RadContextMenu but it doesn't work.
Any suggestion?
Thank you
Boyan Dimitrov
Telerik team
 answered on 05 Sep 2013
2 answers
114 views
Hello All,
              I have code of rad date picker in aspx page like:
<td style="vertical-align: middle">
                                        <telerik:RadDatePicker ID="FromDate" runat="server" AutoPostBack="false" Calendar-AutoPostBack="false"
                                            Culture="English (United States)" SelectedDate="2011-10-01" Width="120px">
                                            <ClientEvents OnDateSelected="FromDateSelected" />
                                            <Calendar UseRowHeadersAsSelectors="False" AutoPostBack="false" UseColumnHeadersAsSelectors="False"
                                                ViewSelectorText="x">
                                            </Calendar>
                                            <DatePopupButton ImageUrl="" HoverImageUrl=""></DatePopupButton>
                                            <DateInput DisplayDateFormat="M/d/yyyy" DateFormat="M/d/yyyy" AutoPostBack="false" CssClass="txtBack-Color"
                                                SelectedDate="2011-10-04">
                                            </DateInput>
                                        </telerik:RadDatePicker>
                                    </td>

This is works fine in Firefox,Chrome,safari and IE9,IE8 but in IE10 calendar not display properly. I also attach IE10 screen shots below.

Konstantin Dikov
Telerik team
 answered on 05 Sep 2013
2 answers
108 views
I have a user control with a RadListBox in it. The Page_Load event of the user control calls ScriptManager.RegisterClientScript to register a js file. The RadListBox has an OnClientLoad property referencing a function in the js file.

When I load the page with the user control I get a script error because the js file isn't loaded yet. But how can that be? RegisterClientScript puts a script tag in the head tag and OnClientLoad should only fire once the page is loaded. And when the page is loaded shouldn't the script tag already have been processed?

After that initial error everything seems to work ok because by then the script is finally loaded.

I tried putting the reference to the file directly into page that hosts the control but I still get the same error.
Ilya
Top achievements
Rank 1
 answered on 05 Sep 2013
1 answer
57 views
Hi,

We are setting tooltip property (server side) on nodes.
These are rendered as alt-tag for the image of a node.

This means that the tooltip is not displayed on the image in any modern browser. Only IE7 displays the alt-tag as tooltip, all other browsers that I have tested needs the title-attribute instead.

Hopfully you will fix this in the next release?

Regards
Caesar
Kate
Telerik team
 answered on 05 Sep 2013
7 answers
113 views
Hello,

I have a page on my site that will not play well with telerik...but it is only this one page. Everywhere else is fine so it must be something specific to the page but I've gone through commenting out lines trying to find the issue and have failed so I was hoping someone more knowledgeable might be able to help.

I don't really know how to explain the problem so I put it up on my staging environment for you to see. If you click the Regional Dealers lower left you will see the overlay div and iframe render but the elements are scattered all over. Again I'm sure it has to do with my css competing but I can't find it???

http://wholyliving.com/staging/

Thank You
JB
Marin Bratanov
Telerik team
 answered on 05 Sep 2013
5 answers
216 views
Hi, 

Does anyone have an example of using a colorpicker in a grid with batch edit? Ideally in vb but C# is OK too.

thanks
Angel Petrov
Telerik team
 answered on 05 Sep 2013
4 answers
351 views
Hi,

I'm having a problem in showing the data of selected row of radgrid in radwindow. What I have tried is using double click on client event using this script:

function RowDblClick(sender, eventArgs) {
 window.radopen("ViewForum.aspx?ForumID=" + eventArgs.getDataKeyValue("ForumID"), "RadWindow1");
}
Basically, all I want is whenever a user double click on a row of radgrid, it will open the radwindow and show the contents of the radgrid row that they have selected but I'm really having problem doing that. I can open the radwindow if I double click on the row of radgrid but the problem is the content radwindow always shows the first row of radgrid, it doesn't change even if I click on a different row. Thank you in advance. This is the code for my grid and window:
<telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="ForumSource" AllowPaging="True" AllowSorting="True" CellSpacing="0" GridLines="None"
                                            Height="520px" Skin="MetroTouch" Width="889px" OnItemCreated="RadGrid1_ItemCreated" CommandItemDisplay="Top">
                                            <MasterTableView DataSourceID="ForumSource" PageSize="13" DataKeyNames="ForumID" AutoGenerateColumns="False" ClientDataKeyNames="ForumID">
                                                <Columns>
                                                     
                                                </Columns>
                                            </MasterTableView>
                                                <ClientSettings>
                                                    <Selecting AllowRowSelect="true"></Selecting>
                                                    <ClientEvents OnRowDblClick="RowDblClick"></ClientEvents>
                                                    <Scrolling AllowScroll="false" UseStaticHeaders="True" />
                                                </ClientSettings>
                                        </telerik:RadGrid>
                                        <telerik:RadWindowManager ID="RadWindowManager1" runat="server">
                                            <Windows>
                                                <telerik:RadWindow ID="RadWindow1" runat="server" Height="450" Width="800"    ReloadOnShow="true" ShowContentDuringLoad="false" Modal="true" Skin="MetroTouch">
                                                </telerik:RadWindow>
                                            </Windows>
                                        </telerik:RadWindowManager>


Gilbert
Top achievements
Rank 1
 answered on 05 Sep 2013
4 answers
132 views
Hi All,

I'm in a bit of a pickle with a strange behavior from RadGrid. I am trying to have my grid expand to fill its containing DIV element - 100%height and width (see image 1 attached to this post). However, what is currently happening is that on first loading the page, the grid does not expand, but instead its scroll area is shrunken to something like 10px (see image 2 attached) - and after I click on the pager button it then expands to fill the div. If I reload the page it returns back to the shrunken scroll area behavior again.

The page is designed with the RadGrid inside a RadSplitter (Telerik has a roughly similar example here) and the RadGrid also implements the "OnGridCreated" client event. I have created a small Visual Studio project that can be run to demo this behavior - it is publicly available for download here.

This issue has left me in a serious bind and in need of quick resolution. My environment: Win 2008 R2 server; IE 9, Chrome v29; V.Studio 2010; .Net 3.5; RadControls for ASP.NET AJAX Q2 2012. I should point out that I tried to do the same thing, but replacing RadSplitter with a standard html table - I got the same odd behavior, but was able to get it to behave almost correctly by setting the "height" style attribute of the containing table column (yes, I also set the height of the RadPane in the splitter, but no luck). It seems to point to the height of the containing element, but I have run out of ideas of what I'm missing...not sure if its me or the controls.

Thanks for your help.

- Manny.
Manny
Top achievements
Rank 1
 answered on 05 Sep 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?