Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
99 views
Hi.  I need some guidance with the Scheduler. Im basically retrieving a a list of records from the DB using the EF.  I am currently binding this to the scheduler and it works like a charm. I am also populating a grid view right under my scheduler with all the appointments irrelevant of what current month the scheduler is on.

Now, i have a new requirement whereby i only show the appointments in the grid and scheduler of the selected months. So i need to filter my results (list) when the user selects the left or right arrow to cycle through the months.  I will then need to identify the start date and end date of that month and filter with a where clause on the list i have in real time. 

What event must i use to be initiated once the user selects one of this arrows which will also provide me the next/previous months and their days?

Is this possible please? I have been searching many examples, though i keep finding examples of specific people that fit to their needs. I do feel that im close but cant get around it.

I am currently binding my scheduler this way and listing everything.. So i just need to do the same thing but filtering using a where clause in the entity framework by getting the start date and end date of the month the user has selected.
private void BindScheduler()
        {
            #region Scheduler
            List<AppointmentInfo> appList = new List<AppointmentInfo>();
 
            DateTime startDate, endDate; // Coming from the db, just removed the code below in the for loop.
            string name;
             
            for (int schedCount = 0; schedCount <= _groupScheduleList.Count - 1; schedCount++)
            {
                Appointment appSched = new Appointment();
 
                appSched.ID = schedCount;
                appSched.Start = startDate;
                appSched.End = endDate;
                appSched.Subject = name;
 
                AppointmentInfo appI = new AppointmentInfo(appSched);
 
                appList.Add(appI);
            }
 
            timeSlotScheduler.DataSource = appList;
            timeSlotScheduler.DataBind();
            #endregion
        }


Update:
Im going to see if i will manage using e.Command.ToString(); I will then know if i can add months or minus.. will see if i sort out what i need this way.
Kyle
Top achievements
Rank 2
 answered on 18 Jun 2013
6 answers
157 views
Hi;

Does Telerik ASP.Net Ajax come with Barcode Generator? If not, is there a recommendation to what product?
Thanks!
..Ben
Marin Bratanov
Telerik team
 answered on 18 Jun 2013
1 answer
57 views
I'm running httpwatch on my teleriks shedueler and i've found a strange Get Request /info sending when opening Advanced form.
I've cannot find whats calling it is there something in teleriks DLL or Js files?
The 404 request in localhost/info ?

Boyan Dimitrov
Telerik team
 answered on 18 Jun 2013
3 answers
63 views
Hi, I am using two RadSlidingPane with the mode with DockOpen="true". One of them an have an option inside with which this tab must stay open while the option is active. So I wrote code in OnClientBeforeUndock and call eventArgs.set_cancel(true) in this case. It works for the first user click on the other tab but if the very next click is again on the other tab, then the event is not triggered and the other tab content is shown.

I also tried to react to the OnClientBeforeExpand on the other tab but with this scenario the event is not triggered on the second click.

Also, when this happen, both tabs are highlighted to show they are selected while only one tab can be selected at a time!

Is it a bug? Is there a workaround or another way to force a tab to stay visible (maybe by disable other tabs but not by hiding them)?

Thanks
Vessy
Telerik team
 answered on 18 Jun 2013
7 answers
106 views
I would like to have the functionality to programmatically insert (presumably HTML) chunks that are deleted entirely if any part of them are deleted. I've found this thread that also asks for the same functionality, but it asks for two pieces of functionality after which the user posted a solution to the other piece of functionality and the thread ends. How can I do this?
Marin Bratanov
Telerik team
 answered on 18 Jun 2013
4 answers
87 views
Hi telerik and community
I've a problem with scheduler control. It's not a really problem but I don't know how i can do this trick.

I'm using radScheduler with entitydatasource and I would like to do this case.

For exemple in my DB I've one appointement from first june to first september and everyday at the same time.

Actually if i set the dataBegin and dataEnd the control rendering is an only one long appointement but I would like to see this same appointement every day at 16pm (for example) from 1june to 1september.

In fact this is not an appointement but playlist and in my DB i've the begin date the end date and the begin time and end time to play everyday

For example  : BeginDate : 1june EndDate 1september BeginTime 16pm EndTime 18pm

Hope someone understand me and help

Sincerly
Romain
Top achievements
Rank 1
 answered on 18 Jun 2013
2 answers
166 views
I currently have a radcombobox set to allow multiple items be checked 

<telerik:RadComboBox ID="radAttributeValue" runat="server" CheckBoxes="true"
                         EnableCheckAllItemsCheckBox="false" AutoPostBack="true" DataCheckedField="selectionMade"
                         AllowCustomText="false" onselectedindexchanged="radAttributeValue_SelectedIndexChanged">

As the user selects the values in the checkbox and then sets focus away from the control the default behaviour of the RadcomboBox puts the selections made in a comma separated string.  This is great, however when all items are selected the list it then reads "All items checked", what would I need to modify to maintain the comma separated values even if all items in the list were selected?

Thanks
Richard
Top achievements
Rank 1
 answered on 18 Jun 2013
1 answer
160 views
I see that rad editor is counting chars but I need it to include spaces..... and limit to 585 (including spaces) I have set the property maxtextlength and maxtexthtml to 585 but it ignores spaces.
is possible also to lock user to write more than the limit
Marin Bratanov
Telerik team
 answered on 18 Jun 2013
1 answer
47 views
Hi ,

We are using Telerik.Wb.Ui.dll , Version 2010.01.0309.35. in our application.  When the application is accessed from IE 10 in the production environment, the context menu does not show up.

However, when the same application is accessed from any staging environment, the context menu does come up.

The configuration (OS, Telerik version, IIS) all are the same in both the environments. I am at loss to find out what is causing the behavior in the Production environment.

Could you please let me know if there is a known issue with the context menu (Like in which case it might fail to show up) and a resolution to the issue.

Many Thanks,
Sasidhar D

Boyan Dimitrov
Telerik team
 answered on 18 Jun 2013
1 answer
138 views
hi,
I have a rad window which opens on button click. It has many text boxes.
I want to pass text boxes value to its parent page.
I wrote this code in popup

 function returnToParent() 
                  {
                                     
                    var oArg = new Object();
                     oArg.txtRateType=document .getElementById ("txtRateType").value;
                
                   
                    oArg.txtLabourWeekdayTotal=document .getElementById ("txtLabourWeekdayTotal").value;
                    oArg.txtLabourSaturdayTotal=document .getElementById ("txtLabourSaturdayTotal").value;
                  var oWnd = GetRadWindow();
 oWnd.close(oArg);
}
I m calling this funtion on submit button of this form.

Then on parent page,i have defined

<telerik:RadWindowManager ID="RadWindowManagerServiceReportDetails" runat="server" OnClientPageLoad="OnClientPageLoad"  Font-Names="Arial, Helvetica, sans-serif">
            <Windows >
                 <telerik:RadWindow ID="UserListDialogInvoiceWorksheet" runat="server"  Height="740px" 
                   Width="910px" ReloadOnShow="true" ShowContentDuringLoad="false" OnClientClose="OnClientCloseInvoicePopup" 
                   Modal="true" KeepInScreenBounds="true" Behaviors="Close,Move"  Font-Names="Arial, Helvetica, sans-serif" Font-Size="11 px" />
            </Windows>
    </telerik:RadWindowManager>

so when radwindow closes,this function gets called





  function OnClientCloseInvoicePopup(oWnd, args)
 {
             
               var arg = args.get_argument();
            
               if (arg) 
{
var  textBox = $find("<%=txtExitReportInvStandardDays.ClientID %>");
textBox.set_value(arg.txtLabourWeekdayTotal); 

var  textBox1 = $find("<%=txtExitReportInvPremiumDays.ClientID %>");
textBox1.set_value(arg.txtLabourSaturdayTotal)); 

}
}

but when if textbox is equal to null. and an error occurs 'null is null or not an object'.

please help me this problme.

Marin Bratanov
Telerik team
 answered on 18 Jun 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?