Telerik Forums
UI for WinForms Forum
3 answers
303 views
Using the Visual Style Builder to set theme colors I can see how to modify the Scheduler Header Cell Element, but where is the Resource Header Cell Element modified?  I would to set this in the theme because my application allows loading of predefined themes; therefore I prefer not to use the SchedulerCell_Format event.  Thank you for any guidance you can provide.
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 24 Aug 2016
9 answers
169 views

Hi There,

I have my start date ok, but appointment panel not continue to end date. You guys could help me with some advice? Please consider we are from Brazil("16/06/2016 17:00:00"). Thanks for your help.

My code:

 

<telerik:RadAjaxManagerProxy ID="RadAjaxManager1" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="agenda">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="agenda" />
            </UpdatedControls>
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="cboFuncionarios">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="agenda" />
            </UpdatedControls>
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="chkListTipoAgenda">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="agenda" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManagerProxy>

<!-- Para não permitir update por resize ou move da anotação -->
<script type="text/javascript">
    function OnClientAppointmentMoveStart(sender, eventArgs) {
        eventArgs.set_cancel(true);
    }
</script>

<style type="text/css">
    .rsWrap > div {
        height: 90px !important;
    }

    .rsAllDayRow {
        height: 100px !important;
    }

    .rsAlt {
        height: 100px !important;
    }

    .rsNonWorkHour {
        height: 100px !important;
    }
</style>

<asp:Label ID="lblTipoAgenda" runat="server" CssClass="bloco" Text="Filtrar por tipo de agenda:"></asp:Label>

<asp:CheckBoxList ID="chkListTipoAgenda" runat="server" RepeatDirection="Horizontal" AutoPostBack="true"
    OnSelectedIndexChanged="chkListTipoAgenda_SelectedIndexChanged">
    <asp:ListItem Value="1" Selected="True">Ação</asp:ListItem>
    <asp:ListItem Value="2" Selected="True">Ausência</asp:ListItem>
    <asp:ListItem Value="3" Selected="True">Férias</asp:ListItem>
    <asp:ListItem Value="4" Selected="True">Outros</asp:ListItem>
</asp:CheckBoxList>

<br />
<div class="divAgenda">
    <telerik:RadScheduler runat="server" ID="agenda"
        SelectedView="MonthView" ShowFooter="true" HoursPanelTimeFormat="HH:mm" RowHeight="100px" TimeZoneOffset="00:00:00"
        DayStartTime="08:00:00" DayEndTime="21:00:00" FirstDayOfWeek="Monday" LastDayOfWeek="Sunday" ShowAllDayRow="false"
        EnableDescriptionField="true" AppointmentStyleMode="Default"
        DataKeyField="IDAGENDAFUNCIONARIO" DataSubjectField="DESCRICAO" DataStartField="DATAINICIO" DataEndField="DATAFIM"
        OnAppointmentDelete="agenda_AppointmentDelete" OnAppointmentInsert="agenda_AppointmentInsert"
        OnAppointmentUpdate="agenda_AppointmentUpdate" OnAppointmentCommand="agenda_AppointmentCommand" OnAppointmentDataBound="agenda_AppointmentDataBound"  OnAppointmentCreated="agenda_AppointmentCreated"
        StartInsertingInAdvancedForm="true" StartEditingInAdvancedForm="true"
        OnFormCreated="agenda_FormCreated" OnClientAppointmentMoveStart="OnClientAppointmentMoveStart" OverflowBehavior="Auto" MonthView-AdaptiveRowHeight="true">


        <AdvancedForm Modal="true" ZIndex="9999"></AdvancedForm>
        <DayView EnableExactTimeRendering="true"/>
        <TimelineView UserSelectable="true" GroupingDirection="Vertical"></TimelineView>
        <TimeSlotContextMenuSettings EnableDefault="true" />
        <AppointmentContextMenuSettings EnableDefault="true" />

        <ExportSettings OpenInNewWindow="true" FileName="Agenda">
            <Pdf PageTitle="Agenda" Author="AHI" Creator="AHI" Title="Agenda" PaperOrientation="Landscape" PaperSize="A4" PageLeftMargin="40mm"
        PageRightMargin="40mm"
        PageBottomMargin="40mm"
        PageTopMargin="40mm"
></Pdf>
        </ExportSettings>

        <AppointmentTemplate>
            <div id="tituloAgenda" class="rsAptSubject">
                <b><%# Eval("Subject") %></b>
            </div>
            <asp:LinkButton runat="server" ID="lnkAcao" CssClass="bloco link-acao"
                        CommandName="Cancel" CausesValidation="false" ToolTip='Ver Ação' >
                            <%# Container.Appointment.Owner.Localization.AdvancedClose%>
                    </asp:LinkButton>
             <asp:Label runat="server" ID="lblNumAcao" Text="" CssClass="bloco"></asp:Label>
            <asp:Label runat="server" ID="lblEmpresa" Text="" CssClass="bloco"></asp:Label>
            <asp:Label runat="server" ID="lblMotivoAcao" Text="" CssClass="bloco"></asp:Label>       
        </AppointmentTemplate>

        <AdvancedInsertTemplate>
            <div class="rsAdvancedEdit rsAdvancedModal" style="position: relative">
                <div class="rsModalBgTopLeft">
                </div>
                <div class="rsModalBgTopRight">
                </div>
                <div class="rsModalBgBottomLeft">
                </div>
                <div class="rsModalBgBottomRight">
                </div>
                <div class="rsAdvTitle">
                    <h1 class="rsAdvInnerTitle">
                        <%# Container.Appointment.Owner.Localization.AdvancedNewAppointment %></h1>
                    <asp:LinkButton runat="server" ID="AdvancedEditCloseButton" CssClass="rsAdvEditClose"
                        CommandName="Cancel" CausesValidation="false" ToolTip='<%# Container.Appointment.Owner.Localization.AdvancedClose %>'>
                            <%# Container.Appointment.Owner.Localization.AdvancedClose%>
                    </asp:LinkButton>
                </div>
                <div class="rsAdvContentWrapper">

                    <div class="advFormOuter">
                        <div class="advFormLeft">
                            <p>
                                <asp:Label ID="lblTipoAgenda" runat="server" Text="Tipo de Anotação:" CssClass="bloco"></asp:Label>
                                <telerik:RadComboBox runat="server" ID="cboTipoAgenda" DataValueField="Value" RenderMode="Native" DataTextField="Text">
                                    <Items>
                                        <telerik:RadComboBoxItem Text="Ausência" Value="2" />
                                        <telerik:RadComboBoxItem Text="Férias" Value="3" />
                                        <telerik:RadComboBoxItem Text="Outros" Value="4" />
                                    </Items>
                                </telerik:RadComboBox>

                                <asp:Label ID="lblDtInicio" runat="server" Text="De:" CssClass="bloco"></asp:Label>
                                <telerik:RadDateTimePicker runat="server" ID="dtInicio"></telerik:RadDateTimePicker>
                                <asp:Label ID="lblDtFinal" runat="server" Text="Até:" CssClass="bloco"></asp:Label>
                                <telerik:RadDateTimePicker runat="server" ID="dtFinal"></telerik:RadDateTimePicker>
                            </p>
                        </div>

                        <div class="advFormRight">
                            <asp:Label ID="lblObs" runat="server" Text="Descrição / Observações:" CssClass="bloco"></asp:Label>
                            <telerik:RadTextBox ID="txtObs" runat="server" TextMode="MultiLine" Width="300" Height="50"></telerik:RadTextBox>
                        </div>

                        <div class="advFormLbl">
                            <asp:Label runat="server" ID="lblAviso" Visible="false" CssClass="labelAtencao"></asp:Label>
                        </div>

                    </div>

                    <asp:Panel runat="server" ID="ButtonsPanel" CssClass="rsAdvancedSubmitArea">
                        <div class="rsAdvButtonWrapper">
                            <asp:LinkButton CommandName="Insert" runat="server" ID="btnSalvar" ToolTip="Inserir" CssClass="rsAdvEditSave">
                                <span><%# Container.Appointment.Owner.Localization.Save%></span>
                            </asp:LinkButton>
                            <asp:LinkButton runat="server" ID="CancelButton" CssClass="rsAdvEditCancel" ToolTip="Cancelar" CommandName="Cancel"
                                CausesValidation="false">
                                <span><%# Container.Appointment.Owner.Localization.Cancel%></span>
                            </asp:LinkButton>
                        </div>
                    </asp:Panel>
                </div>
            </div>
        </AdvancedInsertTemplate>

        <AdvancedEditTemplate>
            <div class="rsAdvancedEdit rsAdvancedModal" style="position: relative">
                <div class="rsModalBgTopLeft">
                </div>
                <div class="rsModalBgTopRight">
                </div>
                <div class="rsModalBgBottomLeft">
                </div>
                <div class="rsModalBgBottomRight">
                </div>
                <div class="rsAdvTitle">
                    <h1 class="rsAdvInnerTitle">
                        <%# Container.Appointment.Owner.Localization.AdvancedEditAppointment %></h1>
                    <asp:LinkButton runat="server" ID="LinkButton1" CssClass="rsAdvEditClose"
                        CommandName="Cancel" CausesValidation="false" ToolTip='<%# Container.Appointment.Owner.Localization.AdvancedClose %>'>
                        <%# Container.Appointment.Owner.Localization.AdvancedClose%>
                    </asp:LinkButton>
                </div>
                <div class="rsAdvContentWrapper">
                    <div class="advFormOuter">
                        <div class="advFormLeft">
                            <p>
                                <asp:Label ID="lblTipoAgenda" runat="server" Text="Tipo de Anotação:" CssClass="bloco"></asp:Label>
                                <telerik:RadComboBox runat="server" ID="cboTipoAgenda">
                                    <Items>
                                        <telerik:RadComboBoxItem Text="Ausência" Value="2" />
                                        <telerik:RadComboBoxItem Text="Férias" Value="3" />
                                        <telerik:RadComboBoxItem Text="Outros" Value="4" />
                                    </Items>
                                </telerik:RadComboBox>
                                <asp:Label ID="lblDtInicio" runat="server" Text="De:" CssClass="bloco"></asp:Label>
                                <telerik:RadDateTimePicker runat="server" ID="dtInicio"></telerik:RadDateTimePicker>
                                <asp:Label ID="lblDtFinal" runat="server" Text="Até:" CssClass="bloco"></asp:Label>
                                <telerik:RadDateTimePicker runat="server" ID="dtFinal"></telerik:RadDateTimePicker>
                            </p>
                        </div>

                        <div class="advFormRight">
                            <asp:Label ID="lblObs" runat="server" Text="Descrição / Observações:" CssClass="bloco"></asp:Label>
                            <telerik:RadTextBox ID="txtObs" runat="server" TextMode="MultiLine" Width="300" Height="50"></telerik:RadTextBox>
                        </div>

                        <div class="advFormLbl">
                            <asp:Label runat="server" ID="lblAviso" Visible="false" CssClass="labelAtencao"></asp:Label>
                        </div>

                    </div>

                    <asp:Panel runat="server" ID="Panel1" CssClass="rsAdvancedSubmitArea">
                        <div class="rsAdvButtonWrapper">
                            <asp:LinkButton CommandName="Justificar" ToolTip="Clique se necessitar faltar a este compromisso" runat="server" ID="btnJustificar" CssClass="rsAdvEditSave">
                                <span>Faltar</span>
                            </asp:LinkButton>
                            <asp:LinkButton CommandName="Update" runat="server" ID="btnSalvar" ToolTip="Atualizar" CssClass="rsAdvEditSave">
                                <span><%# Container.Appointment.Owner.Localization.Save%></span>
                            </asp:LinkButton>
                            <asp:LinkButton runat="server" ID="LinkButton3" CssClass="rsAdvEditCancel" ToolTip="Cancelar" CommandName="Cancel"
                                CausesValidation="false">
                                <span><%# Container.Appointment.Owner.Localization.Cancel%></span>
                            </asp:LinkButton>
                        </div>
                    </asp:Panel>
                </div>
            </div>
        </AdvancedEditTemplate>

    </telerik:RadScheduler>
</div>

<br />

<telerik:RadButton runat="server" ID="btnExport" Text="Exportar para PDF" OnClick="btnExport_Click"></telerik:RadButton>
<telerik:RadButton runat="server" ID="btnExportOutlook" Text="Exportar para Outlook" OnClick="btnExportOutlook_Click"></telerik:RadButton>
<telerik:RadButton runat="server" ID="btnImprimir" Text="Imprimir" OnClick="btnImprimir_Click"></telerik:RadButton>

Wendi
Top achievements
Rank 1
 answered on 24 Aug 2016
1 answer
176 views

We are using a wrapper to set certain default behavior for the RadGridView.

While debugging a feature we disabled that was not working it appears that the grid.MasterTemplate.EndInit() method is resetting some properties back to their default.

We have also overriden the MasterGridViewTemplate per this article: (http://www.telerik.com/forums/question-about-mastergridviewtemplate-and-mastertemplate).

 

Current Issue and solution we have implemented:

Some properties (namely EnableHotTracking) that we set in the MasterTemplateGridViewElement override, or the GridView wrapper are getting reset to their defaults.  (Even some properties that are set from the designer are getting reset back to their defaults)

Our work around now is to override the EndInit() method and inside, after base.EndInit(), we re-set the properties there were not holding their value.

 

Is there a different way to do this?  Are we missing something?

Dimitar
Telerik team
 answered on 23 Aug 2016
3 answers
127 views

Hi,

does the ChartView support huge amounts of data? I found using ~220k datapoints as a source for various barseries' takes a really long time. In essence the chart uses a linear vertical axis and a datetimecategorial axis to sort the data and all datapoints are visualized by barseries' which may be stacked. Is there a way to optimize performance and setup time of charts? Please note I am using RadChartElements, so I cannot access the full functionality of RadChartViews.

BR

Hristo
Telerik team
 answered on 23 Aug 2016
3 answers
331 views

This issue can be seen in the Telerik Demo Application - UI for WinForms.  In the list at the left, select "DropDown & List".  From the DropDownList group of demos, select "Auto complete" (the one with the list of countries and their flags).  When the list is first displayed the dropdown list is opened and focus is in the keyin field.  Key in the letter 'C'.  You will see the list of countries that begin with 'C' over the original list of all countries.  See the attached image.

Is this a defect?  Is there a way to work around the issue?

Ralitsa
Telerik team
 answered on 23 Aug 2016
1 answer
172 views

hi

how can change color or animate or enable chnage when user mouse over tiles?

in regular nothing happened when user mouse over tiles. is there any solution?


thanks
Dimitar
Telerik team
 answered on 23 Aug 2016
7 answers
201 views

Hi,

if datasource contains date/time field, it is expanded into Year, Quater, Month, etc. Is it possible to add custom aggregate e.g. Quater of hour (15 mins interval)?

Thanks

Alex

 

Alex Dybenko
Top achievements
Rank 2
 answered on 23 Aug 2016
15 answers
349 views
Hi there

How do I modify the order in which appointments are displayed within a Scheduler?

I have set the EventProvider Sort property to the name of the data column I want to sort by, but it does not seem to change what is displayed in the control

Thanks
Andy
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 22 Aug 2016
2 answers
143 views

Hi!

I have problem with one of option from default ColumnHeaderContextMenu - after choose option Select Visible Columns (RadGridStringId.ColumnChooserMenuItem) we can see window that is always top. I focused my browser and this small window is still on top. How can I fix it?

Kamil
Top achievements
Rank 1
 answered on 19 Aug 2016
14 answers
480 views
Hi
    I am using gridview with columnGroupsView as viewdefination and setting some columns manually as

 

While exporting the content of gridview to excel i am getting the below error but if i set the view defination as tableview it works fine.

Error :System.ArgumentOutOfRangeException was unhandled
  Message="Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index"

Getting the above error for:

 

 

exporter.RunExport(fileName.ToString())  where exporter is object of ExportToExcelML

Columns of gridview are:

columnGroupsView = New ColumnGroupsViewDefinition()

 

columnGroupsView.ColumnGroups.Add(

New GridViewColumnGroup("City"))

 

columnGroupsView.ColumnGroups.Add(

New GridViewColumnGroup("Details"))

 

 

columnGroupsView.ColumnGroups(0).Rows.Add(New GridViewColumnGroupRow())

 

columnGroupsView.ColumnGroups(0).Rows(0).Columns.Add(gridViewStaus.Columns(

"LOCATION"))

 

columnGroupsView.ColumnGroups(0).Rows(0).Columns.Add(gridViewStaus.Columns(

"ID"))

 

 

columnGroupsView.ColumnGroups(1).Groups.Add(New GridViewColumnGroup("Fault"))...

 

 


Please help!

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 19 Aug 2016
Narrow your results
Selected tags
Tags
GridView
General Discussions
Scheduler and Reminder
Treeview
Dock
RibbonBar
Themes and Visual Style Builder
ChartView
Calendar, DateTimePicker, TimePicker and Clock
DropDownList
Buttons, RadioButton, CheckBox, etc
ListView
ComboBox and ListBox (obsolete as of Q2 2010)
Form
Chart (obsolete as of Q1 2013)
PageView
MultiColumn ComboBox
TextBox
RichTextEditor
PropertyGrid
Menu
RichTextBox (obsolete as of Q3 2014 SP1)
Panelbar (obsolete as of Q2 2010)
PivotGrid and PivotFieldList
Tabstrip (obsolete as of Q2 2010)
MaskedEditBox
CommandBar
PdfViewer and PdfViewerNavigator
ListControl
Carousel
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
CollapsiblePanel
LayoutControl
ShapedForm
SyntaxEditor
Wizard
TextBoxControl
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
RibbonForm
Styling
Barcode
PopupEditor
TaskBoard
NavigationView
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Overlay
Security
LocalizationProvider
Dictionary
SplashScreen
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
SpeechToTextButton
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?