Telerik Forums
UI for WinForms Forum
11 answers
246 views
Hi!

I was using Q2, 2 dropdownlists with prices binded to it and it worked fine:

RadListDataItem rcbi0 = new RadListDataItem("ANY");
RadListDataItem rcbi1 = new RadListDataItem("1");
RadListDataItem rcbi2 = new RadListDataItem("10");
RadListDataItem rcbi3 = new RadListDataItem("15");
RadListDataItem rcbi4 = new RadListDataItem("20");
RadListDataItem rcbi5 = new RadListDataItem("25");
RadListDataItem rcbi6 = new RadListDataItem("30");
RadListDataItem rcbi7 = new RadListDataItem("40");
 
radDropDownListPriceMin.Items.AddRange(new[]{ rcbi0, rcbi1, rcbi2, rcbi3, rcbi4, rcbi5, rcbi6, rcbi7});
radDropDownListPriceMin.SelectedIndex = 0;
radDropDownListPriceMax.Items.AddRange(new[]{rcbi0, rcbi1, rcbi2, rcbi3, rcbi4, rcbi5, rcbi6, rcbi7});
radDropDownListPriceMax.SelectedIndex = 0;

Now , the same above code but with Q3, binds the RadListDataItems to radDropDownListPriceMax BUT radDropDownListPriceMin is empty!

This code works fine in Q3:

string[] pricesList = new string[7];
pricesList[0] = "ANY";
pricesList[1] = "1";
pricesList[2] = "10";
pricesList[3] = "15";
pricesList[4] = "20";
pricesList[5] = "25";
pricesList[6] = "30";
 
radDropDownListPriceMin.Items.AddRange(pricesList);
radDropDownListPriceMin.SelectedIndex = 0;
 
radDropDownListPriceMax.Items.AddRange(pricesList);
radDropDownListPriceMax.SelectedIndex = 0;

How come?

Rafael
Richard Slade
Top achievements
Rank 2
 answered on 16 Nov 2010
12 answers
381 views
hi,

i have used the CreateRow event in the gridview

now i need to know witch event is the opposite of this event 

i need to know the removeRow event in the grid because i can't find it.

thanks.
Gustav Mulder
Top achievements
Rank 1
 answered on 16 Nov 2010
5 answers
1.0K+ views
Hello everybody.

I'm having the current problem with RadGridView (using Q2 2010):

The GUI has the following structure: RadRibbonForm contains SplitPlanel contains UserControl contains RadGridView.
Now, the GridView is bound to a List of objects. I'm using a CheckBox column for one property.

Now, I click into the checkbox cell, changing the ToggleState of the checkbox, but do not leave the cell by clicking on a different row. I do some necessary logic in the GridView_CellValueChanged event handler.
The I click the Save-Button which is located on the RibbonForms QuickAccessBar, but the data is not correctly saved.

After debugging, I realized that the CellValueChanged is neither triggered, when I click into the cell, nor when I click the Save-Button (would have thought so, because the cell should lose focus, accepting my data change).
If I click into a different row, my change to the combobox is accepted and correctly saved.

What can I do to solve this problem? Is there a method to make the grid change its cell values without leaving the edited row?

Thanks for any help
Baldwin
Top achievements
Rank 1
 answered on 16 Nov 2010
1 answer
120 views
Hi,
I'm using the RadGridView in which I always wanted to keep a row selected, in the case when the filter expression is changed, all the rows are unselected. I presume that the filtering row is selected at that time. 
So I subscribed the FilterChanged event, and at which I select the first row. The problem I'm facing is that, the filter changed event is generated for every character I type, and the focus switches to the first row.

Please help me out for finding a solution. Thanks.

Regards
ArunDhaJ
www.arundhaj.com
Emanuel Varga
Top achievements
Rank 1
 answered on 16 Nov 2010
3 answers
292 views

Hello,

I am new at this as I am trying to learn and get comfortable with Telerik. I have a winform app with 2 combo boxes, which are bind from a dataset/datatable. And I would like some sample code on how to bind different images to all each item in my combo box 1 and combo box 2.

After that I would like to code for the selected_index changed of the combo box 1. I would like to re-bind the data of the combo box 2 base on the selection on combo box 1.

I can do all of that in the normal combo box where I manually typed in all the items to the combo box and then uses the RadListDataItem Collection Editor to add in the images....but I want to do it with code as my combo box 2 changes base on the selection of combo box 1.

Thanks.

Emanuel Varga
Top achievements
Rank 1
 answered on 16 Nov 2010
2 answers
210 views
Is it possible to set the readonly property of a single cell in a row or column?  I want certain cells to be readonly based on other data in the row.

Thanks
Bob
Top achievements
Rank 1
 answered on 15 Nov 2010
3 answers
336 views
I updated to version 2010.3.10.1109 from 2010.2.10.914 and when I set the datasource I now get TargetInvocationException
"Exception has been thrown by the target of an invocation.".  It was working fine in the previous version.

Any ideas?

Thank you,
Aaron
Julian Benkov
Telerik team
 answered on 15 Nov 2010
2 answers
129 views
Hi

I have scheduler with resources showed in timeline view. Every 5 second scheduler is refreshed (check if there is any changes in scheduler data source). After that, for some reason, resources lose their color (became gray), so they need to be repainted, like this:

For Each res As Resource In RadScheduler1.Resources
    res.Color = Color.Aquamarine
Next
 
To ensure that resources are repainted, I need to call this part of code:
Dim schtimelineGrouping As TimelineGroupingByResourcesElement = TryCast(RadScheduler1.SchedulerElement.ViewElement, TimelineGroupingByResourcesElement)
schtimelineGrouping.RefreshViews(True)
schtimelineGrouping = Nothing

And it seems that this procedure RefreshViews make a problem with memory leak.
 
To be sure, I created a test application which every 5 second execute only coloring and refreshing of scheduler resources, for example:
For Each res As Resource In RadScheduler1.Resources
    res.Color = Color.Aquamarine
Next
     
Dim schtimelineGrouping As TimelineGroupingByResourcesElement = TryCast(RadScheduler1.SchedulerElement.ViewElement, TimelineGroupingByResourcesElement)
schtimelineGrouping.RefreshViews(True)
schtimelineGrouping = Nothing
In a short period of time (1 hour) application increased memory usage from 44MB to over 100MB.

In a real application memory usage growth to more than 1.5GB, and than Out of Memory exception occurred. For a testing purposes application was working almost for a 24 hours. 
 
Is this a good approach of resource coloring, and how this can be fixed?

Thanks.
Dejo Savicevic
Top achievements
Rank 1
 answered on 15 Nov 2010
5 answers
179 views
I have the following problem in windows application.

I am creating columns by code and then adding rows. As in the following example:

textcolum dim as gridviewtexboxcolumn
textcolum = new gridviewtexboxcolumn
textcolum.fieldname = "name"
textcolum.textalignment = contentaligment.middlecenter
....
....

rowinfo = me.GRID.rows.addnew ()
rowinfo.cells (0). value = "Peter bad"

export to excel, the column name is not justified to center, as I indicated in the code, but is justified on the left.

help please!
Emanuel Varga
Top achievements
Rank 1
 answered on 15 Nov 2010
0 answers
147 views

The brand new RadCommandBar is the successor of RadToolStrip. It is a flexible control for adding tool and button strips, which complement application menus in most Windows applications. The new control will come with the same features as the obsolete product (such as horizontal and vertical orientation, docking, drag and drop tool rearrangement, Add/Remove tools, etc.), but will also provide several new vital features:

  • Completely new and easier design-time support;
  • Theme and Visual Style Builder support;
  • Auto-collapse on form resize.

The old RadToolStrip control will be supported for at least one year, but users will be encouraged to use the new control since it addresses the shortcomings of the previous one. Telerik will be glad to assist you with upgrading to the new version. To get technical support, either contact Telerik support or post in the CommandBar Forum.

Telerik Admin
Top achievements
Rank 1
Iron
 asked on 15 Nov 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)
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
Localization
TimePicker
ButtonTextBox
FontDropDownList
Licensing
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?