Telerik Forums
UI for WinForms Forum
2 answers
171 views
Hello, i have some tables with something like 1GB data and 2M records, i have a very efficient ibindinglistview implementation to cache few data locally, so i download from DB server only few rows.

It is possible to use the integrated grid UI to set the Filter expression on my IBindingListView to reload the local cache or do i have to hide the integrated filter UI and add some filter textbox outside the grid?

Best regards.
Dimitar
Telerik team
 answered on 10 Jun 2014
6 answers
591 views
Hi, at last I am delving into the Winforms controls for the first time, but I am coming up against some strange behaviour when manually binding a RadComboBox to a datasource.

Here is the code called from form_load:

protected void PopulateDropDown()  
{  
DataTable topics = osa.GetAllTopicsForExistingAssessmentsDT();  
radComboBox1.DataSource = topics;  
radComboBox1.DisplayMember = topics.Columns["topictext"].ColumnName;  
radComboBox1.ValueMember = topics.Columns["topicID"].ColumnName;  

The datasource is simply a DataTable returned from a webservice.

The issue I have is the when DisplayMember is set, the radComboBox1_SelectedIndexChanged event fires twice and then once again when ValueMember is set. Why is this?

Regards,
Jonathan

Regards,
Jonathan
Dimitar
Telerik team
 answered on 09 Jun 2014
3 answers
532 views
I have a grid that displays a parent-child relationship nicely.  The user can select a record and edit it if they choose.  When they do, before the user is returned control of the form, I grab the underlying DataSource, find the record the user just edited, and update it to reflect their changes.  It's faster than refreshing the entire DataSource.

Like so:

// select the existing item
List<Classes.ContractItem> currentContractItems = (List<Classes.ContractItem>)this.dgList.DataSource;
int index = currentContractItems.FindIndex(c => c.ContractItemId == this.CurrentContractItemId);
 
if (index != -1)
{
    currentContractItems.RemoveAt(index);
    currentContractItems.Insert(index, this.CurrentContractItem);
}
else
    currentContractItems.Add(this.CurrentContractItem);
 
this.dgList.DataSource = currentContractItems;

This works perfectly for the parent.  My problem is refreshing the child rows of the record being updated.  this.CurrentContractItem has a List<T> property that contains all the child records, and they are already updated and ready in the above code.  So there is something additional I need to do to get the grid to refresh it's child rows.

I've tried several things, reviewed and tried several posts that I found on here.  Most were ancient and needed translation from obsolete methods and properties, but I tried them anyway.

What can I do to get the child rows to refresh themselves when the underlying DataSource has changed?


The RadGrid has a Template
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 09 Jun 2014
1 answer
208 views
Hi,

I have a RadScrollablePanel and I'm trying to figure out how to color the vertical scrollbar through code and not by setting a theme.  Can you tell me how to do that?
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 09 Jun 2014
1 answer
165 views
Hi all,
I am currently using the RadMarkupDialog to enable HTML markup on a column in a RadGridView.
I would like to enable spell check on the entered text somehow but cannot seem to see how to do this.

The code I am using to display the dialog and set the text is

Dim dialog As New RadMarkupDialog()
                            dialog.DefaultFont = RadGridView1.Font
                            dialog.Editor.RibbonBar.CommandTabs(1).Enabled = False
                            dialog.Editor.HyperlinkButton.Enabled = False
                            dialog.Value = RadGridView1.CurrentCell.Text
                            Dim result As DialogResult = dialog.ShowDialog()
                            If result = DialogResult.OK Then
                                Me.RadGridView1.CurrentCell.Value = dialog.Value
                            Else
                            End If

Any ideas on how to do this?
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 09 Jun 2014
1 answer
169 views
Visual Studio 2012 C # WinForm help please contact Do you want to change how can I do?
Stefan
Telerik team
 answered on 09 Jun 2014
3 answers
216 views
Hi,

I'm very new to telerik 
on a demo there a home/back circle button (metru UI style) left top corner 
where that is coming from
is it possible to add that button on winforms ??
or its just normal button with an image ??

actually i'm also looking for all metro style component for winforms
such tile menu
am i on the right line ??

thank you

Bryan
win7
vbnet2010
vbnet (just migratd)
telerik q3 2013 devcraft
Stefan
Telerik team
 answered on 09 Jun 2014
3 answers
257 views
Hi,

Is it possible to add extra buttons next to the Arrow-dropdown button?
I want to add two buttons with their own events etc.

Stefan
Telerik team
 answered on 09 Jun 2014
1 answer
66 views
Hello,

I have used a Telerik gridview in my winform. I have enabled paging & filter for the grid by default. After successful data binding with grid, when I apply filter to any column i.e select any specific option or specify specific condition than I get an un-handled exception. Please review the below steps for bug reproduction.

1-Page-1.png
2-Page-2.png
3-Page-2-(Select-filter).png
4-Page-2-error.png

Please help to figure out this problem.

Thanking you.
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 09 Jun 2014
2 answers
218 views
I am trying to programmatically populate a multicolumn combobox after user selected another customer from the previous combo box
this is the sample of the code.
01.private void RadMultiColumnComboBox3SelectedIndexChanged(object sender, EventArgs e)
02.       {
03.           string a;
04.           a = string.Format("{0}", radMultiColumnComboBox3.EditorControl.Rows[radMultiColumnComboBox3.SelectedIndex].Cells["customerID"].Value);
05.           Int32 b;
06.           Int32.TryParse(a, out b);
07.           radMultiColumnComboBox4.Enabled = true;
08.           OleDbConnection conn = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|/RoadRunnerDB.mdb");
09.           string cmdStr = string.Format("Select * FROM addressList WHERE customerID = {0}", b);
10. 
11.           try
12.           {
13.               conn.Open();
14.               OleDbCommand cmd = new OleDbCommand(cmdStr, conn);
15.               OleDbDataReader reader = cmd.ExecuteReader();
16.               //fill the grid!??
17.           }
18.           catch (Exception ex)
19.           {
20.               MessageBox.Show(ex.Message);
21.           }
22.       }


Gaston
Top achievements
Rank 1
 answered on 08 Jun 2014
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
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
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?