Telerik Forums
UI for WinForms Forum
2 answers
107 views
Hi,

i am trying to build an editable TreeView:

if selectedNade change the current selected value goes to a radtextbox:

private void radTreeView1_SelectedNodeChanged(object sender, Telerik.WinControls.UI.RadTreeViewEventArgs e)
        {
                TestItem item = radTreeView1.SelectedNode.DataBoundItem as TestItem;
                if (item != null)
                {
                    radTextBox1.Text = item.Name;
                    radTextBox1.Enabled = true;
                }
        }

on KeyUp Event i store the value back:

private void radTextBox1_KeyUp(object sender, KeyEventArgs e)
{
    if (radTreeView1.SelectedNode != null)
    {
        TestItem item = radTreeView1.SelectedNode.DataBoundItem as TestItem;
        if (item != null)
        {
            item.Name = radTextBox1.Text;
        }
    }
}

this doesn't work immediately, but if i click on another node then the last node updates correctly. i tried refresh(), update() and implementing INotifyPropertyChanged, but nothing worked

is live updateing possible?

greetings
jed
Top achievements
Rank 1
 answered on 19 Oct 2013
10 answers
170 views
I noticed that even though you set the Auto tooltips to True on the RadDropDownButton it has no effect - no tooltip gets displayed - and yes the Text value is set :)
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 18 Oct 2013
12 answers
536 views
Hi,

I need help with one problem. I got databound ListView on windows form.
One of the columns in bound data is of DateTime type.
How do I display it in format dd/MM/yyyy (without time).
I can return date from database as already formated string but then sorting on this column
works on string value not DateTime.
I can't find way around it. Any help would be greatly appreciated.

Thanks
Chris
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 18 Oct 2013
1 answer
94 views
Two tables in my database are: Regions and Carriers.
In the Carriers table, there is a field called "Regions".

That 'regions' field will be a GridViewComboBox that should get it's values from a "name" field in the Carriers table.

How would I do this?
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 17 Oct 2013
1 answer
59 views
If I take a tab strip (like the one in Examples/TabbedDocument) and add the following code in order to only allow dragging the documents within the tab strip they are a part of:

radDock1.GetService<DragDropService>().Starting += (sender, args) =>
{
    if ((sender as DragDropService).DragDropContext == DragDropContext.DocumentWindow)
    {
        args.Cancel = true;
    }
};

Then when dragging the cursor does weird things. If I start dragging, it shows the red circle (because I can't drop the document on itself). And if the cursor stays within the tab strip, everything is fine. But if I drag down so I'm hovering over one of the documents themselves, the cursor reverts to a simple pointer, even though I'm still dragging. Ideally, it would remain as a red circle, or if I had first hovered over a different tab, changing the cursor to the valid drop cursor, it should switch back to a red circle.

If I then return to the document tab strip (still dragging), the cursor will come back when I hover over the original document tab being dragged, but not any of the others.
George
Telerik team
 answered on 17 Oct 2013
0 answers
111 views
I added a combobox to my grid via the following method
   GridViewComboBoxColumn cboreason = new GridViewComboBoxColumn("Reasons");
               
               cboreason.DataSource = pamsContext.GetGrievancesReasons();
               cboreason.FieldName = "reason";
               cboreason.DisplayMember = "Value";
               cboreason.ValueMember = "Key";
               cboreason.Width = 100;
               grvGrievances.Columns.Add(cboreason);
               grvGrievances.AutoSizeColumnsMode = GridViewAutoSizeColumnsMode.Fill;
     

 I have a details changed to track the dirty state of my form which i normally attach via 
  txtReportedTo.SelectedValueChanged+= DetailsChanged;
             

How do i do this with the above ???? As dont see the usual SelectedValueChanged method to call ??
Dave
Top achievements
Rank 1
 asked on 17 Oct 2013
7 answers
146 views
How do I get a context menu to show up for a childtemplate in a radgridview?
Thx.
Craig
Stefan
Telerik team
 answered on 17 Oct 2013
1 answer
202 views
HI

I need to have a close button on some tab of my PageView, but not all.

How should i proceed ?


Thank
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 17 Oct 2013
8 answers
331 views
I want to  create program using telerik Tool  like your demo program .I have problem with  side menu how to make it fade in ,fade out and auto from when hide Menu.
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 17 Oct 2013
0 answers
112 views
I have a split container left and right one left with a grid view and one right with my controls I need to be able to place the ok and save buttons on the left and new record on the bottom but obv casue the containers are taking up full screen how do i solve this do i put a panel below the main container?
Dave
Top achievements
Rank 1
 asked on 17 Oct 2013
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
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
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
CheckedListBox
StatusStrip
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
Barcode
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Licensing
Localization
TimePicker
ButtonTextBox
FontDropDownList
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
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
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
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?