Telerik Forums
UI for WinForms Forum
2 answers
172 views
How i can create next view (see attachment)
I need place some panel or user control above selector buttons in pageview control. Content of this panel is static and doesnt change when select another page.
Alexander
Top achievements
Rank 1
 answered on 04 Oct 2012
1 answer
109 views
Hi all,

I would like to hide a column in the radgridview after I set the datasource property to a DataTable. But the problem is, that the column count is always 0. I'm using the AutoGenerateColumns = true  to create all my columns.



Stefan
Telerik team
 answered on 04 Oct 2012
2 answers
181 views
Hello,

What is the best solution to creating a new tab at runtime which contains elements in VB.NET 2012.

For example, <from users view>

1. File > New
2. <sees new tab> <new tab contains another control for editing text>

This process can be repeated and tabs can be closed, however I still need to be notified if the text has changed inside selected tab X, and also to be able to make changes to it (aka, bold, load text from a file, etc).

Thanks in advance.
Dan
Top achievements
Rank 1
 answered on 03 Oct 2012
1 answer
320 views
Hello all,

I've got summary rows on a grid with groups at more than one level. The grouping is working great, and I've got summary rows at the grouping level I want.

But, I've got a final summary row that sums up all the groups and I don't want that, I need the totals only at the group level. In the screenshot attached, the rows highlighted green are exactly what I want. The last row, in red, is what I want to hide or disable.

Any suggestions on how to do that?

Thanks....
Stefan
Telerik team
 answered on 03 Oct 2012
6 answers
327 views
Hi,
Can you please tell me how to handle multiple alerts? Currently when i tried to show same alert multiple time, it only shows one time. Also there is no property, where i can find if alert is visible.

Also can we drag desktop alert from Application's system tray icon, just like other application shows. Means desktop alert should be initiate from Application's system tray icon.

Please reply me as soon as possible.

Regards,
Huzaifa
SHAHROKH
Top achievements
Rank 2
 answered on 03 Oct 2012
1 answer
165 views
Hello

In my work, i need to implement cell drag and drop functionality between few RadGridView controls. I studied examples given on this forums and discovered that all examples use DataTable as data source object, but i use BindingList<object> data source and in this case same implementation does not work. My question, is it possible to implement drag and drop between gridView controls in bounded mode when i use BindingList<object> as data source ? If yes how can i do this.

In my sample code i use three gridView controls and one button. When button is pressed, rows are loaded to all gridViews, and when i want to drag and drop cells from one gridView to another. Bellow i copied sample code i was using, and attached screenshot of the UI.

Thanks in advance.

Iliya

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Telerik.WinControls;
using Telerik.WinControls.UI;
 
namespace GridViewDragDropTutorial
{
    public partial class RadForm2 : Telerik.WinControls.UI.RadForm
    {
        public RadForm2()
        {
 
            InitializeComponent();
 
            Type3ValuesDataSource = new BindingList<Value>();
            Type1ValuesDataSource = new BindingList<Value>();
            Type2ValuesDataSource = new BindingList<Value>();
 
 
            Type3ValuesGridView.AutoGenerateColumns = false;
            GridViewTextBoxColumn gridViewTextBoxColumn = new GridViewTextBoxColumn("Name""Name");
            gridViewTextBoxColumn.Width = 100;
            Type3ValuesGridView.MasterTemplate.Columns.Add(gridViewTextBoxColumn);
 
            GridViewCheckBoxColumn gridViewCheckBoxColumn = new GridViewCheckBoxColumn("CheckBoxes");
            gridViewCheckBoxColumn.Width = 50;
            Type3ValuesGridView.MasterTemplate.Columns.Add(gridViewCheckBoxColumn);
            Type3ValuesGridView.ShowColumnHeaders = false;
 
            SubscribeForGridEvents(Type3ValuesGridView);
            Type3ValuesGridView.ReadOnly = true;
            Type3ValuesGridView.MultiSelect = true;
            Type3ValuesGridView.MasterTemplate.AllowRowReorder = true;
            Type3ValuesGridView.GridBehavior = new MyBaseGridBehavior();
            Type3ValuesGridView.CellFormatting += GridViewCellFormatting;
            Type3ValuesGridView.RowFormatting += GridViewRowFormatting;
 
            Type3ValuesGridView.DataSource = Type3ValuesDataSource;
 
            Type1ValuesGridView.AutoGenerateColumns = false;
            GridViewTextBoxColumn columnLabelsGridViewColumn = new GridViewTextBoxColumn("Name""Name");
            columnLabelsGridViewColumn.Width = 210;
            Type1ValuesGridView.MasterTemplate.Columns.Add(columnLabelsGridViewColumn);
            Type1ValuesGridView.ShowColumnHeaders = false;
 
            SubscribeForGridEvents(Type1ValuesGridView);
            Type1ValuesGridView.ReadOnly = true;
            Type1ValuesGridView.MultiSelect = true;
            Type1ValuesGridView.MasterTemplate.AllowRowReorder = true;
            Type1ValuesGridView.GridBehavior = new MyBaseGridBehavior();
            Type1ValuesGridView.CellFormatting += GridViewCellFormatting;
            Type1ValuesGridView.RowFormatting += GridViewRowFormatting;
 
            Type1ValuesGridView.DataSource = Type1ValuesDataSource;
 
            Type2ValuesGridView.AutoGenerateColumns = false;
            GridViewTextBoxColumn rowLabelsGridViewColumn = new GridViewTextBoxColumn("Name""Name");
            rowLabelsGridViewColumn.Width = 210;
            Type2ValuesGridView.MasterTemplate.Columns.Add(rowLabelsGridViewColumn);
            Type2ValuesGridView.ShowColumnHeaders = false;
 
            SubscribeForGridEvents(Type2ValuesGridView);
            Type2ValuesGridView.ReadOnly = true;
            Type2ValuesGridView.MultiSelect = true;
            Type2ValuesGridView.MasterTemplate.AllowRowReorder = true;
            Type2ValuesGridView.GridBehavior = new MyBaseGridBehavior();
            Type2ValuesGridView.CellFormatting += GridViewCellFormatting;
            Type2ValuesGridView.RowFormatting += GridViewRowFormatting;
 
            Type2ValuesGridView.DataSource = Type2ValuesDataSource;
        }
 
        public BindingList<Value> Type3ValuesDataSource { getset; }
 
        public BindingList<Value> Type1ValuesDataSource { getset; }
 
        public BindingList<Value> Type2ValuesDataSource { getset; }
 
 
        private void OnStartButtonClick(object sender, EventArgs eventArgs)
        {
            InitializeDataSource(Type3ValuesDataSource);
            InitializeDataSource(Type1ValuesDataSource);
            InitializeDataSource(Type2ValuesDataSource);
        }
 
        private void InitializeDataSource(BindingList<Value> dataSource)
        {
            for (int i = 0; i < 10; i++)
            {
                Value value = new Value();
                value.Name = string.Format("Value{0}"Value.ValueIndexCounter);
                dataSource.Add(value);
 
                Value.ValueIndexCounter++;
            }
 
        }
 
 
        private void SubscribeForGridEvents(RadGridView gridView)
        {
            RadDragDropService dragDropService = gridView.GridViewElement.GetService<RadDragDropService>();
            dragDropService.PreviewDragStart += DragDropServicePreviewDragStart;
            dragDropService.PreviewDragOver += DragDropPreviewOver;
            dragDropService.PreviewDragDrop += DragDropServicePreviewDragDrop;
            //dragDropService.PreviewDragHint += new EventHandler<PreviewDragHintEventArgs>(dragDropService_PreviewDragHint);
        }
 
        private void DragDropServicePreviewDragDrop(object sender, Telerik.WinControls.RadDropEventArgs e)
        {
            // you should mark the event as handled
            // this will prevent executing of default drag-n-drop logic for unbound mode
            // which is not working in bound mode
            e.Handled = true;
            // YOUR LOGIC HERE
        }
 
        private void DragDropServicePreviewDragStart(object sender, Telerik.WinControls.PreviewDragStartEventArgs e)
        {
            e.CanStart = true;
 
        }
 
        private void GridViewCellFormatting(object sender, CellFormattingEventArgs e)
        {
            e.CellElement.AllowDrag = true;
            e.CellElement.AllowDrop = true;
        }
 
        private void GridViewRowFormatting(object sender, RowFormattingEventArgs e)
        {
            // This enables row elements to be dragged and dropped
            e.RowElement.AllowDrag = true;
            e.RowElement.AllowDrop = true;
        }
 
        private void DragDropPreviewOver(object sender, RadDragOverEventArgs e)
        {
         
        }
 
 
 
        public class MyBaseGridBehavior : BaseGridBehavior
        {
            protected override bool OnMouseDownLeft(MouseEventArgs e)
            {
                bool result = base.OnMouseDownLeft(e);
 
                if (!this.GridViewElement.IsInEditMode && this.GridViewElement.CurrentCell == this.CellAtPoint &&
                    this.CellAtPoint != null)
                {
                    RadGridViewDragDropService service = this.GridViewElement.GetService<RadGridViewDragDropService>();
                    service.Start(this.CellAtPoint);
                }
 
                return result;
            }
        }
    }
 
    public class Value
    {
        public static int ValueIndexCounter;
 
        public string Name { getset; }
    }
}
Svett
Telerik team
 answered on 03 Oct 2012
1 answer
99 views
I have a form with radgridview bind to bindingsource  and 1 button a 2 textbox also bind to one field from the same bindingSource.

The button when click will add a new row.

When a click the the values from the 2 textbox, keep the values from the last select record from the radgridview.

if i replace the radgridview for the datagridview, the value are cleared, which is the correct behavior, because is a new row with no values assign.

Can any one help me
Julian Benkov
Telerik team
 answered on 03 Oct 2012
7 answers
143 views
Hi,

Our BU would like that if a row is expaned in a hierchical grid, that grid scroll vertically so that the expanded row becomes the first visible row of the grid. Is this possible?

Many thx!

Maarten
Svett
Telerik team
 answered on 03 Oct 2012
2 answers
215 views
I've got 4 columns in my radListView1. I've added there 4 lines(4 items for each column).
But I can't get data from it. When I want to iterate through listview the property [text] is always the empty string.

List<string> list = new List<string>();
foreach (var item in radListView1.Items)
{
       string line = item.Text;
       list.Add(line);
}
return list;

Is there other way to retrieve values from ListView?
Stefan
Telerik team
 answered on 02 Oct 2012
2 answers
90 views
Hi,

Is it possible to access the print preview settings on the radgridview and set header details and watermark etc. from code behind.

Regards
Joe

Ivan Petrov
Telerik team
 answered on 02 Oct 2012
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
TimeOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
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
Iron
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?