Telerik Forums
UI for WinForms Forum
1 answer
161 views
Hi

I need to "drag and drop" columns from a gridview to another control; for example a simple text box that just prints the header name when the column is droped on to it. 

I have mined the posts here and the WinFroms demo, all implementing on the drag and drop service:
  RadDragDropService dragDropService = this.radGridView1.GridViewElement.GetService<RadDragDropService>();
            dragDropService.PreviewDragOver += new System.EventHandler<RadDragOverEventArgs>(dragDropService_PreviewDragOver);
            dragDropService.PreviewDragDrop += new System.EventHandler<RadDropEventArgs>(dragDropService_PreviewDragDrop);

 However, it seems that PreviewDragOver  and PreviewDragDrop  events are fired only when hitting on the listed members here:
http://www.telerik.com/help/winforms/t_telerik_wincontrols_ui_listcontroldragdropservice.html 

and not a textbox or other generic container.

My question is: is there anyway i can allow and detect a column drop using some other code OR implement a new control that will implement the radservice

Thanks in advance.
Jack
Telerik team
 answered on 16 Mar 2012
8 answers
440 views
I am using a licensed version of 2011.Q2 so it's not the latest but it's all that I have for the time being.

I set a filter callback for a ComboBoxColumn in the CellEditorInitialized event handler like this:

 

RadDropDownListEditor editor = e.ActiveEditor as RadDropDownListEditor;
if (editor != null)
{
    RadDropDownListEditorElement editorElement = (RadDropDownListEditorElement)editor.EditorElement;
    editorElement.Filter = FilterWrappers;
}

 

This works fine. The problem is that I have another ComboBoxColumn with no filter on it. When I click in the first column and select a value and then click in the second column the filter method for the first column is called. It is called once for every item in the combo but the entries contain items from the first combo and items from the second combo. Why is this happening?

Julian Benkov
Telerik team
 answered on 15 Mar 2012
1 answer
138 views
Hi,
I have simple grid that contains 7 text columns with names column1, column2, ... column7.
When I apply following code I got layout that is shown in file grid1.png.
HtmlViewDefinition view = new HtmlViewDefinition();
view.RowTemplate.Rows.Add(new RowDefinition());
view.RowTemplate.Rows.Add(new RowDefinition());
view.RowTemplate.Rows.Add(new RowDefinition());
 
CellDefinition cell = new CellDefinition();
//row1
cell.UniqueName = "column1";
cell.RowSpan = 1;
cell.ColSpan = 2;
view.RowTemplate.Rows[0].Cells.Add(cell);
 
cell = new CellDefinition();
cell.UniqueName = "column4";
cell.RowSpan = 3;
cell.ColSpan = 1;
view.RowTemplate.Rows[0].Cells.Add(cell);
 
cell = new CellDefinition();
cell.UniqueName = "column5";
cell.RowSpan = 1;
cell.ColSpan = 1;
view.RowTemplate.Rows[0].Cells.Add(cell);
 
//row2
cell = new CellDefinition();
cell.UniqueName = "column2";
cell.RowSpan = 2;
cell.ColSpan = 1;
view.RowTemplate.Rows[1].Cells.Add(cell);
 
cell = new CellDefinition();
cell.UniqueName = "column3";
cell.RowSpan = 2;
cell.ColSpan = 1;
view.RowTemplate.Rows[1].Cells.Add(cell);
 
cell = new CellDefinition();
cell.UniqueName = "column6";
cell.RowSpan = 1;
cell.ColSpan = 1;
view.RowTemplate.Rows[1].Cells.Add(cell);
 
//row3
cell = new CellDefinition();
cell.UniqueName = "column7";
cell.RowSpan = 1;
cell.ColSpan = 1;
view.RowTemplate.Rows[2].Cells.Add(cell);
 
radGridView1.ViewDefinition = view;

Grid2.png shows what I want to achieve.
I am using 2011.3.11 version of Telerik.
Thanks
Ivan Petrov
Telerik team
 answered on 15 Mar 2012
5 answers
526 views
I've just replaced a competitor's IP address mask input control with Telerik's Winforms 2011 Q2 and I'm disapointed with the functionality. Dropping the RadMaskedEditBox in place with MaskType = IP presented two problems:

When typing an IP address of 10.5.2.97 (with periods) it ends up '10 .5 .2 .97' in the box and requires custom reformatting to remove embedded spaces to make it into a valid IP address. Am I missing something? 

Second and much more minor issue is that I could not find an easy way to make this controls blue border look the same as standard .NET controls of black; changing the Theme to ControlDefault did not work.
Peter
Telerik team
 answered on 15 Mar 2012
1 answer
261 views
I want to switch over to the RADChart from a normal .net chart. The chart must be a bar chart with two series. It gets the XAxis Zfrom column 1 in the data table and the YValue from the second column.
This is the code I used for the .net chart

Me.Chart2.Series("MeterOne").XValueMember = "period"
        Me.Chart2.Series("MeterTwo").XValueMember = "period"
        Me.Chart2.Series("MeterOne").YValueMembers = "MeterOne"
        Me.Chart2.Series("MeterTwo").YValueMembers = "MeterTwo"
        Me.Chart2.ChartAreas(0).AxisX.Interval = 1

This code works perfectly but I don't know how to do this with the RADChart.
Evgenia
Telerik team
 answered on 15 Mar 2012
2 answers
322 views
Hello,

I get this warning since I have updated from Q3 2011 to Q1 2012.
Now everything works but how can I get rid of this warning ?

Warning    3    The referenced assembly "Telerik.WinControls.UI.Design, Version=2012.1.301.40, Culture=neutral, PublicKeyToken=5bb2a467cbec794e, processorArchitecture=MSIL" could not be resolved because it has a dependency on "System.Drawing.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which is not in the currently targeted framework ".NETFramework,Version=v4.0,Profile=Client". Please remove references to assemblies not in the targeted framework or consider retargeting your project.



Thank you.
Jack
Telerik team
 answered on 15 Mar 2012
1 answer
114 views
Hi All,

I use datatable as datasource to connect to gridview. Now I would like all content in column 2 have an icon. What do I need to do ?

Thanks
Ivan Petrov
Telerik team
 answered on 14 Mar 2012
2 answers
367 views
Hi!

I was wondering if it was possible to only display working hours in the scheduler instead of the whole day?

Thanks.

Sarah
Sarah
Top achievements
Rank 1
 answered on 14 Mar 2012
2 answers
165 views
Hi guys,

I'm trying to create a grid similar to the iTunes one (in Artist mode). This is just a regular grid (no problem here), but the first colum doesn't show a row for each record, but an image for all the records that share this image (in this case, the cover image for all the tracks in an album). I have attached an screenshot to show what I'm talking about.

My question is, is it possible to implement this with GridView and, if so, how? If not, and although I know this is a bit off topic, which controls combination could I use to replicate this interface?

Thank you very much.
Joaquín
Top achievements
Rank 2
 answered on 13 Mar 2012
2 answers
111 views
Hi All,

I've got a WinForms app with a RadRibbonBar and various groups of buttons, which all work fine ... apart from one.  I've just added a Split button as I need to have additional options when "Previewing", but don't seem to be able to use the main button part as a normal Click event, without the sub-items showing, and clicking on the "Arrow" to show sub-items causes a click event on the main button as well.

Is there a way to stop the RadSplitButton from showing the dropdown of child items when clicking the "main surface" of the button (as this would be the normal action), and then ONLY show the sub-item collection when you click on the Arrow, as with Microsoft behaviour for the Ribbon Bar?

Thanks in advance,
Paul
Stefan
Telerik team
 answered on 13 Mar 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
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
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?