<telerik:RadEditor ID="RadEditor1" runat="server" EditModes="Design, Preview" Skin="Outlook" EnableResize="true"> <CssFiles> <telerik:EditorCssFile Value="StyleSheet.css" /> </CssFiles> <Content> Editor content 1 </Content></telerik:RadEditor><telerik:RadCodeBlock> <script type="text/javascript"> function OnClientClose(oWnd, args) { var arg = args.get_argument(); if (arg) { var retValue = arg.ReturnValue; if (arg.ReturnValue == "ONE" || arg.ReturnValue == "TWO") { var ajaxManager = $find("<%= RadAjaxManager1.ClientID %>"); ajaxManager.set_enableAJAX(true); ///this calls RadAjaxManager1_AjaxRequest() server side ajaxManager.ajaxRequest(arg.ReturnValue); } else { __doPostBack('__Page', 'REFRESH|' + retValue) } } } </script></telerik:RadCodeBlock><des:PageManager ID="PageManager1" runat="server" AJAXFramework="TelerikRadAJAX" AJAXControlID="ScriptManager1"> <ChangeMonitor Enabled="True" UseValidationGroups="True" /></des:PageManager><telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest"> <AjaxSettings> <telerik:AjaxSetting AjaxControlID="pnlONE"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="pnlONE" LoadingPanelID="AjaxLoadingPanel1" /> </UpdatedControls> </telerik:AjaxSetting> <telerik:AjaxSetting AjaxControlID="pnlTWO"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="pnlTWO" LoadingPanelID="AjaxLoadingPanel1" /> <telerik:AjaxUpdatedControl ControlID="RadToolTipManager1" /> <telerik:AjaxUpdatedControl ControlID="RadToolTipManager3" /> </UpdatedControls> </telerik:AjaxSetting> </AjaxSettings></telerik:RadAjaxManager><telerik:RadAjaxLoadingPanel ID="AjaxLoadingPanel1" runat="server" Transparency="55" BackColor="#E0E0E0"> <div style="text-align: center"> <asp:Image ID="imgPanelImage" runat="server" AlternateText="Loading..." ImageUrl="~/Images/ajax-loader.gif" /> </div></telerik:RadAjaxLoadingPanel>protected void RadAjaxManager1_AjaxRequest(object sender, AjaxRequestEventArgs e){ RadToolTipManager1.TargetControls.Clear(); RadToolTipManager3.TargetControls.Clear(); //this is called from ajaxRequest() client side if (e.Argument == "ONE") grdONE.DataBind(); else if (e.Argument == "TWO") grdTWO.DataBind();}protected void grdTWO_ItemDataBound(object sender, GridItemEventArgs e){ ... this.RadToolTipManager1.TargetControls.Add(...) this.RadToolTipManager3.TargetControls.Add(...) ...}protected void OnAjaxUpdate(object sender, ToolTipUpdateEventArgs args){ this.UpdateToolTip(args.Value, args.UpdatePanel);}private void UpdateToolTip(string elementID, UpdatePanel panel){ ...}RadGridItems.DataSource = Session[cKIWebHelper.SelectListSessionVariables.const_Session_GridData];
Now, i display a popup form B
window.showModalDialog

<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!