Telerik Forums
UI for WinForms Forum
1 answer
290 views
I know this is posted somewhere here, so my search phrases must me horrible..

New to api, looking at how a can assign a form a theme during it's creation.   Want to be able to switch themes based on how a form is called.

I created a form which implements RadForm

on form_load I set ThemeNameClass and ThemeName, then Initialize is called.  c#, 2013, latest version for DevCraft.

Thanks
Mike
Dimitar
Telerik team
 answered on 26 Mar 2014
3 answers
146 views
Hi guys,

I am trying to do a few style changes to the scrollbar. I've attatched an image of how it looks currently.

1) There is a border on the whole left hand side of the control. I can't find anywhere in the element editor. Please can someone let me know which property I need to change to hide this?

2) You will notice I have take away the arrows. I want the scrollbar to not have arrows. But the area in which the arrows sit is still visible, can I remove this extra space?

Many thanks,

J
George
Telerik team
 answered on 26 Mar 2014
1 answer
332 views
Hello,
     i'm using a RadListView in DetailsView mode.

When i insert an element in the Items collection of the RadListView, the Vertical-scrollbar's thumb remains snapped on the bottom to ensure the visibility of the last item. Items are inserted at the speed of almost one item per seconds.

I would like to control this behaviour, because (as all of the most common software do) i would like to stop refreshing the scrollbar position when the user click on the scrollbar or scrolls the wheel up to check more accurately an item.

Actually i'm doing this:

item insert:
private void ListView1AddLogMessage(string message, DateTime? dateTime)
  {
      if (dateTime == null)
          dateTime = DateTime.Now;
 
      if (userClicked)
          this.radListView1.BeginUpdate();
 
      LogList.Add(new LogItem { Info = message, Timestamp = dateTime.Value });
 
      if (userClicked)
          this.radListView1.EndUpdate();
  }


The userClicked variable is a bool that it's initialized like
bool userClicked = false;


and when I configure the ListView i bind the click and scroll events to simple functions that turns userClicked to be true, so that no update is performed.
void ThumbElement_Click(object sender, EventArgs e)
{
    userClicked = true;
}

But there are two main problems.
1) I would like to create an event similar to this one, for example if the user scroll wherever on the radlistview, probably he wants to stop the autorefresh, as it would probably be if he clicks on an element.
2) i would like to restore programmatically the auto refresh(plus the scrollbar-thumb autosnap to the bottom) when the users drag the thumb to the bottom of the scrollbar track


This seems to be a common behaviour to me for other application but i can't implement it in this case.

Thanks
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 26 Mar 2014
1 answer
175 views
Here is an interesting situation :

- I use a RadDock containing 2 ToolWindows, docked in a shared TabStrip.
- I change win1's dockstate to 'floating'.
- I change win2's dockstate to 'autohide'.
- I save RadDock's configuration in an XML file.
- I use RadDock.Hide().

Now, to avoid a possible flicker on the screen, I wish to load the previous XML file before showing RadDock again. After RadDock.Show(), both ToolWindows are in a 'autohide' state ! If I 'unpin' win1, it gets back to the 'floating' state. But double-clicking on its title-bar won't dock it any more.

Is there a way to safely load a XML configuration while having RadDock hidden ?
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 26 Mar 2014
1 answer
76 views
How can I hide the horizontal grid lines in the GridViewMultiComboBoxColumn?



Thanks!
Stefan
Telerik team
 answered on 26 Mar 2014
2 answers
120 views
How can I hide the horizontal grid lines in the GridViewMultiComboBoxColumn?

Thanks!
Stefan
Telerik team
 answered on 26 Mar 2014
1 answer
67 views
1. The RowValidating and RowValidated events do not fire when expected.
You have these events set to fire when the user changes rows. What happens when there is only one row in the grid? Expected behavior is to fire when the Row loses focus, which should happen when a user clicks anywhere outside the row, including whitespace or other controls on the form.

2. The data is saved before row validation is complete.
What is the point of having row-level validation if the values have already been saved to the databound object? Absolutely nothing should be saved until ALL validation is complete.

3. The user is locked down and unable to escape/cancel the edit if the row validation actually gets called and fails. 
This is extremely poor design. You cannot expect a user to be able to fix the issue every time. Sometimes they will need to start over, especially if there is a large amount of data. Instead, you lock them down and force them into making changes they may not want to commit to.

These problems have been around for years, but nobody has taken the time to address them despite promises. Even worse, the links to the Feature Requests in these threads no longer work and Telerik has changed their stance from admitting the problems to claiming that these are "desired behaviors" and "features". Stop calling these behaviors features, they are most certainly not.

http://www.telerik.com/forums/what-event-s-is-are-fired-when-the-pencil-icon-is-clicked

http://www.telerik.com/forums/radgridview---save-changes-to-a-rows-data-back-to-database

http://www.telerik.com/forums/cancel-row-edit

http://www.telerik.com/forums/in-rowvalidating-e-row-ismodified-doesnt-show-as-true-when-it-should


http://www.telerik.com/forums/radgridview-rowvalidating-event

http://www.telerik.com/forums/rowvalidating-not-firing

http://www.telerik.com/forums/rowvalidating-event-missing

http://www.telerik.com/forums/rowvalidating-problems

http://www.telerik.com/forums/esc-in-gridviewdatetimecolumn-inside-raddatagridview-after-i-did-an-e-cancel-true-in-row-validation


http://www.telerik.com/forums/how-to-validate-row-data

http://www.telerik.com/forums/rowchanged-question

http://www.telerik.com/forums/how-to-prevent-empty-rows-creation
Stefan
Telerik team
 answered on 25 Mar 2014
1 answer
350 views
Hi,
How can I add icons to Category panel in property grid.

Also, how to add icon to propertyentry element in Grid.  

[-]  [icon]   Appearance (category tab)
       [some icon_1]  Color             |   Red
       [some icon_2]  Orientation   |   Left
                                  Preview       |    [ Preview image]

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 25 Mar 2014
5 answers
813 views
Hello,

We have an application with SQL Server running in one location and then clients in different timezones using that data.  All datetimes are stored as UTC values.  For display we want them in local date/time.  How do we do that in GridView?

For example:
A grid showing a list of events with an updated_date column.  We want those event dates/times as local time.  Can .formatstring be used to somehow set ToLocalTime()?

Thanks,
Paul
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 25 Mar 2014
1 answer
151 views
hello to all
I downloaded  Telerik Ui for windows form trial
when i want to add new form I get the following error:

full error Text : 
Error occurred while running wizard.

System.NullReferenceException: Object reference not set to an instance of an object.
   at Telerik.WinControls.VSX.TemplateProcessing.WFScenarioManager.Launch(IServiceProvider serviceProvider, String itemName, String scenarioPath, String scenarioName)
   at Telerik.WinControls.VSPackage.VSItemTemplateWizard.LaunchScenarioManager(ServiceProvider serviceProvider, Dictionary`2 replacementsDictionary)
   at Telerik.VSX.VSPackage.ItemTemplateWizardBase.RunStarted(Object automationObject, Dictionary`2 replacementsDictionary, WizardRunKind runKind, Object[] customParams)
   at Telerik.VSX.VSPackage.WizardBase.<>c__DisplayClass5.<Microsoft.VisualStudio.TemplateWizard.IWizard.RunStarted>b__4()
   at Telerik.VSX.VSPackage.WizardBase.CatchExceptionAndSendReport(Action action)


Dyanko
Telerik team
 answered on 25 Mar 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?