Telerik Forums
UI for WinForms Forum
9 answers
289 views
I have a grid where I succesfully manage to open a combobox editor from a cell in a heirarchial grid and make an appropriate selection using the EditorRequired and CellBeginEdit events. The problem is that I need to have two columns in the dropdown list that is displayed. I have a comments column I wish to show beside the DisplayMember column.
As an alternative I tried to get the tootiptext to work but that doesn't seem to work either. Is this implemented?

Any help would be greatly appreciated as I'm rapidly running out of time.
Svett
Telerik team
 answered on 22 Mar 2011
2 answers
215 views
Hi

When we were using the telerik menu items we were able to add buttons and progress bars to the menu element.  We have just changed our application menu structure to use the ribbon bar.

Is it possible to add other controls to the area above the tabs on a ribbon control so that they are always visible, independent of the selected tab?

Many Thanks
Steve
Ivan Todorov
Telerik team
 answered on 22 Mar 2011
2 answers
124 views
hi,
How can i changing the selected color of tooltabstrip caption?
Ivan Todorov
Telerik team
 answered on 22 Mar 2011
1 answer
79 views
I know you have issues with the scale values changing when I click Show Weekends, or change views. It's been noted in a few other threads. So, the questions are

Is it fixed in the new realease (2011Q1)?

What's the workaround?

Later
Art
Dobry Zranchev
Telerik team
 answered on 22 Mar 2011
8 answers
136 views
Hello,

I just upgraded the newest release for winforms using the upgrade wizard and now i can't place any radcontrols on to the form nor can i select radcontrols already existing on my forms before the upgrade.

Please help,
francis
KawaUser
Top achievements
Rank 2
 answered on 22 Mar 2011
5 answers
552 views
When populating a dropdownlist control the selected index changes, which triggers the action I have setup for the index changing... however when I initially populate the dropdownlist by setting a datatable as its datasource and defining the display and value members, the radDropDownList.SelectedItem.Value is a DataRowView object.  After it's populated, though, the radDropDownList.SelectedItem.Value is an integer as it should be.  Can this be explained to me why this is happening and the best way to work with it?

My code currently is this, and it will only work when I initially set the datasource:
private void someOtherMethod ()
{
       sysParentDropDown.DataSource = dt;
       sysParentDropDown.DisplayMember = "name";
       sysParentDropDown.ValueMember = "panelid";
 
       sysParentDropDown.SelectedIndex = -1;
 
}
 
 
private void sysParentDropDown_SelectedIndexChanged(object sender, Telerik.WinControls.UI.Data.PositionChangedEventArgs e)
        {
            if (this.sysParentDropDown.SelectedIndex > -1)
            {
                sysDeviceDropDown.Enabled = true;
                try
                {
                    sysDeviceDropDown.DataSource = null;
                    sysDeviceDropDown.Text = null;
                    sysInputDropDown.DataSource = null;
                    sysInputDropDown.Text = null;
 
                    DataRowView drv = (DataRowView)this.sysParentDropDown.SelectedItem.Value;
 
                    string s = "(panelid = " + drv.Row["panelid"].ToString() + ") AND (devid <> 0) AND (inputdevid = 0)";
                    DataRow[] foundRows = deviceNames.Select(s, "name asc");
 
                    DataTable dt = new DataTable("temp");
                    dt.Columns.Add("name");
                    dt.Columns.Add("devid");
 
                    foreach (DataRow dr in foundRows)
                    {
                        dt.ImportRow(dr);
                    }
 
                    DataRow row = dt.NewRow();
                    row["name"] = "";
                    row["devid"] = " ";
                    dt.Rows.InsertAt(row, 0);
 
                    sysDeviceDropDown.DisplayMember = "name";
                    sysDeviceDropDown.ValueMember = "devid";
                    sysDeviceDropDown.DataSource = dt;
 
 
                }
                catch (Exception ex)
                {
                    MessageBox.Show(ex.Message);
                }
            }
            else
            {
                sysDeviceDropDown.Enabled = false;
                sysDeviceDropDown.SelectedText = null;
                sysInputDropDown.Enabled = false;
                sysInputDropDown.SelectedText = null;
            }
        }

Thanks for your time
Peter
Telerik team
 answered on 22 Mar 2011
16 answers
499 views
hi,
I have a RadTextBox in MultiLine mode with a NullText. I add text with my code, but I have always a empty line at the end.
How can I remove that? Sounds as a pretty easy task, but for some reason it doesnot work for me, the empty line at the end is never removed.
Regards, Andreas
Ivan Petrov
Telerik team
 answered on 22 Mar 2011
1 answer
89 views
Hello,

I have a scenario where I need to have cell text to display one databound field from an entity property, but when in edit mode I would like to use a dropdownlist to change the underlying entity itself and not the value being displayed.

For example my entity in simple terms is as follows:

Vehicle (Main databound entity)
-- Vehicle.Make (relates to Make entity)
-- Vehicle.Model (relates to Make entity)
-- Vehicle.Year (relates to Year entity)
-- Vehicle.Region (relates to Region entity)

Make
-- Make.MakeID
-- Make.MakeName

Model
-- Model.ModelID
-- Model.ModelName

Year
-- Year.YearID

Region
-- RegionID
-- RegionAbbr
-- RegionFullName

I would like to have for example a Region column that displays Region.RegionAbbr in the cell text, but when entering edit mode give a list bound to Region enities.  These entries should be bound to a List<Region> and displaymember should be set to RegionAbbr for display purposes.  When an entity is selected from the dropdown, instead of altering Region.RegionAbbr I would like to intercept the change and assign the Dropdownlist DataBoundItem to the Vehicle.Region entity.

Can this be done?
Martin Vasilev
Telerik team
 answered on 22 Mar 2011
1 answer
97 views
Greetings,

After adding a new row, how can I place the cursor in the first column in the new row position?  I have tried the following but it doesn't work:

private void gv_UserAddedRow(object sender, GridViewRowEventArgs e)
       {
           gv.CurrentRow = gv.MasterView.TableAddNewRow;
           gv.CurrentColumn = gv.Columns[0];
           gv.BeginEdit();
       }
Martin Vasilev
Telerik team
 answered on 22 Mar 2011
7 answers
354 views
Hello, 
I am trying to change color of the header cell in currently selected column. I tried to achieve this as it is done in this post Change of back color, however the header cells will start to react only if the user hovers with mouse over specified columns before he starts clicking into the grid. 

Here is the code snippet I use
        void electionChanged(object sender, EventArgs e)
        {
            if (SelectedCells.Count == 0)
                return;
            int index = SelectedCells[0].ColumnInfo.Index;

            if (MasterGridViewInfo.TableHeaderRow.Cells[index].CellElement == null)
                return;

           for (int i = 0; i < Columns.Count; i++ )
                MasterGridViewInfo.TableHeaderRow.Cells[i].CellElement.ResetValue(LightVisualElement.BackColorProperty);

            MasterGridViewInfo.TableHeaderRow.Cells[index].CellElement.SetValue(
                LightVisualElement.BackColorProperty, Color.Blue);
        }

Can you please pinpoint where is the problem?
Richard Slade
Top achievements
Rank 2
 answered on 21 Mar 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)
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
Documentation
SplitContainer
Map
DesktopAlert
CheckedDropDownList
ProgressBar
TrackBar
MessageBox
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
CollapsiblePanel
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
Styling
Barcode
PopupEditor
RibbonForm
TaskBoard
Callout
NavigationView
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Security
LocalizationProvider
Dictionary
SplashScreen
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?