Telerik Forums
UI for WinForms Forum
1 answer
79 views
Dear All,

Is there any way to change the margin between Axis ticks and Item Labels ?? please check the attached image for more details.

Thank you
Evgenia
Telerik team
 answered on 02 Jun 2011
1 answer
193 views
Hi all,

I`m using rad calendar with multiview (1 row 4 columns). RangeMinDate is set to 01.01.CurrentYear-1 and RangeMaxDate is set to 31.12.CurrentYear+2.
When I`m navigating to the last allowed month it is also visible 3 month from year 2014.
I would like those not allowed months (greater than  RangeMaxDate ) not to be displayed at all, or, if it is possible always display the last month in the range as the last (4th) month in the view, not the first one.
See attached pictures.
Also I wonder is it possible to change in runtime the backcolor and fore color of the selected dates.

Thanks!
Ivan Todorov
Telerik team
 answered on 01 Jun 2011
8 answers
177 views
Hi, I have a customer form with these information: Customer ID, Customer Name, Customer Address......
On the form, I have a save button, when i click save button, this will save customer information and I write a function to check if customer name is null or empty.
I use hot key Ctrl + S for Save button
protected override bool ProcessDialogKey(Keys keyData)
        {
            switch (keyData)
            {               
                case Keys.Control | Keys.S:
                    btnSave_Click(btnSave, EventArgs.Empty);
                    break;
            }
            return base.ProcessDialogKey(keyData);
        }
When I press hot key Ctrl + S, if Customer Name is null or empty, i will show the messagebox: "Customer Name is not null or empty" and I set textbox customer name is focus. But after i set focus to textbox, "S" is added into textbox customer name.
I don't know why, can somebody help me...
Stefan
Telerik team
 answered on 31 May 2011
1 answer
173 views
I am using the latest version of the winforms controls (2011.1.11.419).  When exporting to PDF, my code is not raising the HTMLCellFormatting event.  Here is the pdf export code.

Dim oPdfExporter As ExportToPDF = New ExportToPDF(Me._oSelectedGrid)
oPdfExporter.FileExtension = "pdf"
oPdfExporter.PageTitle = "Dealer Inventory"
oPdfExporter.Scale = 0.5F
oPdfExporter.PdfExportSettings.PageHeight = 210
oPdfExporter.PdfExportSettings.PageWidth = 297
oPdfExporter.ExportVisualSettings = False
oPdfExporter.HiddenColumnOption = HiddenOption.DoNotExport
oPdfExporter.HiddenRowOption = HiddenOption.DoNotExport
oPdfExporter.SummariesExportOption = SummariesOption.DoNotExport
oPdfExporter.FitToPageWidth = True
oPdfExporter.PdfExportSettings.FontType = Telerik.Apoc.Render.Pdf.FontType.Embed
Dim sTempPath As String = My.Computer.FileSystem.SpecialDirectories.CurrentUserApplicationData & "\Dealer_Inventory.pdf"
oPdfExporter.RunExport(sTempPath)
oPdfExporter = Nothing

Here is the HTMLCellFormatting:
Private Sub oPdfExporter_HTMLCellFormatting(ByVal sender As Object, ByVal e As Telerik.WinControls.UI.Export.HTML.HTMLCellFormattingEventArgs)
    If e.GridColumnIndex = 1 AndAlso e.GridRowInfoType.Equals(GetType(GridViewDataRowInfo)) Then
        e.HTMLCellElement.Value = "Test value"
        e.HTMLCellElement.Styles.Add("background-color", ColorTranslator.ToHtml(Color.Orange))
    End If
End Sub

Any ideas why the the oPdfExporter_HTMLCellFormatting event is not raised?

Thanks.
Richard Slade
Top achievements
Rank 2
 answered on 31 May 2011
7 answers
467 views
In another forum post, it was implied that right-clicking on a tree node did not change the selected node (and fire SelectedNodeChanged) but it appears that in my TreeView is does.

Is there any way to disable this behavior?  I am using the right-click to launch a context menu but do not want the selected node to change.

I'm not using multiselect.
Boryana
Telerik team
 answered on 31 May 2011
14 answers
239 views
I am trying to set up a hierarchical RadGridView in my application. I have a function that returns a DataSet with two tables and a table relation directly from a SQL Server 2008 R2 database. However, I am unable to get the grid to display more than one table when trying to use the AutoGenerateHierarchy property. I see a reference to an AutoGenerateHierarchyFromDataSet property in the Binding to Hierarchical Data Automatically entry for the RadGridView control in the help, but I cannot locate this property in the control.

I need to do all of this in code, rather than graphically, due to several others using the same code base and having to dynamically connect to a database server and database at runtime. In this instance, dynamically can also be taken to mean that the server and database names are filled in from a configuration file at application launch.
Julian Benkov
Telerik team
 answered on 31 May 2011
6 answers
240 views

Hi,

 We are not able to find out a event for mouse over on auto hide docking panel  and it get displayed and it get hide. Can you please help here?

What are we actually trying accomplish is as follows:

 We added a RadDock on MDI form. RadDock contains two dockable tool windows. Property ‘MainDocumentContainerVisible’ of RadDock is set to false. Initally size of RadDock is set to very small in width, when panel gets docked size of RadDock  is reset , with this we were able to show all tool window in appropiate size in case of docking. But on mouse over tool window is showing with its default size. We tried to set size of tool window using AutoHideSize property but it is not working. If we able to get any event for auto hide occurance then we will be able to add logic to show tool panel appropiately. Can you please help here?

Nikolay
Telerik team
 answered on 30 May 2011
1 answer
72 views
we are experiencing speed issues when we have multiple resources added to the scheduler in day view and scrolling through the resources.

the current setup is the scheduler is configured with 10+ resources, and showing only 8 resources at a time, we first experienced the issue when we had the schedule for all the resources fully booked up for one day, on the day view.  When the user scrolls left to right on the resources it could take up to 4 seconds for the calendar to repaint the change.

We have now removed all appointments, and the scrolling still takes up to 4 seconds to scroll.

We are using the default office theme, and only the minimal amount of information for the resource. Is there any performance parameter that could help with this issue.

Thank you
Ivan Todorov
Telerik team
 answered on 30 May 2011
3 answers
191 views
Hi,

I created a theme called "M4" and tried to use it for Telerik Ajax RadScheduler, I followed all the steps  mentioned in Video"http://tv.telerik.com/watch/aspnet/visualstylebuilder/visual-style-builder-aspnet-ajax-overview" but still it doesnot work.

1. Add all folders and .css file for Scheduler in
~/App_Themes/Theme1 folder
2. On Radscheduler  control, set skin="M4" and EnableEmbeddedSkins="false"

Am I missing anything?
Prava
Peter
Telerik team
 answered on 30 May 2011
1 answer
105 views
I'm using Q1 2011.

I simply want to change the style of a specific set of dates that are determined at runtime.

I'm overriding the ElementRender event and setting properties like e.Element.Font, e.Element.ForeColor, etc. This works great. For instance:

private void calSchedule_ElementRender(object sender, RenderElementEventArgs e)
{
    if(myDates.Contains(e.Day.Date))
    {
        e.Element.Font = new Font(e.Element.Font.FontFamily, 9f, FontStyle.Bold);
        e.Element.ForeColor = Color.Green;
        e.Element.AutoToolTip = true;
    }
}


The problem is, from that point on, the cell will continue to render those styles even if the date inside that cell changes. (Like when the calender's month is change.)

Since the "correct" style for the cell can vary, I can't simply reset the values manually. How can I resolve this?
Ivan Todorov
Telerik team
 answered on 28 May 2011
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)
Chart (obsolete as of Q1 2013)
Form
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
Diagram, DiagramRibbonBar, DiagramToolBox
GanttView
Panorama
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
ProgressBar
CheckedDropDownList
TrackBar
MessageBox
Rotator
SpinEditor
StatusStrip
CheckedListBox
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
DataEntry
ScrollablePanel
ScrollBar
WaitingBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Barcode
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
NavigationView
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
Licensing
BarcodeView
BreadCrumb
Security
LocalizationProvider
Dictionary
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
ToolbarForm
NotifyIcon
DateOnlyPicker
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?