Hi Sir,
How to get resourcetype selected value in telerik Rad Scheduler Control.
Aspx .page code part:
<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" Height="200px" Width="300px">
<telerik:RadScheduler ID="RadScheduler1" runat="server" DataEndField="EndTime"
FirstDayOfWeek="Monday" LastDayOfWeek="Friday"
DataKeyField="ID" SelectedView="WeekView" EnableDescriptionField="True" TimelineView-NumberOfSlots="15"
DataStartField="StartTime" DataSubjectField="Subject" Width="943px"
Height="900px" TimelineView-ShowResourceHeaders="true"
DataRecurrenceField="RecurrenceRule" DataRecurrenceParentKeyField="RecurrenceParentKey"
Skin="WebBlue" onappointmentclick="RadScheduler1_AppointmentClick"
AppointmentStyleMode="Default" OnClientAppointmentCreated="appointmentCreated"
onappointmentdelete="RadScheduler1_AppointmentDelete"
onappointmentinsert="RadScheduler1_AppointmentInsert"
onappointmentdatabound="RadScheduler1_AppointmentDataBound"
onappointmentupdate="RadScheduler1_AppointmentUpdate"
OnNavigationComplete="RadScheduler1_NavigationComplete"
OnClientAppointmentDoubleClick="OnClientAppointmentDoubleClick"
OnFormCreated="RadScheduler1_FormCreated"
CustomAttributeNames="Call P" EnableCustomAttributeEditing="True" >
<AdvancedForm Modal="true" EnableCustomAttributeEditing="true" EnableResourceEditing="true" />
<TimelineView GroupBy="Calendar" GroupingDirection="Vertical" />
<ResourceStyles>
<telerik:ResourceStyleMapping Type="Calendar" Text="Development" BackColor="#D0ECBB" BorderColor="#B0CC9B" />
<telerik:ResourceStyleMapping Type="Calendar" Text="Marketing" ApplyCssClass="rsCategoryRed" />
<telerik:ResourceStyleMapping Type="Calendar" Text="Work" ApplyCssClass="rsCategoryOrange" />
</ResourceStyles>
<TimeSlotContextMenuSettings EnableDefault="true" />
<AppointmentContextMenuSettings EnableDefault="true" />
<ResourceTypes>
<THIS is section i am binding from Code behind at the page load>
</ResourceTypes>
</telerik:RadScheduler>
</telerik:RadAjaxPanel>
------------------------------------------
Creating the Static value for Resource type in Code behind page.... following i aM BINDING AT PAGE LOAD
ResourceType CallPriority = new ResourceType("Call Priority");
CallPriority.ForeignKeyField = "RoomID";
RadScheduler1.ResourceTypes.Add(CallPriority);
RadScheduler1.Resources.Add(new Resource("Call Priority", 1, "Call1"));
RadScheduler1.Resources.Add(new Resource("Call Priority", 2, "Call2"));
RadScheduler1.Resources.Add(new Resource("Call Priority", 3, "Call3"));
RadScheduler1.Resources.Add(new Resource("Call Priority", 4, "Call4"));
RadScheduler1.Resources.Add(new Resource("Call Priority", 5, "Call5"));
RadScheduler1.Resources.Add(new Resource("Call Priority", 6, "Call6"));
RadScheduler1.Resources.Add(new Resource("Call Priority", 7, "Call7"));
RadScheduler1.Resources.Add(new Resource("Call Priority", 8, "Call8"));
RadScheduler1.Resources.Add(new Resource("Call Priority", 9, "Call9"));
RadScheduler1.Resources.Add(new Resource("Call Priority", 10, "Call10"));
RadScheduler1.GroupBy = "Call Priority";
RadScheduler1.GroupingDirection = GroupingDirection.Vertical;
i AM able to bind with my Drop down as per attached screen shot but not able to get (Selected value)value after selection of any "CALL1","Call2"
as per your I am trting to bind with same code we do not have any comboBOX iD..
The following code gives me default value of drop down list.
((Telerik.Web.UI.Resource)((new System.Collections.ArrayList.ArrayListDebugView(((System.Web.UI.StateManagedCollection)(RadScheduler1.Resources))._collectionItems)).Items[0])).Text;
Please find the attached Screen shots.
It is slight similar to(Call Priority DROP down as per attached screen shots) DRopdown list ,so How to get selected Resource type drop down list value by C# code...
Looking forward for your support
Hi,
How can I access a label inside EditFormSettings of a grid? Any help will be really appreciated
<
EditFormSettings
EditFormType
=
"Template"
>
<
FormTemplate
>
<
h4
><
strong
><
asp:Label
ID
=
"lblboxheading"
Visible
=
"true"
runat
=
"server"
CssClass
=
"page-heading"
></
asp:Label
></
strong
></
h4
>
</
FormTemplate
>
</
EditFormSettings
>
Hi,
I've used RadFileExplorer and binded it with my Items table using
CREATE TABLE [dbo].[Items](
[ItemID] [int] IDENTITY(1,1) NOT NULL,
[Name] [varchar](50) NULL,
[ParentID] [int] NULL,
[MimeType] [varchar](50) NULL,
[IsDirectory] [bit] NULL,
[Size] [bigint] NULL,
[Content] [varbinary](max) NULL)
I've added data to it and it is shown on fileExplorer now can I get the itemid from this table of selected node??
I've tried RadFileExplorer1.TreeView.SelectedValue inside a button click event, but no use it gives me node text like 'Root/NewFolder/Nature' but I want Nature ItemID which binded with Items table is there anyway I get this ID??
Hello,
I am new to telerik, I am trying to learn the kendo UI controls. I was previously using visual studio 2012 professional edition, I have switched over to visual studio 2012 express edition. however in the express edition I am unable to change my html controls to kendo controls. Please let me know where am I going wrong? I have attached a code below. Thank you.
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<script src="telerik.kendoui.professional.2015.3.1111.trial/js/kendo.all.min.js"></script>
<script src="telerik.kendoui.professional.2015.3.1111.trial/js/jquery.min.js"></script>
<link href="telerik.kendoui.professional.2015.3.1111.trial/styles/kendo.default.min.css" rel="stylesheet" />
<link href="telerik.kendoui.professional.2015.3.1111.trial/styles/kendo.common.min.css" rel="stylesheet" />
</head>
<body>
<div id="example">
<label>First Name</label>
<input type="text" name="firstName" id="txtFname" value="" />
</div>
<script>
$(document).ready(function () {
$("#txtFname").kendoMaskedTextbox({
});
});
</script>
</body>
</html>
We have migrated from the v2010.2.713.35 to v2015.2.826.45 then we are facing the issue in the design. I have attached the screen shot with this thread.
Kindly provide me a solution
I tried to disable UseStaticHeader when Print a Grid
this is my js function
This works OK, but when I use StaticHeader not all data display. Please see attached image
function Imprimir() {
var radGrid = $find('<%= grillaListado.ClientID %>');
radGrid.MasterTableView.get_element().style.fontSize = "10px";
debugger;
radGrid.MasterTableViewHeader.get_element().style.fontSize = "10px";
var previewWnd = window.open('about:blank', 'Resúmen Ordenes de Pago', '', false);
var styleStr = "<html><head><title>Resúmen Horas de Proyectos</title></head>";
var fechaDesde = $find('<%= dtFechaDesde.ClientID %>').get_textBox().value;
var fechaHasta = $find('<%= dtFechaHasta.ClientID %>').get_textBox().value;
var htmlcontent = styleStr + "<body> <label style='font-size:10px'>Fecha desde:" + fechaDesde + " - hasta " + fechaHasta + "</label><br>" + radGrid.get_element().outerHTML + "</body></html>";
previewWnd.document.open();
previewWnd.document.write(htmlcontent);
previewWnd.document.close();
previewWnd.print();
previewWnd.close();
}
function Imprimir() {
var radGrid = $find('<%= grillaListado.ClientID %>');
radGrid.MasterTableView.get_element().style.fontSize = "10px";
radGrid.MasterTableViewHeader.get_element().style.fontSize = "10px";
/********************* I TRIED THIS ***************************/
radGrid.ClientSettings.Scrolling.UseStaticHeaders =false; => does not work
/********************* I TRIED THIS ***************************/
var previewWnd = window.open('about:blank', 'Resúmen Ordenes de Pago', '', false);
var styleStr = "<html><head><title>Resúmen Horas de Proyectos</title></head>";
var fechaDesde = $find('<%= dtFechaDesde.ClientID %>').get_textBox().value;
var fechaHasta = $find('<%= dtFechaHasta.ClientID %>').get_textBox().value;
var htmlcontent = styleStr + "<body> <label style='font-size:10px'>Fecha desde:" + fechaDesde + " - hasta " + fechaHasta + "</label><br>" + radGrid.get_element().outerHTML + "</body></html>";
previewWnd.document.open();
previewWnd.document.write(htmlcontent);
previewWnd.document.close();
previewWnd.print();
previewWnd.close();
}
How i can print the complete grid when it use StaticHeader?
Hi,
I would like to use RadCalendar to present a view of a future month, but without a specific date in that month being pre-selected or having focus.
When I don't set the FocusedDate property and/or the SelectedDate property, the calendar always displays the current month and not the specified future one.
When I do set the FocusedDate property and/or the SelectedDate property, that date is obviously pre-selected which I don't want.
How can I set RadCalendar to display a future month without selecting a date within that month?
Best regards, Marja Ribbers
There seems to be a problem loading jquery 1.11.3 in the new release .1111.
2015.3.930.40 works fine. 2015.3.1111.40 will generate the "JQuery not defined"-error
Is this by design? Have tried disabling the embedded jquery as well, without luck so far.
I have a RadGrid with a handful of GridTemplateColumns which have EditItemTemplates with RadDateTimePickers. The content is loaded dynamically on the backend and the MasterTableView's EditMode="PopUp". When selecting the edit button, if a date is within the min/max of 1980-2099, the popup displays appropriately. When a value is not within the min/max values, the page flashes and the edit popup does not display.
I've tried the following:
- Modified the Min/Max of the raddatepickers in the edititemtemplates
- Modified the Min/Max of the raddatepickers when assigning the data in the ItemCreated event and the picker's prerender event.
- Added SkipMinMaxDateValidationOnServer to the item in the edititemtemplate as well as in the ItemCreated event.
- Added DateInput-SkipMinMaxDateValidationOnServer to the item in the edititemtemplate as well as in the ItemCreated event.
None of these fixes the problem and allows the edit popup to display, at all. When I use a raddatetimepicker outside of the radgrid I'm able to modify the max/min on the ASPX as well as the code and get the expected results. Is there something I'm missing?
Thanks,
Chuck