Telerik Forums
UI for WinForms Forum
1 answer
81 views
Greetings.

I'm experimenting with the latest demo version and running into an issue.  Mind you, this seems like an edge case based on what I've read from others, but hopefully you can guide me.

I have an unbound RadGridView.  It's unbound because I need to support drag/drop resorting within itself, simple inline editing and drag/drop to a RadCalendar.  All of this is functioning well  (I made extensive use of various how-tos on drag/drop from RadGridViews).

However, when I drag a row from the RadGridView to the RadCalendar, I'm unable to detect what day I've dragged the row onto.  This would be trivial if I were using the drag/drop events of the Calendar itself, but I'm not.  I'm using the Drag/Drop services I've declared as part of my extended RadGridView (similar to the documentation here:  http://blogs.telerik.com/winformsteam/posts/13-05-15/extending-radgridview-to-enable-row-drag-and-drop-functionality )

My drop event looks like this...
 
private void dragDropService_PreviewDragDrop(object sender, RadDropEventArgs e)
       {
           Console.WriteLine(e.HitTarget);
           var el = e.HitTarget as RadCalendarElement;
           if (el != null)
           {
               GridDataRowElement draggedRow = ((SnapshotDragItem)e.DragInstance).Item as GridDataRowElement;
 
               if (draggedRow != null)
               {
                   int TaskID = (int)draggedRow.Data.Cells["TaskID"].Value;
                   // determine the date we dragged to, and update the task.
                   return;
               }
           }

How can I figure out which day I dropped the row onto?  I don't seem to be able to get anything out of RadCalendarElement, nor can I find a relevant CalendarCellElement.  Help!  :)

Thanks,
Elsa


Dimitar
Telerik team
 answered on 01 May 2014
1 answer
129 views
Hey,

For my current application security of viewed PDF files is the major aspect.

I added the following settings with PdfSharp

            securitySettings.PermitAccessibilityExtractContent = false;
            securitySettings.PermitAnnotations = false;
            securitySettings.PermitAssembleDocument = false;
            securitySettings.PermitExtractContent = false;
            securitySettings.PermitFormsFill = false;
            securitySettings.PermitFullQualityPrint = false;
            securitySettings.PermitModifyDocument = false;
            securitySettings.PermitPrint = false;

It seems that the Telerik Component does not recognize these settings.

So is it possible to deactivate the strg+a (select all) / strg+c (copy) shortcuts

Buttons for Printing and Select Text are already deactivated.

Thanks

Matthias
Dimitar
Telerik team
 answered on 01 May 2014
3 answers
99 views

I am trying to copy and paste rows from my RadGridView to Excel. It works as expected when the first and last columns are visible, but if the first column is hidden the opening TABLE/TR tags in the HTML format on the clipboard are lost, and if the last column is hidden the matching closing tags are lost.

Repro: (VS2012, RadGridView Q1 2014)
Add a datasource with three columns. Right click on row header -> Copy, Paste into Excel.
Expected: The data spans three columns.
Actual: The data spans three columns. Yay!
Clipboard contents:

Version:1.0
StartHTML:00000097
EndHTML:00000239
StartFragment:00000133
EndFragment:00000203
<HTML>
<BODY>
<!--StartFragment--><TABLE><TR><TD>3</TD><TD>Tools</TD><TD>Electronics</TD></TR></TABLE>
<!--EndFragment-->
</BODY>
</HTML>


Hide the first column. Right click on row header -> Copy, Paste into Excel.
Expected: The data spans two columns.
Actual: All data is in a single cell.
Clipboard contents: No <TABLE><TR>.

Version:1.0
StartHTML:00000097
EndHTML:00000216
StartFragment:00000133
EndFragment:00000180
<HTML>
<BODY>
<!--StartFragment--><TD>Books</TD><TD>Chocolate</TD></TR></TABLE>
<!--EndFragment-->
</BODY>
</HTML>
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 01 May 2014
11 answers
903 views
Hello all....

I have a quick question. I'm developing an add-in for MS Project. The add-in will essentially be a pop up Windows form but it must contain a line graph which will be rendered from values in an array.

Can the Telerik Winforms controls be used on forms which are contained in an MS Office add-in?

Many thanks,

Sacha
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 01 May 2014
2 answers
166 views
When adding a RadWizard to a form and setting a theme to a dark theme, each page's background color gets set to 'White".

I can change this manually as long as you dont set a theme, if you set a theme at run time it makes the pages back ground color white again. 
Is there a way to change default back ground color ? I feel these controls should be set to transparent or at lest the forms color and not "White" specially when using a theme. 

I mean I can run a for loop and iterate through the page collections and set the background but I hope there is a better way.
Justin
Top achievements
Rank 2
 answered on 30 Apr 2014
5 answers
192 views
Hi,I have implemented a mixed mode hierarchy in my grid similar to this example
http://blogs.telerik.com/blogs/posts/11-03-07/re_mixed_hierarchy_mode_in_radgridview_for_winforms.aspx
Is it possible to assign a defaultivew of my "Folders" datatable as the source for my grid so that i can display only selected folders based on certain conditions.
I want to filter the defaultview of the table programatically so that the grid gets automaticaly updated.
The filtering option cannot be shown to the user.
George
Telerik team
 answered on 30 Apr 2014
4 answers
182 views
Hi,

I was trying to add a custom field to the EditAppointment dialog of  my scheduler. The field is a combobox and I can select a value, but the mapping doesn't work, its always null. Here are some code snippets:

MainForm:
Public Sub New()
    InitializeComponent()
  
    AddHandler Me.RadScheduler.AppointmentEditDialogShowing, AddressOf RadScheduler_AppointmentEditDialogShowing
  
    Me.RadScheduler.AppointmentFactory = New AppointmentWithNewFieldsFactory
    Me.SchedulerBindingDataSource1.EventProvider.AppointmentFactory = New AppointmentWithNewFieldsFactory
  
    Dim appointmentMappingInfo As AppointmentMappingInfo = TryCast(Me.SchedulerBindingDataSource1.EventProvider.Mapping, AppointmentMappingInfo)
    appointmentMappingInfo.Mappings.Add(New SchedulerMapping("CustomField", "CustomFieldDatabase"))
End Sub
 
    Private appointmentDialog As IEditAppointmentDialog = Nothing
    Private Sub RadScheduler_AppointmentEditDialogShowing(sender As Object, e As AppointmentEditDialogShowingEventArgs) Handles RadScheduler.AppointmentEditDialogShowing
        If Me.appointmentDialog Is Nothing Then
            Me.appointmentDialog = New AppointmentWithNewFieldsEditForm()
        End If
        e.AppointmentEditDialog = Me.appointmentDialog
    End Sub

AppointmentWithNewFields Class:
Imports Telerik.WinControls.UI
 
Public Class AppointmentWithNewFields
    Inherits Appointment
 
    Public Sub New()
        MyBase.New()
    End Sub
 
    Private _CustomField As Integer
 
    Public Property CustomField() As Integer
        Get
            Return Me._CustomField
        End Get
        Set(value As Integer)
            If Me._CustomField <> value Then
                Me._CustomField = value
                Me.OnPropertyChanged("CustomField")
            End If
        End Set
    End Property

AppointmentWithNewFieldsEditForm
Imports Telerik.WinControls.UI
 
Public Class AppointmentWithNewFieldsEditForm
    Inherits Telerik.WinControls.UI.Scheduler.Dialogs.EditAppointmentDialog
 
    Public Sub New()
        InitializeComponent()
    End Sub
 
    Protected Overrides Sub LoadSettingsFromEvent(ByVal ev As IEvent)
        MyBase.LoadSettingsFromEvent(ev)
 
        Dim appointmentWithNewFields As AppointmentWithNewFields = TryCast(ev, AppointmentWithNewFields)
        If appointmentWithNewFields IsNot Nothing Then
            Me.ComboBoxCustomField.SelectedValue = appointmentWithNewFields.CustomField
        End If
    End Sub
 
    Protected Overrides Sub ApplySettingsToEvent(ByVal ev As IEvent)
        Dim appointmentWithNewFields As AppointmentWithNewFields = TryCast(ev, AppointmentWithNewFields)
        If appointmentWithNewFields IsNot Nothing Then
            appointmentWithNewFields.CustomField= Me.ComboBoxCustomField.SelectedValue
        End If
        MyBase.ApplySettingsToEvent(ev)
    End Sub
 
    Protected Overrides Function CreateNewEvent() As IEvent
        Return New AppointmentWithNewFields()
    End Function

AppointmentsWithNewFieldsFactory:
Imports Telerik.WinControls.UI
 
Public Class AppointmentWithNewFieldsFactory
    Implements IAppointmentFactory
#Region "IAppointmentFactory Members"
    Public Function CreateNewAppointment() As IEvent Implements IAppointmentFactory.CreateNewAppointment
        Return New AppointmentWithNewFields()
    End Function
#End Region
End Class

What did I wrong? Can anyone help me please?

Thanks + greetings

Daniel
George
Telerik team
 answered on 30 Apr 2014
2 answers
143 views
Hello,

I have a gridview that is grouped by a job number. I have all of the rows collapsed. I can expand a group and click on a row within and get the value of the job number. Is there any way of leaving it collapsed and clicking on the group header row and get the grouped value which is the job number for me? I tried and get the error of Object reference not set to an instance of an object. I assume because the cell for that name is not in the row. Is there a different way to get it?

Thanks,

Warren

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 30 Apr 2014
2 answers
174 views
Hi,

I have RadRichTextBox, and i want to set left,right,top and bottom anchor to my richtextbox. I chance properties and save and close the form. After that, when i open again that form, richtextbox disappear. 

Please check the video that below.

https://drive.google.com/file/d/0B3o1p85K5xQTRTBTNXg3eFFMOWc/edit?usp=sharing

Tanser
Top achievements
Rank 1
 answered on 28 Apr 2014
3 answers
145 views
I am using Visual Studio 2013 w/ Telerik 2014.1.402.40 for WinForms. I've been working on implementing the Save / Load layout functionality that comes with the RadGridView and everything is working great with the exception of one thing...

My grid has a System.Windows.Forms.ContextMenuStrip assigned to it. There are various items in the menu that do different things. When I load my grid it works find. If I save a layout, then load it back to the grid, the context menu still appears, but clicking items within it no longer work.

I opened one of the saved layouts and noticed it has a section in it relating to the contextmenustrip, but I don't understand this, or why saving the grid layout would affect the ContextMenuStrip that is assigned to it.

There must be something I'm missing, thanks for any info.

Matt
George
Telerik team
 answered on 25 Apr 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
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
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?