Telerik Forums
UI for WinForms Forum
3 answers
225 views
I can't find a way to get rid of the default gradient backcolor of the raddock control.  I've tried the following:

spltContainer.Style.SetValue(Telerik.WinControls.Primitives.FillPrimitive.GradientStyleProperty, Telerik.WinControls.GradientStyles.Solid)

And it has no effect.  I've even tried getting the FillPrimitive child, and setting it's GradientStyle to Solid, but it just get's overwritten (if I set the value using RadControlSpy it works).
Gary
Top achievements
Rank 1
 answered on 25 May 2010
1 answer
138 views
Hi everyone,

I'm working on a project in WinForms using the Telerik library. We previously used the Q2 2009 version of the library. In our project we use a RadComboBox wich is contains a bunch of default answers.But the combo accept custom text and when the user select a default answer, in the SelectedIndexChanged event we add to the text of the combo the selected awser seperated from the original text (saved in the tag of the combo when the dropdown is opened) by a " - ".

Here is the code :

private void rcbElement_SelectedIndexChanged(object sender, EventArgs e) 
{ 
            RadComboBoxEditorElement rcbe = (RadComboBoxEditorElement)sender; 
             
            rcbe.Text = (rcbe.Tag.ToString() == "" ? "" : rcbe.Tag + (rcbe.Text == "" ? "" : " - ")) + rcbe.Text; 
            rcbe.SelectedText = ""; 
            rcbe.Tag = rcbe.Text; 
} 

But now with the new version (Q1 2010 SP2) this doesn't work anymore. The text of the combo remains the text of the selected item. How can we do that with the new version ?

[Nean]
Victor
Telerik team
 answered on 25 May 2010
1 answer
165 views
Hello,
Strange thing when using your RadComboBox.
I have a comboBox bind to a dataTable.
When I'm trying to change the value of the comboBox It stay NULL.

Now, I check this And I've noticed something strange:
In debug, When I'm standing on the object "radComboBox1.selectedValue" I see the a value (lats say) '12345'.
If I click on the value it self (I'm using visual studio 2008) It goes into edit mode and then I see that the value is actually: '12345M'.

I don't have a clue where this 'M' come from. It doesn't appear  any where in my sql,datatable or code.

I tried the some code with a simple comboBox And it was fine (with out the 'M').

Do you know this behavior?

Thanks,
Roy.
Svett
Telerik team
 answered on 25 May 2010
1 answer
133 views
I am trying to achieve a page up/down functionality for a Point of sale.

Lets say the case where i have a listbox
Achored on all sides, and autoscroll enabled = true

with two bottons Page up / Page down

If I press page down button I want the list box to scroll down by the amount of its height.
How do I do this ?

I tried using for page down

radListBox1.AutoScrollOffset = new Point(0, (-1*radListBox1.AutoScrollOffset.Y)+radListBox1.Height);

I use a positive value for y point because it gets converted into negative and therefore I set the Y offset to a positive by multiplying it by -1.

With very little success.

Thank you in advance
Chona
Top achievements
Rank 1
 answered on 25 May 2010
4 answers
300 views
I am using the 2010.1.10.409 version of the Telerik.WinControls.UI assembly to utilize the new DocumentWindow and RadDock Manager.  I am creating a UserControl that inherits from DocumentWindow

using Telerik.WinControls.UI.Docking; 
 
public class myControl : DocumentWindow { } 

When I go into the design view to add controls I am only getting a blank gray screen.  Also when I updated my older user controls that inherited from DockPanel to now inherit from DocumentWindow, all of the controls that were on the form are now just listed in the gray screen, meaning that they are not showing the design and layout that the DockPanel originally gave me.

Is this a known issue?  Or is there something that I need to do to be able to have the design time support that the DockPanels had?
Nikolay
Telerik team
 answered on 25 May 2010
2 answers
164 views
Hi guys,

Im sure there is some obvious im missing, but the problem i have is that i have a grid with 3 columns. Column 1 has report name, Column 2 - a checkbox column to 'show' that report, Column 3 - a checkbox column to 'hide' that report. So if a user clicks the checkbox in 'Show' column, i want to uncheck the 'Hide' checkbox column (ie column 2) and vice versa. The code below handles it, however the grid only refreshes the change once i move off the current row... So what do i need to call so that the cells or row is repainted instantly once this code runs? Also should i instead use the CellValueChanged event? coz that didnt seem to work, hence why i chose this event here. Also do i even need to call BeginEdit and EndEdit here? Im not quite sure when those methods should be used.

Thanks for your advice :-) Chris.

private void gridReport_ValueChanged(object sender, EventArgs e)
        {
            RadCheckBoxEditor editor = (RadCheckBoxEditor)sender;
            editor.BeginEdit();
            SUB_REPORT report = (SUB_REPORT)gridReport.CurrentCell.RowInfo.DataBoundItem;
            if (gridReport.CurrentCell.ColumnIndex == 1) // show column
            {
                if ((bool)editor.Value)
                {
                    report.Hide = false;
                }
            }
            else
            {
                if ((bool)editor.Value)
                {
                    report.Show = false;
                }
            }
            editor.EndEdit();           
        }                 
chris petropoulos
Top achievements
Rank 1
 answered on 25 May 2010
3 answers
203 views
Hi
How can I load an existing theme to visual style builder then edit the colors and save as new theme
i can' find from the smart tag of any controls, click "Open Visual Style Builder" 


i use Q1 2010
Regards,
Rasha


 
Vassil Petev
Telerik team
 answered on 24 May 2010
4 answers
179 views
hey guys I finally figured out why I can't see my appointments!
if I enable the following code I can't see any appointments:
            radScheduler1.GroupType = GroupType.Resource;
if I use no group type I can see all my appointments !!! why is that ? please help me out !!!

regards
Dobry Zranchev
Telerik team
 answered on 24 May 2010
5 answers
719 views

By any chance does any one sample code on how I can load the root folder structure.

For example C:\Test\ is the root.

I need to list all the files and sub folders in the rad tree view with different icons for folders and different icons for the files.

 

Any sample code would be appreciated.

thanks,

Goran

Victor
Telerik team
 answered on 21 May 2010
3 answers
240 views
Hi!

Is it possible to set the working area to weekend also?
For now, I can change the Time Interval but it always show for monday to friday.

Thanks,
Nadia
Boyko Markov
Telerik team
 answered on 21 May 2010
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
SyntaxEditor
Wizard
CollapsiblePanel
LayoutControl
ShapedForm
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?