Telerik Forums
UI for WinForms Forum
4 answers
117 views
I have set datasource of a tree view from a data table which is self referencing i.e. it contains columns id and parent id and so data is bind successfully. Now i have set property lableEdit = true for this radtreeview. and so when I press F2 and after I enter new text to the nodes I get error "Column ColName is ReadOnly." Where ColName is DisplayMember of this radTreeView. Thank you so far fast reply.
Stefan
Telerik team
 answered on 22 Mar 2011
9 answers
282 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
203 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
118 views
hi,
How can i changing the selected color of tooltabstrip caption?
Ivan Todorov
Telerik team
 answered on 22 Mar 2011
1 answer
67 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
128 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
530 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
480 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
88 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
88 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
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
CheckedDropDownList
ProgressBar
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
NavigationView
Accessibility
VirtualKeyboard
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
+129 more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?