Telerik Forums
UI for WinForms Forum
1 answer
378 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
210 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
98 views
How can I hide the horizontal grid lines in the GridViewMultiComboBoxColumn?



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

Thanks!
Stefan
Telerik team
 answered on 26 Mar 2014
1 answer
113 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
402 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
880 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
174 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
1 answer
130 views
Hello,
As I can do to select cells, rows and columns, in the same way as in excel. I've only managed to select cells or entire rows
I have not found an example of how to do it
Thanks
Ralitsa
Telerik team
 answered on 25 Mar 2014
1 answer
70 views
My application is a scheduler for customers that use a normal US calendar with Sunday as the first day of the week. The RadScheduler displays this way but the printouts do not. When I print a weekly calendar, I get 2 pages, one with the previous week, with Sunday as the last day, and one for the current week with Monday as the first day. Is there a workaround for this?
Dimitar
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
PdfViewer and PdfViewerNavigator
CommandBar
ListControl
Carousel
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
Label
AutoCompleteBox
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
Wizard
CollapsiblePanel
LayoutControl
ShapedForm
SyntaxEditor
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
SmartPasteButton
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?