Telerik Forums
UI for WinForms Forum
7 answers
159 views
Hi,

Is it possible to somehow change the position of the pin button (that open Excel-like filtering context menu), so it will be placed under the column header text?
Check image: http://imgur.com/5WZu5UU
konrad
Top achievements
Rank 1
 answered on 13 May 2015
1 answer
331 views

Hi,

I'm trying to add a button to gridview group header that takes header data and uses it. I searched on forum and found something but they didn't work. Is there a way that obtains this purpose for a winform application?

Regards

Onur

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 12 May 2015
3 answers
454 views

Hi,

we're developing a WinForms application with Telerik Controls (or rather update an older application of ours). In this app, we use different ListViews and we often encounter performance issues. We've found workarounds and performance improvements for the lower thousands (adding up to ~2000 items), which is fine, but there can be cases when the app need to load 10k items. It's not the normal case but it can happen every so often.

Now the improvements we made (e.g. using AddRange instead of Add) are still noticeable here, but it still takes about the ListView about 90 sec to load 9k items (with a small icon and text). That in and of itself is not the problem - sometimes it takes time to load so many items and since this an administration tool, we think our users could handle that.

The problem is that this is happening (or at least it seems so) when the ListView is rendering the items. That means it happens on the UI thread, which on the other hand means the app is not responding while the ListView is loading. Now that is something that needs to fixed, since I don't think that it is possible to lower the loading time to an unnoticeable level. I already tried to make the method asynchronous (public async void...) and use the await keyword but there are many complications if the user resumes to click around in the application. We'd have to make many architectural changes to make this work properly and that would cost too much time.

Is there any way to inform the user that the ListView is still loading without breaking the UI? Animated loading symbols would be fine but since the UI thread is blocked in this case, this wouldn't help much either. Any ideas?

Thanks and regards,

Steve.

PS: For reference, at the moment we load the ListView items like this, which seems to be the fastest way (we found):

01.            this.listViewGroup.Items.AddRange(__result.Select(
02.                groupResult =>
03.                {
04.                    var __lvdi = new ListViewDataItem();
05. 
06.                    //Do some work to transform the groupResult item into a ListViewDataItem
07.​                           //This takes almost no time at all (a fraction of a second)
08. 
09.                    return __lvdi;
10.                }).ToArray());

Dimitar
Telerik team
 answered on 12 May 2015
4 answers
264 views

Hi,

I'm using a custom node to display a button for some of the nodes in my treeview. The custom node consists of just a textElement and a buttonElement, they are placed in a StackLayoutElement.

When updating the nodes text property in the editor it afterwards appears two times. See the attached file(to make it more it clear I've set textElement.StretchVertically = false so that it can clearly be seen). It's like both the node text and the virtual text element is visible. Pointers to how I resolve this would be much appreciated :D.

 

/Thomas

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 11 May 2015
1 answer
150 views

Using the code bellow which add a radio button to a RadToggleButton. Whenever i click the button and not the radio button. The radio button automatically toggles on as well. But if you change RadToggleButton to a RadButton then it works. It also hapens with RadCheckBoxElement as well.

            RadToggleButton button = new RadToggleButton();
            button.Text = "Test";
            
            RadRadioButtonElement e = new RadRadioButtonElement();
            e.ToggleStateChanged += e_ToggleStateChanged;
            e.CheckStateChanged += e_CheckStateChanged;
            e.Margin = new System.Windows.Forms.Padding(button.Width-18, 0, 0, 0);
            button.ButtonElement.Children.Add(e);
            button.ToggleStateChanged += button_ToggleStateChanged;
            Controls.Add(button);

 

Dimitar
Telerik team
 answered on 11 May 2015
1 answer
219 views
When I use one of the TelerikMetro themes (the default green one of the blue one) and show a Yes/No message box, the close button is not drawn correctly.  Because it's a yes/no message, the close button is disabled and is drawn with a gray background.  But the gray background ends up going outside of the button and looks really weird.  I can reproduce this in the demos included in the Q1 2015 SP1 release.  See the attached screenshots for an example.
Todor
Telerik team
 answered on 11 May 2015
2 answers
110 views
Hi, I have
an ID hidden column in my grid and a separate comboboxcolumn linked to the ID
in order to display a text linked to this ID property. This works as expected, the
user being able to indirectly change the ID by selecting the appropriate entry
in the combobox column,

…but

My scenario
is that after this ID is selected by the user and saved to the database then it
should not be allowed t be edited going forward. For example when loading past
data the combobox column property should be read only in order to prevent the
user from changing this value.

The problem
is that if I set the comboboxcolumn property to read only I cannot select a
value when I try to insert a new row, the combobox column is locked and
displays no value at all.

Can you
please suggest a way to implement this need?

 
Regards,

 

George
George
Top achievements
Rank 1
 answered on 08 May 2015
1 answer
194 views

What is the event for "column posion changed"?

Up to now I used ColumnIndexChanged in oder version of telerik or CollectionChanged event in newer telerik verion. But this event is no longer existing ?!?

 

Ralitsa
Telerik team
 answered on 08 May 2015
1 answer
188 views

Hello

I may coded it incorrect way.  When I clicked the (X) button to close, it does not release memory.  I can see through Windows Task Manager.

 

RadDesktopAlert alert = new RadDesktopAlert();
            alert.FixedSize = new Size(330, 110);
            alert.PopupAnimation = true;
            alert.PopupAnimationFrames = 50; // 50 is default
 
            alert.ShowOptionsButton = false;
            alert.CaptionText = "NEW POPUP";
            alert.ContentText = "WELCOME";
            alert.AutoClose = Properties.Settings.Default.allowAutoClose;
            alert.AutoCloseDelay = Properties.Settings.Default.delayAutoCloseInSec; ;
            alert.Popup.Click += new EventHandler(Popup_Click);
            alert.Show();

Can someone please help me how to release/dispose RadDesktopAlert's memory properly?

Thank you!

 

Hristo
Telerik team
 answered on 07 May 2015
1 answer
113 views
I was looking for example on how to disable auto scrolling when trying to do drag and drop. I find that you can do so with  RadDragAndDropManager, so i start looking for it in winform version and i was not able to find that class at all. Is there a way to disable automatically scrolling of a RadListView when dragging from the listview to something else.
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 07 May 2015
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)
Chart (obsolete as of Q1 2013)
Form
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
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
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
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
Styling
Barcode
BindingNavigator
PopupEditor
RibbonForm
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
BarcodeView
BreadCrumb
Security
LocalizationProvider
Dictionary
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
ToolbarForm
NotifyIcon
DateOnlyPicker
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?