Telerik Forums
UI for WinForms Forum
11 answers
626 views
When I'm changing text in textbox - the value in the cell is changing too(at the same time). I use event
private void rtx_TextChanging(object sender, TextChangingEventArgs e)
{
    RadTextBox rtb = sender as RadTextBox;
    string title = rtb.Name.Substring(0, rtb.Name.Length - "textbox".Length);
    this.radLabelElement1.Text = rgv.CurrentRow.Cells[title].Value.GetType().ToString();
    rgv.CurrentRow.Cells[title].Value = e.NewValue;
    rgv.CurrentRow.InvalidateRow();
}
where rtx - radtextbox

What event? I need to use to do the same thing for textboxes - when I change value in the cell the value in textbox changes too. I was trying to use CellValueChanged but it affects only after I press enter
Emanuel Varga
Top achievements
Rank 1
 answered on 07 Nov 2012
2 answers
171 views
I have the text aligned to Top Left and the image aligned to the Bottom Right.  However, the icon always seems to appear above the text and centered.Is this a bug or something I am doing incorrectly?

Thanks,

- Brad
Stefan
Telerik team
 answered on 07 Nov 2012
1 answer
77 views
Hi
I using a RadTreeView and Bind to a Binding List. but after binding ( using DataSource, Child Member, ParentMember, DisplayMember properties ) Drag And Drop Events such as "DragEnded" event not work.

please Full help me by a sample about this prablem !

thanks

Stefan
Telerik team
 answered on 07 Nov 2012
1 answer
221 views
Hi Telerik,
I have assigned some cols as read only in the radgrid(radform) and i used cell formatting to apply colors like this by name:
DTURradGridView.Columns["dtuct0"].ReadOnly = true;
          DTURradGridView.Columns["dtuct1"].ReadOnly = true;
          DTURradGridView.Columns["dtuct2"].ReadOnly = true;
          DTURradGridView.Columns["dtuct3"].ReadOnly = true;
          DTURradGridView.Columns["dtuy"].ReadOnly = true;

if (e.CellElement.ColumnInfo is GridViewDataColumn)
            {
                if (e.CellElement.ColumnInfo.FieldName == "dtuct0" )
                {
                    e.CellElement.DrawFill = true;
                    e.CellElement.NumberOfColors = 1;
                    e.CellElement.BackColor = Color.LightSlateGray;
                    e.CellElement.GradientStyle = GradientStyles.Linear;
                }
                if (e.CellElement.ColumnInfo.FieldName == "dtuct1")
                {
                    e.CellElement.DrawFill = true;
                    e.CellElement.NumberOfColors = 1;
                    e.CellElement.BackColor = Color.LightSlateGray;
                    e.CellElement.GradientStyle = GradientStyles.Linear;
                }
                if (e.CellElement.ColumnInfo.FieldName == "dtuct2")
                {
                    e.CellElement.DrawFill = true;
                    e.CellElement.NumberOfColors = 1;
                    e.CellElement.BackColor = Color.LightSlateGray;
                    e.CellElement.GradientStyle = GradientStyles.Linear;
                }
                if (e.CellElement.ColumnInfo.FieldName == "dtuct3")
                {
                    e.CellElement.DrawFill = true;
                    e.CellElement.NumberOfColors = 1;
                    e.CellElement.BackColor = Color.LightSlateGray;
                    e.CellElement.GradientStyle = GradientStyles.Linear;
                }
                if (e.CellElement.ColumnInfo.FieldName == "dtuy")
                {
                    e.CellElement.DrawFill = true;
                    e.CellElement.NumberOfColors = 1;
                    e.CellElement.BackColor = Color.LightSlateGray;
                    e.CellElement.GradientStyle = GradientStyles.Linear;
                }
            }

Then i want to hide/unhide based on the selection like this:
private void normalToolStripMenuItem_Click(object sender, EventArgs e)//Normal View
        {
            DTURradGridView.Columns["dtuct0"].IsVisible = false;
            DTURradGridView.Columns["dtuct1"].IsVisible = false;
            DTURradGridView.Columns["dtuct2"].IsVisible = false;
            DTURradGridView.Columns["dtuct3"].IsVisible = false;
            DTURradGridView.Columns["dtuy"].IsVisible = false;
 
        }
 
         
 
        private void advancedToolStripMenuItem_Click(object sender, EventArgs e) //Advanced View
        {
            DTURradGridView.Columns["dtuct0"].IsVisible = true;
            DTURradGridView.Columns["dtuct1"].IsVisible = true;
            DTURradGridView.Columns["dtuct2"].IsVisible = true;
            DTURradGridView.Columns["dtuct3"].IsVisible = true;
            DTURradGridView.Columns["dtuy"].IsVisible = true;
 
      
        }
When i Click on Normal Mode function, it applies colors to other cols. This is really strange for me. Please help me, thank you.
Emanuel Varga
Top achievements
Rank 1
 answered on 07 Nov 2012
1 answer
220 views
Hi,

We are trying to replace a winform propertygrid with a RadPropertyGrid.

Previously, we were binding an object to the property grid, which in turn was displaying all the properties. If one of the properties is a collection it used be displayed in a collectioneditor when invoked from the property value.

Since the Propertygrid is replaced by RadPropertyGrid, we have been unable to do this. Even when one of the properties is returning a collection it the property grid is not providing the means to invoke the collection editor. I feel like we are missing something. 

Thanks in advance
--Rajesh

Ivan Petrov
Telerik team
 answered on 07 Nov 2012
2 answers
72 views
As title.

Data is not populated with columns rows and value configured at design time.
I have to move one or more of the fields from column to row and back again to their original places to retrieve the data.

Also the forum doesn't repaint and fields vanish until form is resized.
Gareth
Top achievements
Rank 1
 answered on 07 Nov 2012
1 answer
68 views
i have made my own calender on datagrid in such away when i click on any particulat date(which are cell of datagrid) new form is open now i want whenever i clicked on any date it will automatically synchronized with radschedular it allow m to create schedule of particulat date plz help me em struck thanks in advance


regard usman shah
Ivan Todorov
Telerik team
 answered on 07 Nov 2012
1 answer
118 views
HI.
I need help plz.

Create a table with following fields:
ID | CODE | NAME
Where
ID - id, CODE - item number, NAME - the name of range.

CODE should have the followinf format:
xx.yy.zz
where, xx - activites, yy - contract, yy - task.

In the DB will be store as follows:
1 | 01           | Basic activites
2 | 01.01      | Contract about 1
3 | 01.02      | Contract about Bank
4 | 02           | Hoz activites
5 | 02.02      | Contract el
6 | 02.02.01 | Electric
7 | 02.02.02 | Hot

Just have to take into account the fact that the levels of the hierarchy can be expended. So they con not 3. Be even so xx.yy.zz.hh.ee

I add data the the database (yet without additions of new ones). How to create a universal algorithm to treeView filled exactly hierarchy?

The result  of which must  be obtained:

Nikolay
Telerik team
 answered on 06 Nov 2012
1 answer
196 views
Hi Telerik,
I trying to update some text to RadRichTextBox but it's work. It showing me a blank screen. If i use windows/winform richtextbox it works.

What shouild i do???  Thank you.

exBuilder.Clear();
                exBuilder.Append(exception.Message + Environment.NewLine);
 
                RadRichTextBox richTextBox = new RadRichTextBox();
                //RichTextBox richTextBox = new RichTextBox();
                richTextBox.ThemeName = "Office2007Black";
 
                richTextBox.Text =  line + ":" + exBuilder.ToString();
                richTextBox.Dock = DockStyle.Fill;
                richTextBox.IsReadOnly = true;
                //richTextBox.ReadOnly = true;
                richTextBox.ForeColor = Color.Red;
Karthik
Top achievements
Rank 1
 answered on 06 Nov 2012
2 answers
249 views
When the "Click Here To Add A New Row" bar is clicked in a radgridview, I need to follow it with default column value entry. 

What is the best way to default in values after the bar is clicked.

I have accomplished this with the right click New popup menu, but we would like to use the "Click Here to Add a New Row" bar as well.
Stefan
Telerik team
 answered on 06 Nov 2012
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
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?