<telerik:RadScheduler runat="server" ID="RadScheduler1" SelectedView="TimelineView" OverflowBehavior="Expand" Localization-HeaderMultiDay="Work Week" OnNavigationComplete="RadScheduler1_NavigationComplete" OnAppointmentInsert="RadScheduler1_AppointmentInsert" OnAppointmentUpdate="RadScheduler1_AppointmentUpdate" OnAppointmentDelete="RadScheduler1_AppointmentDelete" DataKeyField="ID" DataSubjectField="Subject" DataStartField="StartDate" DataEndField="EndDate" DataRecurrenceField="RecurrenceRule" DataRecurrenceParentKeyField="RecurrenceParentId" DataReminderField="Reminder" > <ResourceTypes> <telerik:ResourceType AllowMultipleValues="true" KeyField="IDCategory" Name="IDCategory" TextField="IDCategory" ForeignKeyField="IDCategory" /> </ResourceTypes> <AdvancedForm Modal="true" /> <Localization HeaderMultiDay="Work Week" /> <TimelineView UserSelectable="true" GroupBy="IDCategory" GroupingDirection="Vertical" /> <MultiDayView UserSelectable="true" /> <DayView UserSelectable="false" /> <WeekView UserSelectable="false" /> <MonthView UserSelectable="false" /> <Reminders Enabled="false" /> </telerik:RadScheduler> Private Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Try Dim myBusinessResObj = New ADEPT.CScheduleResource(myConn) Dim resType1 As New ResourceType("IDCategory") resType1.DataSource = myBusinessResObj.getAllTimelineType() resType1.KeyField = "IDCategory" resType1.TextField = "IDCategory" resType1.ForeignKeyField = "IDCategory" RadScheduler1.ResourceTypes.Add(resType1) RadScheduler1.GroupBy = "IDCategory" myBusinessObj = New ADEPT.CScheduler(myConn) RadScheduler1.DataSource = myBusinessObj.getAllAppointments myBusinessObj = Nothing Catch ex As Exception End Try End SubMy RadGrid's used to display Page and Item counts in the bottom right of each Grid. I recently upgraded Telerik from v2011.3.1305 to v2012.1.411.
The markup is as follows:
<telerik:RadGrid ID="AssetGrid" runat="server" AllowFilteringByColumn="True" AllowPaging="True" AllowSorting="True" GridLines="None" GroupingSettings-CaseSensitive="false" Skin="Web20" AutoGenerateColumns="False" OnPageIndexChanged="AssetGrid_PageIndexChanged" OnItemCreated="AssetGrid_ItemCreated" OnItemDataBound="AssetGrid_ItemDataBound" OnPreRender="AssetGrid_PreRender" OnSortCommand="AssetGrid_SortCommand" OnNeedDataSource="AssetGrid_NeedDataSource" EnableLinqExpressions="false"> <ClientSettings EnableRowHoverStyle="true"> <Selecting AllowRowSelect="true" /> <ClientEvents OnRowDblClick="RowAssetSelected" /> </ClientSettings> <MasterTableView EditMode="InPlace" AllowFilteringByColumn="true" ShowFooter="false" EnableColumnsViewState="true" AutoGenerateColumns="false" CellSpacing="-1" DataKeyNames="AsId" Font-Size="90%" AllowCustomSorting="true" AllowCustomPaging="true" Width="100%"> <PagerStyle Mode="NextPrevAndNumeric" Visible="true" AlwaysVisible="true" /> <!-- RowIndicatorColumn, ExpandCollapseColumn, Columns, etc --> </MasterTableView></telerik:RadGrid> The NeedDataSource event is as follows:
protected void AssetGrid_NeedDataSource(object source, GridNeedDataSourceEventArgs e){ var collection = getAssets() AssetGrid.VirtualItemCount = collection.Count; AssetGrid.DataSource = collection.Skip(AssetGrid.PageSize * AssetGrid.CurrentPageIndex).Take(AssetGrid.PageSize);}Sorry if I've missed anything important.
The grid however, is displaying the pager row like this:
PageCountMissing
Is there a setting I've missed to enable the page/item counts in the bottom right?
Having problems with labels showing up in the right place or at all. I have multiple charts on one page and one chart has 4 series in it and I am using this code to set the lables positions but some of them dont show up at all.
Series2_3.Items[0].Label.Appearance.LabelLocation = Telerik.Charting.Styles.
StyleSeriesItemLabel.ItemLabelLocation.Outside;
Series2_3.Items[0].Label.Appearance.Position.AlignedPosition = Telerik.Charting.Styles.
AlignedPositions.Left;
also I am setting the label text color to black but that doesn't work either
Series2_1.AddItem(itm2.AdministrativeServices,
"Administrative Services", Color.Black);
any suggestions?
Thanks!
<telerik:RadScriptBlock ID="RadScriptBlock1" runat="server"> <script type="text/javascript"> function ClearRadCombo(sender, eventArgs) { var mycombo = $find("<%= RadComboBox1.ClientID %>"); mycombo.clearItems(); mycombo.clearSelection(); } </script></telerik:RadScriptBlock><telerik:RadScriptBlock ID="RadScriptBlock1" runat="server"> <script type="text/javascript" src="../script/myscript.js"> </script></telerik:RadScriptBlock><asp:ScriptReference Path="~/script/myscript.js" />
function PrintMe(node) {
var content = node.innerHTML;
var pwin = window.open('', 'print_content', 'width=800,height=700,scroll=no');
pwin.document.open();
pwin.document.write(
'<html><body onload="window.print()">' + content + '</body></html>');
pwin.document.close();
setTimeout(
function () { pwin.close(); }, 1000);
}
for Expanded Radtree:
function printSelection(node) {
var treeView = $find("<%= rdTreeDetails.ClientID %>");
var nodes = treeView.get_allNodes();
for (var i = 0; i < nodes.length; i++) {
if (nodes[i].get_nodes() != null) {
if (nodes[i].get_nodes().get_count() != 0) {
nodes[i].expand();
}
}
}
var content = node.innerHTML;
var pwin = window.open('', 'print_content', 'width=800,height=700,scroll=no');
pwin.document.open();
pwin.document.write(
'<html><body onload="window.print()">' + content + '</body></html>');
pwin.document.close();
setTimeout(
function () { pwin.close(); }, 1000);
for (var j = 0; j < nodes.length; j++) {
if (nodes[j].get_nodes() != null) {
if (nodes[j].get_nodes().get_count() != 0) {
nodes[j].collapse();
}
}
}
}
What can be done to print it expanded in firefox?
