Telerik Forums
UI for WinForms Forum
6 answers
125 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
182 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
96 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
79 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
142 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
84 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
311 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
96 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
6 answers
1.0K+ views
hi guys,
i don't know whether its a bug or i'm accessing it wrong , that's why i came here to get some help from the experts.

in radgridview a set of data is loaded using dataset, so when some clicks on the row it will display the row values in a label above.
so what i have done is working 100% untill i do the following, if i use the gridview's bulit in filtering option and filter the results , i'm getting the value of some other row , i have attached a screenshot. as u can see in it somerow is selected but it's displaying someother row name in the textbox above, here is the code i use, i use VC# 2010 with rad Q2 2012.

private void radGridView1_CurrentRowChanged(object sender, CurrentRowChangedEventArgs e){
 txt_Name.Text = radGridView1.Rows[radGridView1.CurrentCell.RowIndex].Cells["NAME"].Value.ToString();
}

please let me know  if u need more info

thanks suren
Brendan
Top achievements
Rank 1
 answered on 21 Nov 2014
1 answer
143 views
Hello,
I using bindinglist with Self Reference to bind data a treeview,
When adding a new object to the bindinglist, the treeview GUI appears all nodes was duplicated (likes 2 trees)
When adding a node to the current node of the tree, the binding list was added new item of course this item doesn't have enough meta data for an object.

Is there any way to add a object to bindinglist and the treeview GUI display correctly?

Thanks in advanced.
Nguyen
Dimitar
Telerik team
 answered on 21 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)
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
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
CheckedDropDownList
ProgressBar
TrackBar
MessageBox
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
Styling
Barcode
BindingNavigator
PopupEditor
RibbonForm
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
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
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?