Telerik Forums
UI for WinForms Forum
5 answers
158 views

Hi,

I'd like to export radchartelements listed in a radgridview as pdf or printable page. It works half way because Telerik exports in both cases (pdf or print) a table with rows containing the type which is passed as datasource onto the gridview. Taking a picture with .PrintPreview(Me.RadPrintDocument1) returns a blank page, so this is not helping either. What am I missing here?

BR

Hristo
Telerik team
 answered on 25 Aug 2016
4 answers
815 views

Hi, 

Is it possible to place the progressbar inside the statusstrip to the right hand side? Seems all the controls at the bottom are placed from left to right. But I would like to have some on the right, and some on the left. 

Thanks, 

 

Carlitos

Dimitar
Telerik team
 answered on 25 Aug 2016
9 answers
1.8K+ views

I have a MultiColumnComboBox who's datasource is set to a BindingSource.DataSource. The BindingSource.DataSource is set to a BindingList<Person> of objects who's first item is Null. The DropDown displays correctly with the first row being blank. I then bind the MultiColumnComboBox's Value property to Job.Person property. The initial selected row for the MultiColumnComboBox is the Null record. When I select row 2 (Person: John Doe) when the current selection was the Null row, the Job.Person property is not updated. If I change the selection to a row 2 (Person: John Doe) and then row 3 (Person: Peter Paul), Job.Person property is updated.

This is very confusing to the user as it appears that they've updated the field but it hasn't updated the actual Job.Person property. And if the user needs to set Job.Person property back to Null by selecting the first row (the null row), it doesn't update the Job.Person property. Is there a proper way to be able to use a Null row in a MultiColumnComboBox?

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 24 Aug 2016
3 answers
313 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
184 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
181 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
130 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
341 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
181 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
208 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
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
WaitingBar
GroupBox
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
NavigationView
BindingNavigator
RibbonForm
Styling
Barcode
PopupEditor
TaskBoard
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Overlay
Security
LocalizationProvider
Dictionary
TreeMap
StepProgressBar
SplashScreen
Flyout
Separator
SparkLine
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
SpeechToTextButton
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?