Telerik Forums
UI for WinForms Forum
1 answer
471 views
Is it possible that making background look dark and not being able to click when there is a popup window from grid like asp.net ajax does?
Emanuel Varga
Top achievements
Rank 1
 answered on 05 Oct 2010
1 answer
154 views

I created one  RADtreeview and created nodes using RadTreeview Property Builder. For some reasong i set visiblity = false of one node using advanced tab in the property builder. Not i need to show that node in the builder.How i recover that node in the builder.
I can set visibility = true using my code. Not in the design time i am unable to view the node

Nikolay
Telerik team
 answered on 05 Oct 2010
9 answers
1.6K+ views
Is there anything I can do to have a ComboBox behave has a read only element, like you can with a TextBox?

I want to have a field that displays data, but is not always editable, and isn't the hard to read gray-on-gray of the disabled state. I generally suppress the dropdown and then use a light gray back ground with black text, but I don't see anyway to suppress the dropdown.

Is there a way to achieve what I'm looking for?

Josh
Peter
Telerik team
 answered on 05 Oct 2010
2 answers
287 views

How can you group off one column but sort on another column through code??

I have one column that has the group name "string" lets say 'ROOM' but the order they need to be displayed is an int lets say "Room Order" so I have data like

Bedroom, 2,  'Some Info1'
Bedroom, 2,  'Some Info2'
Bedroom, 2,  'Some Info3'
Kitchen, 1, 'Some Info1'
Kitchen, 1, 'Some Info2'
Kitchen, 1, 'Some Info3'
Bathroom, 3, 'Some Info1'
Bathroom, 3, 'Some Info2'

I want to group off of the ROOM column but sort offer the Room Order column, however, once I group it always sorts off the group column, in this example ROOM

I have tried bringing in the data already sorted it does help. I have also tried following code:

Me

 

.gvRoomNights.Columns("ROOM_SORT_ORDER_SITE").Sort(RadSortOrder.Ascending, True)

 

 

 

Dim expression As New GridGroupByExpression("[ROOM_POOL_CD] as [Room Pool] Group By [Room Pool]")

 

 

'Dim expression2 As New GridSortField("[ROOM_SORT_ORDER_SITE]")

 

gvRoomNights.EnableSorting =

True

 

gvRoomNights.MasterTemplate.EnableSorting =

True

 

gvRoomNights.MasterTemplate.GroupDescriptors.Add(expression)

 

Me.gvRoomNights.Columns("ROOM_SORT_ORDER_SITE").Sort(RadSortOrder.Ascending, True)

 

 

'gvRoomNights.MasterTemplate.SortDescriptors.Add(expression2)

 

gvRoomNights.Columns(

"ROOM_POOL_CD").Width = 60

I guess I could group by the ROOM SORT ORDER but I need to change the Groups HEader text to the actual room name. If you can show me that I would be able to get around this. Thanks.

 


Eric
Emanuel Varga
Top achievements
Rank 1
 answered on 05 Oct 2010
3 answers
170 views
Does anyone have an example of how to use a MultiColumnComboBox with RadControls for WinForms 2010 Q2?  I can't seem to find an example in the demos that came with it and I'm not able to get it working.  My code is posted below.  Basically my grid (the comboelement if I'm reading correctly) never displays.  The first value in the datatable displays in the text box but no grid shows up.  I can press the down arrow and the value changes but still never displays.  Can anyone help me?

 

 

 

//set up data

 

 

 

Data objData = new Data();

 

 

DataTable dtCarriers = objData.GetCarriers();

 

bindingSource1.DataSource = dtCarriers;

 

 

//setup drop down grid display options

 

rmccbCarrier.AutoSizeDropDownToBestFit =

true;

 

rmccbCarrier.DisplayMember =

"CARRIER_CODE";

 

 

RadMultiColumnComboBoxElement multiColumnComboElement = this.rmccbCarrier.MultiColumnComboBoxElement;

 

multiColumnComboElement.DropDownSizingMode =

SizingMode.UpDownAndRightBottom;

 

multiColumnComboElement.DropDownMinSize =

new Size(420, 300);

 

 

this.rmccbCarrier.MultiColumnComboBoxElement.AutoCompleteMode = AutoCompleteMode.None;

 

 

this.rmccbCarrier.DropDownStyle = RadDropDownStyle.DropDown;

 

 

FilterDescriptor descriptor = new FilterDescriptor(this.rmccbCarrier.DisplayMember, FilterOperator.StartsWith, string.Empty);

 

 

this.rmccbCarrier.EditorControl.FilterDescriptors.Add(descriptor);

 

 

this.rmccbCarrier.DropDownStyle = RadDropDownStyle.DropDown;

 

rmccbCarrier.AutoFilter =

true;

 

rmccbCarrier.MultiColumnComboBoxElement.AutoCompleteMode =

AutoCompleteMode.None;

 

Svett
Telerik team
 answered on 05 Oct 2010
2 answers
171 views
I need to set an usercontrol which I've developed in the place of GridView column. For example, for a GridViewTextBoxColumn I coded something like this:
GridViewTextBoxColumn columnName = new GridViewTextBoxColumn();
columnName.HeaderText = "Phone";
columnName.Width = 120;

But now, I'd like to create an GridViewColumn as my UserControl type, something like:
GridViewMyUserControlColumn columnName= new GridViewMyUserControlColumn();
columnName.HeaderText = "Phone";
columnName.Width = 120;

I know that sentence is incorrect but I need to know how I can to set my user control as a GridView column, well, in case of that is possible... Thank you.
Julian Benkov
Telerik team
 answered on 05 Oct 2010
6 answers
137 views

Hi!

  1. Run demo application from "RadControls for WinForms Q2 2010 SP2"
  2. Select GridView -> Hierarchy -> Folder Tree
  3. Expand “Program Files” folder – everything is ok.
  4. Expand “My Documents” folder - ok.
  5. Collapse “Program Files” folder – folder is collapsed but icon on “My Documents” folder is changed from “-“to “+”! It might be very misleading to the user.

 

Is there any workaround?

Regards

Martin Vasilev
Telerik team
 answered on 05 Oct 2010
1 answer
157 views
I'm attempting to clear the items from an existing RadRotator, and replace them with new ones.  Does anyone know if the example below the correct way to do this, or what the best way would be?  Any help would be greatly appreciated.  Thank you!

// add first image to rotator
RadImageItem image = new RadImageItem();
image.Image = Image.FromStream(imageBuffer);
radRotator1.Items.Add(image);

// clear existing items so we can add new ones
radRotator1.Items.Clear();

// add a differrent image to the rotator
RadImageItem image2 = new RadImageItem();
image2.Image = Image.FromStream(imageBuffer2);
radRotator1.Items.Add(image2);
radRotator1.Items.
Peter
Telerik team
 answered on 05 Oct 2010
4 answers
182 views
Hi! 
I am trying to implement GridViewComboBoxColumn on gridview for existing"DEPARTMENT_ID"
colum.
I tried below and it works fine, but it is adding another column on the gridview instead of replacing existing "DEPARTMENT_ID" column.
1. What should I change?
2. What property will remove a scroll bar on GridViewComboBoxColumn?

 
 With Me.rgvEmployee
            .Columns("EMP_ID").HeaderText = "EMP ID"

            Dim deptComboboxColumn As GridViewComboBoxColumn = New GridViewComboBoxColumn
            With deptComboboxColumn
                .UniqueName = "DeptColumn"
                .HeaderText = "Dept"
                .DataSource = From q In db.MST_DEPARTMENT _
                              Select q.DEPARTMENT_ID, q.DEPARTMENT_NM
                .ValueMember = "DEPARTMENT_ID"
                .DisplayMember = "DEPARTMENT_NM"
                .FieldName = "DEPARTMENT_ID"
                .Width = 200
            End With
            Me.rgvEmployee.Columns.Add(deptComboboxColumn)

        End With
Won
Top achievements
Rank 1
 answered on 05 Oct 2010
3 answers
213 views
Hi,

Can we implement such a window:

1. The window has menu and toolbar;
2. The client area of the window is a grid.
3. There is a 'toggle view' button in the toolbar, which toggles the grid view between Grid (List) view and Detail (single record) view. That is to say, users can select any row of the grid, and toggle to Detail (single record) view; and vice versa.

Any suggestions will be appreciated much!

Regards,
James
Jack
Telerik team
 answered on 05 Oct 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
PdfViewer and PdfViewerNavigator
CommandBar
ListControl
Carousel
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
Label
AutoCompleteBox
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
SyntaxEditor
Wizard
CollapsiblePanel
LayoutControl
ShapedForm
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
SmartPasteButton
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?