Telerik Forums
UI for WinForms Forum
1 answer
286 views

Hello,

 

So I am new to Telerik Winform. I had amazing experience using Telerik. But what I still don't get it is how to use the RadLayoutControl.

As far as my understanding, RadLayoutControl provide a customize layout template design method completed by user drag and drop controls on the LayoutControl object (what I called layer 1).

My questions is when I wanted to place a control on top of a control that already top of a Layout control(which I called layer 2), system treat my intention as I want to place another Layer 2 control which I wanted that control to be placed on layer (e.g. place a control on collapsible panel).

Do I misunderstand the purpose of layoutcontrol?

 

Sorry for my bad english.

Ralitsa
Telerik team
 answered on 07 Oct 2016
35 answers
702 views
Since upgrading to Q3 SP1 I'm getting an error trying to use the BestFitColumns method on the GridView. What worked great on Q3 is now giving me an ArgumentOutOfRange exception.

Error Message is "Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index"
Stack trace is as follows:
   at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
   at System.ThrowHelper.ThrowArgumentOutOfRangeException()
   at System.Collections.Generic.List`1.get_Item(Int32 index)
   at Telerik.WinControls.UI.StretchColumnLayoutHelper.ResizeColumn(Int32 delta)
   at Telerik.WinControls.UI.TableViewRowLayout.ResizeColumn(Int32 delta)
   at Telerik.WinControls.UI.TableViewRowLayout.StretchColumn(GridViewColumn column, Int32 desiredWidth)
   at Telerik.WinControls.UI.BestFitHelper.SetColumnWidth(GridViewColumn column, Single desiredWidth)
   at Telerik.WinControls.UI.BestFitHelper.BestFitColumnsCore()
   at Telerik.WinControls.UI.BestFitHelper.ProcessRequests()
   at Telerik.WinControls.UI.GridTableElement.UpdateViewCore(Object sender, DataViewChangedEventArgs args)
   at Telerik.WinControls.UI.GridTableElement.UpdateView(Object sender, DataViewChangedEventArgs args)
   at Telerik.WinControls.UI.GridTableElement.ProcessTemplateEvent(GridViewEvent eventData)
   at Telerik.WinControls.UI.GridTableElement.Telerik.WinControls.UI.IGridViewEventListener.ProcessEvent(GridViewEvent eventData)
   at Telerik.WinControls.UI.GridViewEventProcessEntity.ProcessCollection(GridViewEvent gridEvent, PriorityWeakReferenceList list, GridEventProcessMode processMode)
   at Telerik.WinControls.UI.GridViewEventProcessEntity.ProcessEvent(GridViewEvent gridEvent)
   at Telerik.WinControls.UI.GridViewSynchronizationService.NotifyListeners(GridViewEvent gridEvent)
   at Telerik.WinControls.UI.GridViewSynchronizationService.FlushEvents()
   at Telerik.WinControls.UI.GridViewSynchronizationService.DispatchEvent(GridViewEvent gridEvent)
   at Telerik.WinControls.UI.GridViewSynchronizationService.DispatchEvent(GridViewTemplate template, GridViewEvent eventData, Boolean postUI)
   at Telerik.WinControls.UI.GridViewTemplate.DispatchEvent(GridViewEvent gridEvent, Boolean postUI)
   at Telerik.WinControls.UI.GridViewTemplate.DispatchDataViewChangedEvent(Object sender, DataViewChangedEventArgs args)
   at Telerik.WinControls.UI.GridViewTemplate.FireViewChangedEvent(Object sender, DataViewChangedEventArgs args)
   at Telerik.WinControls.UI.GridViewTemplate.OnViewChanged(Object sender, DataViewChangedEventArgs e)
   at Telerik.WinControls.UI.GridViewTemplate.BestFitColumns()
   at HBS.Scanesthesia.WinForms.MainForm.SelectedPageChanged(Object sender, EventArgs e) in C:\Users\bschultz\Documents\Visual Studio 2010\Projects\Scanesthesia\HBS.Scanesthesia.Forms\MainForm.cs:line 267
   at HBS.Scanesthesia.WinForms.MainForm.ShownForm(Object sender, EventArgs e) in C:\Users\bschultz\Documents\Visual Studio 2010\Projects\Scanesthesia\HBS.Scanesthesia.Forms\MainForm.cs:line 48
   at System.Windows.Forms.Form.OnShown(EventArgs e)
   at System.Windows.Forms.Form.CallShownEvent()
   at System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme)
   at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)
   at System.Threading.ExecutionContext.runTryCode(Object userData)
   at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)
   at System.Windows.Forms.Control.InvokeMarshaledCallbacks()

Any ideas? Has this changed some how from Q3 -> SP1?
Hristo
Telerik team
 answered on 05 Oct 2016
8 answers
354 views
Hello all,

in 2011 Q1 winforms, i have a user control inherited from RadMultiColumnComboBox, and the filter row for inner radgrid is enabled.
problem is when i click on the filter row, the popup close ! so i cannot get focus on the filter row textbox to type the filtering text .

would you please tell me why this is occuring and how can i solve it ?

Thank you,
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 05 Oct 2016
1 answer
215 views

Hi,

I have a radgridview that is populated with data via a LINQ query.

LINQ returns an async list and if it is not a null list the datasource of the grid is set.

After the grid is populated I want to be able to grab multiple rows in it (perhaps by holding CTL) and then drag these rows into another grid / control.

I have got this to work on a grid populated with simple data via a loop. I can't get it to drag when it has a datasource set.

Can anyone help?

Thanks,
Martin.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 05 Oct 2016
1 answer
101 views
HOW TO PASS THE VALUES TO THE CELLCLICK EVENT
Hristo
Telerik team
 answered on 04 Oct 2016
1 answer
124 views

Hello Support,

  I am using  Telerik for Winforms version "2015.2.728.40" and have discovered an issue in that the Selected item in a CommandBarDropDownList displays but appears to be cleared from the object after minimizing the window.

Attached is a sample project to reproduce this error(Please change the extension back to zip).  To reproduce, run the application and then click on the button on the toolbar, this should work and display a message.  Now minimize the form, then maximize.  Click the button on the toolbar again.  You should now see an error.

I have not tested this issue on the most recent version of the Telerik library, but I may do that next.  My project is very far along and would prefer to leave it at the older version if possible.

Thanks

Francisco

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 04 Oct 2016
1 answer
105 views

Hello,

Is it possible or is there any way to access radMultiColumnComboBox search cell programmatically in C#?

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 04 Oct 2016
1 answer
106 views

     Hi there,

 

I saw the demo here: http://demos.telerik.com/aspnet-ajax/scheduler/examples/resourceavailability/defaultcs.aspx?skin=Telerik.

 

I wish to achieve something similar in Windows Forms. How to achieve this? Please guide.

Thanks.

 

Pankaj

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 04 Oct 2016
2 answers
60 views

Hello,

I'm on Progress OpenEdge 11.6.2.

Ich have a Gridview with about 1000 Adress rows. I create a new Adress outside the Grid and create via Datasource a new Row (at the end of the list) in the Grid.

I walk through the Rows an select the new row with "IsSelected = true". Everything works fine.

Only the Grid do not scroll to the selected row. So I have manually to scroll down to see this row. I tried "IsCurrent" with the same result.

Is there a way that the Grid autom. scoll down to selected row?

Thank you for your answer.

Regards Jürgen

Jürgen
Top achievements
Rank 1
 answered on 04 Oct 2016
3 answers
250 views

I've 2 questions:

First one:

I've a problem with custom Style definition. I want to edit some of built-in styles. At this moment I've got this code:

StyleDefinition h1 = this.radRichTextEditor1.Document.StyleRepository.GetValueOrNull(RadDocumentDefaultStyles.GetHeadingStyleNameByIndex(1));
h1.SpanProperties.FontSize = ConstDocumentationParams.fontSizeH1;
h1.SpanProperties.ForeColor = System.Drawing.ColorTranslator.FromHtml(ConstDocumentationParams.colorH1);
h1.SpanProperties.FontStyle = ConstDocumentationParams.typeH1;
h1.SpanProperties.FontWeight = Telerik.WinControls.RichTextEditor.UI.FontWeights.Normal;
h1.SpanProperties.FontFamily = new Telerik.WinControls.RichTextEditor.UI.FontFamily(ConstDocumentationParams.fontFamily);

 

Everything works fine until I select text and click the heading edited by me. Text changes to old style, not new. How can I fix this problem?

 

Second one:

How can I insert programmatically some element whitch will be generated to html tag: "<h1>","<h2>" etc.

 

Best regards

Marcin

Dimitar
Telerik team
 answered on 04 Oct 2016
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
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
ShapedForm
SyntaxEditor
Wizard
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
Overlay
Security
LocalizationProvider
Dictionary
SplashScreen
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
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?