Telerik Forums
UI for WinForms Forum
5 answers
184 views
Hi,

Can I resize the scrollbar in RadPanorama so that it shows bigger ?

REgards,
Daniel
George
Telerik team
 answered on 01 May 2014
2 answers
85 views
Hi,

I am using the hierarchical Gridview as some sort of navigation tree.
Typically, the Grid is positioned on the left pane, the right pane contains detail data an more.

When the user selects a row, from any level in the grid, extra data is loaded and displayed on the right pane.
Mostly, the detail pane contains a lot more data, than is displayed in the navigation grid. Depending on the network speed, this can take a bit of time.

My problem is that the grid, used as a data navigation aid, still accepts user interaction while detail data is being retrieved from the database.

Now I have to options:
1. fetch detail data in a separate thread, and abort when the user selects another row.
2. keep the grid (navigation aid) from processing user interaction while detail data is loading.

My question is,
can user interaction with the grid be placed on the same thread, so that it has to wait for the detail data being loaded?

Thanks.
Dimitar
Telerik team
 answered on 01 May 2014
1 answer
56 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
96 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
77 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
742 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
147 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
150 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
138 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
107 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
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
Barcode
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Licensing
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
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?