Telerik Forums
UI for WinForms Forum
1 answer
179 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
249 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
140 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
241 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
216 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
138 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
8 answers
200 views
I am new to using visual studio.

How can I bind RadScheduler to a local database already created?

Regards.
Stefan
Telerik team
 answered on 07 May 2015
15 answers
1.0K+ views
Hi Telerik team.
I am using Telerik's RadListView in ListView mode. (latest library)
I am implementing some log window and visually It looks like some chat window, each new log entry is new ListViewDataItem and the window itself is a RadListView.
I do ask it to wrap text in visual item formatting event handler by :
  private void OnTextAreaVisualItemFormatting(object sender, ListViewVisualItemEventArgs e)
        {
            e.VisualItem.TextWrap = true;
        }

And I also allow arbitrary item height, since I should be able to display in each list item text of any length.
There is something I have to take care about and  I can't figure out how to do it. ListView leaves too much space around text in every visual item. I mean it wraps text fine, but leaves spare 15 pixels on top and at the bottom of each visual item.
I tried to add line
 e.VisualItem.Padding = new Padding(0);
to formatting even handler, but it didn't helped.
 
Do I have any control on VisualItem size, padding while text wrap is enabled? Am I clear?
Regards, Artem
Igor
Top achievements
Rank 2
 answered on 06 May 2015
1 answer
261 views

Hi,

I have a RadTreeView with some items inside and want to drag and drop items to a custom control derived from RadControl (which is inside a DocumentWindow in a RadDock).

I tried to attach TreeViewElement.DragDropService.PreviewDragOver event but it does not fire for my custom control. (Have set AllowDrop to true and tried to implement ISupportDrop interface but no luck)

Any help would be appreciated.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 06 May 2015
2 answers
356 views

Hi,

we got a pretty infuriating problem with Telerik for WinForms. We don't know why but the project started to producing errors when renaming RadControls: "Property value is not valid." (see attached screenshot). The renaming is still done, but the code for the old name is still left behind in the designer. So if I add a checkbox, it gets the name "radCheckBox1" and rename it to "radCheckBoxUser", the error will pop up and code for both will stay in the designer code. Also, if I create an event via the property window in VS for radCheckBoxUser, it will still reference the old checkbox and create a "radCheckBox1_ToggleStateChanged" event. So almost every time we add or change a control, we have to clean up designer code and code behind, which is too time consuming.

Can anybody give us a clue as to why this behavior occurs and help us to solve this problem? It would be really appreciated.

Thanks and regards,

Steve.

Steve
Top achievements
Rank 1
 answered on 06 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)
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
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
RibbonForm
Styling
Barcode
PopupEditor
TaskBoard
NavigationView
Callout
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
SpeechToTextButton
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
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?