Telerik Forums
UI for WinForms Forum
2 answers
92 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
185 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
134 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
82 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
154 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
87 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
8 answers
269 views
Hi
Are there any plans to have html editor control for winforms in near future?

Thanks
Mandar
Nikolay
Telerik team
 answered on 26 Jul 2011
4 answers
329 views
Hi,

I want a CommandBarButton click to occur when I press, say ctrl+H or alt+H.
How do I do this?
I tried setting the KeyTip property of the button to "H" but that did not work.

Thanks!
ricric
Top achievements
Rank 1
 answered on 26 Jul 2011
1 answer
124 views
Hi,
I would like to have a SelfReference grid with grouped columns. I used the self reference example from the demo application as a starting point. After implementing the column grouping only the top level columns are shown and no "+" symbol is visible. When self reference is turned off all rows are visible.
Is it possible to combine self reference and column grouping? Is there some difference for self reference when using grouped columns?
Thanks.
Julian Benkov
Telerik team
 answered on 26 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
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?