Telerik Forums
UI for WinForms Forum
15 answers
566 views
In c# I would like to programmatically set the foreground and background colors of the header cells at runtime.  Is this possible?
Svett
Telerik team
 answered on 28 Jul 2011
1 answer
96 views
Hello ,
      I got gold historical data like

01/02/2001    271.10
01/03/2001    267.15
01/04/2001    267.10
01/05/2001    267.40
01/06/2001    262.70
01/08/2001    268.30
01/09/2001    267.00

How can i build like yahoo graph like
http://finance.yahoo.com/q/bc?s=GOLD+Basic+Chart

I also got this data in CSV , MDB , EXCEL.

Many thanks
David

Vladimir Milev
Telerik team
 answered on 28 Jul 2011
10 answers
438 views
Is it possible to color each group differently?  For example, if I were grouping my grid by Age and Gender could I make the header rows of Age red and the header rows of Gender blue?  (Note: Not the rows of the actual data being grouped, just the headers)

Also, is it possible to add text to row headers?  For example, if I was grouping by department number, could I put the departments total income in the grouping header?
Svett
Telerik team
 answered on 28 Jul 2011
2 answers
88 views
i just want a solution to categorize a row and put it in two different group , is there any solution ?!
for example i have a list like below :

Id       -       Color
--------------------------------------------------------------
1  - blue , red
2 red
3 - blue , green

and want to group by color and have a output list like below :

group : red
--------------------------------------------------------------
1 - blue , red
2 - red

group : blue
--------------------------------------------------------------
1 - blue , red
3 - blue , green

group : green
--------------------------------------------------------------
3 - blue , green
Julian Benkov
Telerik team
 answered on 28 Jul 2011
1 answer
182 views
I am using a RadDropDownList (Q2 2011) as a search box to find a student. The user types in a name into the RadDropDownList and either hits the enter key or clicks a button.

I am using the KeyPress event to test for the enter key.  Both the KeyPress event and the button click event call a FindStudent routine.

The FindStudent routine retrieves data from a database and populates the RadDropDownList using a for loop and adding an object to the list with .Items.Add method. At the end of the routine it calls the ShowDropDown() method.

If I type in the RadDropDownList and click on the button, the drop down shows correctly.  If I type in the RadDropDownList and hit the Enter key the drop down shows and then immediately disappears.

How can I get the drop down to stay when hitting the enter key?  Thanks for your help.

Below is my code for the KeyPress event, Button Click event and FindStudent routine.
private void FindStudent_Btn_Click(object sender, EventArgs e)
{
    string fsText = FindStudent_DDL.Text;
    FindStudent_DDL.Items.Clear();
    FindStudent(fsText);
}

private void FindStudent_DDL_KeyPress(object sender, KeyPressEventArgs e)
{
    if (e.KeyChar == (char)13)
    {
        string fsText = FindStudent_DDL.Text;
        FindStudent_DDL.Items.Clear();
        FindStudent(fsText);
    }
}

private void FindStudent(string fsText)
{
    ... code that retrieves data from database and populates a DataTable dt ...
     
    if (dt.Rows.Count > 0)
    {
        for (int i = 0; i < dt.Rows.Count; i++)
        {
            StudentObject student = new StudentObject(dt.Rows[i]["id_num"].ToString(), dt.Rows[i]["last_name"].ToString(), dt.Rows[i]["first_name"].ToString());
            FindStudent_DDL.Items.Add(new RadListDataItem(student.ToString(), student));
        }
    }
 
    FindStudent_DDL.ShowDropDown();
}
Jeff Clark
Top achievements
Rank 1
 answered on 27 Jul 2011
1 answer
131 views
Hi,

I have a problem while using the spellcheck feature for RadRichTextBox.

I'm loading a custom dictionary using the following command line:

CType(Me.RadRichTextBox1.SpellChecker, DocumentSpellChecker).AddDictionary(dictionary, CultureInfo.InvariantCulture)

Then, I set the IsSpellCheckingEnabled as True.

The spellchecker does not recognize the words in the dictionary file.

The misspelled words are underlined, but suggested words do not show up when I click the misspelled word.  How can I get the suggested word to show up?
Oliveira
Top achievements
Rank 1
 answered on 27 Jul 2011
2 answers
81 views
Hi,

I'm trying to customize a RAdChart(Line Chart) to let it paint 1000 points but  with only a few labels on x-axis. Can anyone tell me if this is possible? And if possible, how should I configure the Chart?

Thanks,
Leo
Leo
Top achievements
Rank 1
 answered on 27 Jul 2011
1 answer
148 views

Hello,

I have a problem with the RadSplitContainer. I would like to place more sizable panels in the RadSplitContainer.

If the AutoScroll of RadSplitContainer is true and I scroll the container a little, don’t work the resizes of the panels.

How can I resize the panels after scroll?

Is it a bug in the RadSplitContainer? If yes, is there a workaround to this?

Below is the sample code

Thanks


public partial class Form1 : Form
{
    public Form1()
    {
        InitializeComponent();
 
        RadSplitContainer radSplitContainer1 = new RadSplitContainer()
        {
            Dock = DockStyle.Fill,
            AutoScroll = true
        };
 
        this.Controls.Add(radSplitContainer1);
 
        for (int i = 0; i < 10; i++)
        {
            var panel = new SplitPanel();
            panel.SizeInfo.SizeMode = SplitPanelSizeMode.Absolute;
            panel.SizeInfo.AbsoluteSize = new Size(100, 0);
            radSplitContainer1.SplitPanels.Add(panel);
        }
    }
}
Julian Benkov
Telerik team
 answered on 27 Jul 2011
2 answers
68 views
I received this error when I tried to edit the items collection using the smarttag for the statusstrip control:


I am using the Q2 release of the Winforms controls. Any help would be appreciated.
Peter
Telerik team
 answered on 27 Jul 2011
1 answer
84 views
Hi all,

I have a hierarchical grid that I am trying to export to excel using ExportToExcelML. Export Hierarchy is on and when I have ExportVisualSettings set to false, the export works perfectly in < 2 seconds. However when I turn the export visuals property on, the grid freezes and the form stops responding.

I have a few special visual components I use in my grid and I'm wondering if any of them may cause this behavior:
-Cells with BackColor set based on the value in the cell (values are hex rgb strings)
-DropdownColumns that also set the backcolor of each cell
-AlternatingRowcolor is set to true

Any ideas?
Alex
Martin Vasilev
Telerik team
 answered on 27 Jul 2011
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
Diagram, DiagramRibbonBar, DiagramToolBox
GanttView
Panorama
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
ProgressBar
CheckedDropDownList
TrackBar
MessageBox
Rotator
SpinEditor
StatusStrip
CheckedListBox
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
DataEntry
ScrollablePanel
ScrollBar
WaitingBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Barcode
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
NavigationView
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Licensing
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
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?