Telerik Forums
UI for WinForms Forum
1 answer
200 views
Hi Telerik Team,

        Is there any option to assign read only property to a particular cell in the Data grid view.
     I need to make some cells read only in a column to support some functionality. Please provide solution for he Query ASAP.


Regards
Sandeep.
Emanuel Varga
Top achievements
Rank 1
 answered on 16 Nov 2010
11 answers
340 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
453 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.2K+ 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
191 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
388 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
271 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
437 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
156 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
268 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
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
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
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?