Telerik Forums
UI for WinForms Forum
1 answer
56 views
When i move a tileElement from the group A to a group B or Group C... how can i know what group the tileElement went? but just after i release the tileElement in the group. 

i've tried this code:

public Form1()
{
    InitializeComponent();
    this.radPanorama1.PanoramaElement.DragDropService.Stopping += new EventHandler<Telerik.WinControls.RadServiceStoppingEventArgs>(DragDropService_Stopping);
}
 
void DragDropService_Stopping(object sender, Telerik.WinControls.RadServiceStoppingEventArgs e)
{
    if (e.Commit)
    {
        RadTileElement tile = this.radPanorama1.PanoramaElement.DragDropService.Context as RadTileElement;
    }
}
and then i tried to get tile.parent.parent... but doing this i get the source group... not the destination....
thanks
Stefan
Telerik team
 answered on 13 Aug 2013
2 answers
80 views
Hello,

I have a GridView with grouping and custom group summaries as shown in the attachment. I'm using a custom content cell for the group rows, as adviced in a former forum post:
http://www.telerik.com/community/forums/winforms/gridview/group-header---put-aggregate-in-correct-column.aspx

The problem is, that the group summaries don't scroll. Please advice what to do.

Regards,
Pirjo
Pirjo
Top achievements
Rank 1
 answered on 13 Aug 2013
1 answer
141 views
Hi,
I use Visual Studio 2012.
I use Telerik WinForm with version 2013.2.724.40.

In my RadForm, I use 2 Treeviews. The first Treeview is filled out with a Datasource. 
I want drag & drop a node to the second Treeview. 
I have modified the property AllowDragDrop and AllowDrop in True for all treeview.

When i drag & drop the first node to the other Treeview, it's ok. The node is deleted in the first Treeview and it is created in the second. 
But if I drag & drop an other node, the drag & drop not works and the nodes moves in the first treeview. 

I want to know if you've seen this problem. And if you do not have a  code for around this problem.

best regard,
 
Stefan
Telerik team
 answered on 13 Aug 2013
4 answers
231 views
I need a control like WPF's RadExpander but for Winforms. Is it possible?
Thanks for you time.
Nikolay
Telerik team
 answered on 12 Aug 2013
1 answer
85 views
I have a very basic code that Export data from a GridView using Visual Basic. The problem I am encountering is the Excel file contains many extra space strings
For example instead '123', it is '123          '

Is there anyway to get rid of these extra strings?

Stefan
Telerik team
 answered on 12 Aug 2013
1 answer
110 views
Hi, I'm using the Telerik RadDockWorkspace of the CAB Enabling Kit in a CAP project, and when I try to use the BackgroundImage property of the Workspace, it doesn't work. Nothing happens, I still see the default gradient blue background of the Workspace.

Here is my code :

Telerik.WinControls.CompositeUI.RadDockWorkspace appWorkSpace = WorkItem.Workspaces.AddNew<Telerik.WinControls.CompositeUI.RadDockWorkspace>("myworkspace");

 


appWorkSpace.Dock = DockStyle.Fill;

appWorkSpace.DocumentTabsAlignment = Telerik.WinControls.UI.TabStripAlignment.Top;

appWorkSpace.DocumentManager.BoldActiveDocument = true;

appWorkSpace.DocumentManager.DocumentInsertOrder = Telerik.WinControls.UI.Docking.DockWindowInsertOrder.ToBack;

appWorkSpace.ShowDocumentCloseButton = true;

 


appWorkSpace.BackgroundImage = myImage; // whatever the image


Any ideas why it isn't working ?? I used to use a Workspace built with the Weifenluo dll and the BackgroundImage property worked properly with that workspace.

Any help would be appreciated !!

jjeffrroyy

Anton
Telerik team
 answered on 12 Aug 2013
2 answers
44 views
When I add a new custom color it will add under all the other colors so they can be reused, however as soon as I save or update it does not save and you have to manually add them everytime. How easy would it be to save all custom colors on update/save?

As an alternative we can add the colors needed in code behind with radDescription.Colors.Add("#ffcccc"); on page load (also listing all the standard colors). This works fine until "Update" at which point clicking on the border/background icons again does not do anything in IE9 (only tested with IE9 as it is what the client uses).

Can anyone help please?
Ianko
Telerik team
 answered on 12 Aug 2013
2 answers
80 views
This is a very frustrating bug, and I can't get anywhere with it.  Let me try to explain the situation.  I've created a brand new project and form to demonstrate the issue.  But let me start by saying I have 20+ machines I can replicate this bug, but not on any of my development machines.  That alone makes this such a difficult situation to debug.

Load a grid with a bunch of data.
After it first loads, scroll down more than one "page" worth of data.
click on a row, and suddenly the grid will "jump" or "shift" back to the top.  The focus will be set to the row position equal to where you clicked.  So if I'm showing 10 records at a time, based on the size of the overall grid, and the height of the rows.  If I scroll so the 20th row is at top, and click on the 22nd row(2 from the top), it will jump to the 2nd row and set focus there.

So brand new form, brand new project with a button and gridview on it.  Then click event of the button has this code

FYI I'm currently using 2012.3.1017.20


list = new List<DateTime>();
DateTime date = DateTime.Now;
for (int i = 0; i < 10000; i++)
{
    list.Add(date.AddDays(i));
}
grid.DataSource = list;
grid.BestFitColumns();
public List<DateTime> list { get; set; }

Again, I can't get this to fail for me on my machine, but I certainly have many client machines in which it fails.

Any help would be much appreciated.  Thanks in advance.
Ivan Petrov
Telerik team
 answered on 12 Aug 2013
1 answer
175 views
I have a GridView with a  GridViewDateTimeColumn, and I have managed to figure out how to display no text in the editor when the cell value is null, however I need to also allow the user the  option of setting the value to null if a value exists.

When the pop up editor appears, i cannot see a way to customize the popup or the text editor to allow this to happen.

        private void gvLibrary_CellEditorInitialized(object sender, GridViewCellEventArgs e)
        {
            GridTimePickerEditor editor = e.ActiveEditor as GridTimePickerEditor;
            if (editor != null)
            {
                RadTimePickerElement editorElement = editor.EditorElement as RadTimePickerElement;
                editorElement.Format = "HH:mm:ss";
                editorElement.NullText = "";
                editorElement.NullValue = 0;
                if (e.Value != null)
                {
                    editorElement.Value = e.Value; 
                }
                else
                {
                    ((TextBox)(editorElement.MaskedEditBox.TextBoxItem.TextBoxControl)).Text = "";
                }
            }
        }

Can you provide me with the necessary elements to allow the user to delete values in the text box or from the pop-up and a way to ensure that the editor's null value is passed to the grid cell?

Thank you,

Vania

George
Telerik team
 answered on 09 Aug 2013
5 answers
422 views
Hi i navigate RadGrid view using following code

Private Sub DOCFirstDtn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles DOCFirstDtn.Click
     If DocumentsGV.Rows.Count > 0 Then
         DocumentsGV.Rows(0).IsSelected = True
         DocPreviousBtn.Enabled = False
         DocNextBtn.Enabled = True
     End If
 End Sub
 Private Sub DocLastBtn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles DocLastBtn.Click
     If DocumentsGV.Rows.Count > 0 Then
         DocumentsGV.Rows(DocumentsGV.Rows.Count - 1).IsSelected = True
         DocNextBtn.Enabled = False
         DocPreviousBtn.Enabled = True
     End If
 End Sub
 Private Sub DocPreviousBtn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles DocPreviousBtn.Click
     If DocumentsGV.Rows.Count > 0 Then
         Dim SelectedRowIndex As Integer = DocumentsGV.SelectedRows(0).Index
         If SelectedRowIndex = 1 Then
             DocPreviousBtn.Enabled = False
         Else
             DocPreviousBtn.Enabled = True
         End If
         DocNextBtn.Enabled = True
         DocumentsGV.Rows(SelectedRowIndex - 1).IsSelected = True
     End If
 End Sub
 Private Sub DocNextBtn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles DocNextBtn.Click
     If DocumentsGV.Rows.Count > 0 Then
        
         Dim SelectedRowIndex As Integer = DocumentsGV.SelectedRows(0).Index
         Dim vvv As Integer = DocumentsGV.SelectedRows.Count
         If SelectedRowIndex = (DocumentsGV.Rows.Count - 2) Then
             DocNextBtn.Enabled = False
         Else
             DocNextBtn.Enabled = True
         End If
         DocPreviousBtn.Enabled = True
         DocumentsGV.Rows(SelectedRowIndex + 1).IsSelected = True
     End If
 End Sub

but if i group RadGrid then the Selected index of RadGrid does not change
if i change also still hold the previousSelected index
how to solve this
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 09 Aug 2013
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?