Telerik Forums
UI for WinForms Forum
2 answers
538 views
Hi, 

I have created a simple bar chart but I would like to increase the distance between the values on x-axis and get the bars a little bit more longer.

There is a simple ways to do it?

here I attach my simple chart.

Thanks a lot
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 28 Nov 2014
13 answers
1.4K+ views
hi,
i am new to telerik controls and winforms. I am using RadGridView, i want to do some calculations on each item data bound, is there any item data bound event i can capture and do some operation before binding it to gridview.

Thanks,
Sandeep
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 28 Nov 2014
6 answers
161 views
Hi, this is probably more of .net question than a Telerik one but I read this article:

http://www.telerik.com/help/winforms/themes-using-default-themes.html

and I understand how to set the them but where do I put the code to override onload?  do I do this on one form and then inherit all other forms from that one?
 
Is this the same for WinForms and radForms?
Al
Top achievements
Rank 1
Iron
Iron
Iron
 answered on 28 Nov 2014
2 answers
221 views
hello,
I have a schedule crare delel rooms of a hotel like in the picture, I can do it with the schedule object or do I utuilizzare the gridview. An example of plannig that I create is posted as an image
Fabio Cirillo
Top achievements
Rank 1
 answered on 28 Nov 2014
1 answer
116 views
Hi,

I have 2 radgridview. From gridOCC (source), I dragdrop its id to another grid grdDest (Destination). After dragdropping, I get error when I scroll grdOCC. Nothing has been changed in grdOCC, but still I get error on scrolling. I have the code below (this is underlined below), to exit if the user clicks on the scroll bar. Still it gives error. The code that is bold is where the error kicks out. I have shown the error I am getting all the way below in the post.

Here is the code that throws exception:

Private Sub grdOCC_MouseDown(sender As Object, e As System.Windows.Forms.MouseEventArgs) Handles grdOCC.MouseDown
Dim iOCCRowIndex As Integer = 0
Dim iOCCColIndex As Integer = 0

If TypeOf (grdOCC.FocusedElement) Is Telerik.WinControls.UI.GridHeaderCellElement Then Exit Sub
If TypeOf (grdOCC.FocusedElement) Is Telerik.WinControls.UI.GridTableHeaderCellElement Then Exit Sub
If TypeOf (grdOCC.FocusedElement) Is Telerik.WinControls.UI.GridRowHeaderCellElement Then Exit Sub
If TypeOf (grdOCC.FocusedElement) Is Telerik.WinControls.UI.RadCheckBoxEditorElement Then Exit Sub
If TypeOf (grdOCC.FocusedElement) Is Telerik.WinControls.UI.GridFilterCellElement Then Exit Sub
If TypeOf (grdOCC.FocusedElement) Is Telerik.WinControls.UI.GridCheckBoxCellElement Then Exit Sub
If TypeOf (grdOCC.FocusedElement) Is Telerik.WinControls.UI.RadScrollBarElement Then Exit Sub
If TypeOf (grdOCC.FocusedElement) Is Telerik.WinControls.UI.ScrollBarThumb Then Exit Sub

If TypeOf (grdOCC.FocusedElement) Is Telerik.WinControls.UI.GridCellElement Then
    Dim gridPointOCC As Point = grdOCC.PointToClient(Windows.Forms.Cursor.Position)
    Dim elm As Telerik.WinControls.UI.GridDataCellElement

    If gridPointOCC.GetType = Nothing Then Exit Sub
    elm = grdOCC.ElementTree.GetElementAtPoint(New Point(gridPointOCC.X, gridPointOCC.Y))
    If elm.RowIndex < 0 Then Exit Sub
    iOCCRowIndex = elm.RowIndex
                
    If iOCCRowIndex >= 0 And elm.ColumnInfo.Name = "ID" Then
        grdOCC.Update()
        iOCCQty = CInt(grdOCC.CurrentRow.Cells("quantity").Value)
        strOCCExch = grdOCC.CurrentRow.Cells("exch_code").Value.ToString
        strOCCSide = grdOCC.CurrentRow.Cells("side").Value.ToString
        strOCCPC = grdOCC.CurrentRow.Cells("pc").Value.ToString
        strOCCSymbol = grdOCC.CurrentRow.Cells("o_sym").Value.ToString
        dblOCCStrike = CDbl(grdOCC.CurrentRow.Cells("strk").Value)

        grdOCC.DoDragDrop(grdOCC.CurrentRow.Cells(1).Value.ToString, DragDropEffects.Copy) 'OCCID
     End If
End If
End Sub

The error I get is:
---------------------------
Grid OCC MouseDown - Fix Exceptions
---------------------------
Unable to cast object of type 'Telerik.WinControls.UI.RadScrollBarElement' to type 'Telerik.WinControls.UI.GridDataCellElement'.
---------------------------
OK  
---------------------------
Dimitar
Telerik team
 answered on 27 Nov 2014
0 answers
113 views
good Morning,
a client of mine who has a hotel asked me to create a schedule of the rooms, as in the picture I sent. I was wondering if Telerik and gridview or another component of Telerik could create this kind of planning and if you like, so that use 30 days free and then purchase the license.

I accept any advice thanks
Fabio Cirillo
Top achievements
Rank 1
 asked on 27 Nov 2014
3 answers
191 views
We had an issue where a multi-page document would fail to print with "Object Reference no set" with the PDFViewer set to OnDemand. Also OnDemand was the only option available. The way we got around this is to set RadPdfViewer1.ReadingMode = 0 and this seems to get around the issue. Is this a known bug?
Ralitsa
Telerik team
 answered on 27 Nov 2014
1 answer
100 views
Hello,
Does the pivot grid have function to export data to pdf file?
Thanks.
Nguyen
Stefan
Telerik team
 answered on 26 Nov 2014
3 answers
354 views
I have an AutoCompleteBox with a value member of ProductID and a display member of Description. I would like to allow the users to auto-search by the Description field, but when they select an item from the list, I would like the AutoComplete textbox to show the ProductID in the text block when selected. Here is the example code I am using:

radAutoCompleteProductId.AutoCompleteDisplayMember = "Description";
radAutoCompleteProductId.AutoCompleteValueMember = "ProductID";           
radAutoCompleteProductId.ListElement.VisualItemFormatting += OnListElementVisualItemFormatting;
radAutoCompleteProductId.DropDownMinSize = new Size(400, 300);
radAutoCompleteProductId.AutoCompleteMode = AutoCompleteMode.Suggest;  

private void OnListElementVisualItemFormatting(object sender, VisualItemFormattingEventArgs e)
{
       var dataItem = e.VisualItem.Data;
       e.VisualItem.Text = string.Format("{1} ({0})", dataItem.Text, dataItem.Value); 
}

Ralitsa
Telerik team
 answered on 26 Nov 2014
1 answer
146 views
Hello,

How can I add shortcut keys to menus?
For example I wish to add the shortcut "Ctrl + S" to the Save menu
Also I can I make this shortcut to be visible on the menu (like standard window menus)

Thanks!
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 25 Nov 2014
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
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?