Telerik Forums
UI for WinForms Forum
1 answer
133 views
I was expecting that calling AddNodeByPath would automatically create the necessary parent nodes similar to how Directory.Create() works.

treeView.AddNodeByPath("General\\Billing\\February\\Report.txt")
treeView.AddNodeByPath("General\\Billing\\March\\Report.txt")
treeView.AddNodeByPath("General\\Billing\\April\\Report.txt")

However, it just seems to add them all to the closest node it could find (if there are no nodes, then a bunch of "Report.txt" will be in the root node).

I have come up with the following to solve this issue, but I'm wondering if there's an easier way?

private RadTreeNodeCollection AddNode(string path)
{
    if (path == String.Empty)
        return treeView.Nodes;
 
    string node = Path.GetFileName(path);
    RadTreeNodeCollection parent = AddNode(Path.GetDirectoryName(path));
 
    if (parent.Contains(node))
        return parent[node].Nodes;
    else
        return parent.Add(node).Nodes;
}

Is this a bug, or is it documented somewhere that AddNodeByPath() doesn't create the necessary parent nodes?
George
Telerik team
 answered on 01 May 2014
1 answer
93 views
Please see my attach files, as long i added new DataPoints into my ChartView my Grid lined become smaller and smaller and i want o set fixed size (please see my 2 screenshots - my current ChartView and the second screenshot - what i want to achieve)
pogy
Top achievements
Rank 1
 answered on 01 May 2014
5 answers
194 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
92 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
66 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
106 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
86 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
791 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
153 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
160 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
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
Documentation
SplitContainer
Map
DesktopAlert
CheckedDropDownList
ProgressBar
TrackBar
MessageBox
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
CollapsiblePanel
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
Styling
Barcode
PopupEditor
RibbonForm
TaskBoard
Callout
NavigationView
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Security
LocalizationProvider
Dictionary
SplashScreen
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?