Telerik Forums
UI for WinForms Forum
10 answers
140 views
I don't get it. I want to read/write appointment data from a database, and get/set IsAllDay. Sure, I can check that the start is 00:00:00 and that the end is 23:59:59 on the same date, but what kind of kludge is that?

What reason is there to protect this property?
Dobry Zranchev
Telerik team
 answered on 06 Jan 2011
1 answer
133 views
What I'm trying to do is depend on my search method I want to highlight some fields in my winform to make them required.
Some fields are RadComboBoxes, some of them are DateTimePickers, some MaskedEditBoxes.

On Click event of my search method I'm trying to set a BackColor for fields that are required to yellow.
radComboBox_1.BackColor = Color.Yellow;
EdMsk_A3.BackColor = Color.Yellow;
As soon as user fills out the required field it suppose to change color back to initial White background.

The problem is that the following code for the background change does not work.. BackColor of the combobox  never changed..
Thanks,
Victoria.
Victoria F
Top achievements
Rank 1
 answered on 05 Jan 2011
4 answers
231 views

I need a control that is like the normal windows combobox, except
that for each item in the list the color for the background an forecolor differs, e.g.
Each Item has the same size (width, height)

ITEM 0      backcolour=red, forecolor=white
---------   
ITEM 1      backcolor=black forecolor=white
---------
ITEM 2      backcolor=blue,  forecolour=white
---------

ITEM 3      backcolor=green, forecolour=black

Thank you very much for the help.

 

Ivan Todorov
Telerik team
 answered on 05 Jan 2011
4 answers
159 views
I cannot get the text to wrap in radStatusBarPanelElement placed inside a radstatustrip.
I  am using Q1 2008 SP1.
Can someone please tell me how I can do this? There is nothing in docs also about wrapping text in this element.

Thanks
Sunil
Peter
Telerik team
 answered on 05 Jan 2011
4 answers
106 views
Hi,
    I want to diable the right click option in the RadpanelbarGroupElement. How should i acheive it?
As of now am giving the message box in the mouse down event. Below is the code that i have used.
Private Sub RadPanelBar1_MouseDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles RadPanelBar1.MouseDown
       Try
           If e.Button = Windows.Forms.MouseButtons.Right Then
               RadMessageBox.Show("Right click not allowed.")
               Exit Sub
           End If
       Catch ex As Exception
           RadMessageBox.Show(ex.ToString)
       End Try
   End Sub
I dont need to intimate the user about this. How this should be done?
Surendar S
Top achievements
Rank 1
 answered on 05 Jan 2011
7 answers
150 views
hi team,

I have 4 documents spitted to 4 corners.
How can i get their events in splitting and count of it.

Thank
suresh.
Richard Slade
Top achievements
Rank 2
 answered on 05 Jan 2011
6 answers
458 views
Dear friends,

I have a read only RadScheduler, and i need to change the backcolor of it when i have text in one those fields.
For example, the default backcolor is blue, but when one of the dataset fields contains some text, i need to change the backcolor to red.

Thank you.
Xavier Soares
Top achievements
Rank 2
 answered on 05 Jan 2011
8 answers
189 views
Hello,

I have a grid which shows the structure of a folder. Everythings works perfect except when I sort the list with the auto sort method.

My first column is a imagecolumn. If the record is a file a file-icon is shown, if the record is a folder, a folder-icon is shown. I use the Cellformatting even for this.

This works perfect, but when I sort the grid the rowindex is always missing This is the error: e.CellElement.RowIndex 'e.CellElement.RowIndex' threw an exception of type 'System.ArgumentException' int {System.ArgumentException}


This is my code, column 6 is used to show the current file size, column 2 is the imagecolumn.

private void radGrdDocuments_CellFormatting(object sender, CellFormattingEventArgs e)
        {
  
            if (e.CellElement.ColumnIndex == 6)
            {
                if ((radGrdDocuments.Rows[e.CellElement.RowIndex].Cells["colType"].Value.ToString() == "1"))
                {
  
                    GridViewCellInfo sizeCell = this.radGrdDocuments.Rows[e.CellElement.RowIndex].Cells[e.CellElement.ColumnIndex];
                    radGrdDocuments.CellFormatting -= new CellFormattingEventHandler(this.radGrdDocuments_CellFormatting);
                    sizeCell.Value = ConvertSizeToString(Convert.ToInt32(radGrdDocuments.Rows[e.CellElement.RowIndex].Cells["colActualSize"].Value));
                    radGrdDocuments.CellFormatting += new CellFormattingEventHandler(this.radGrdDocuments_CellFormatting);
                }
            }
            if (e.CellElement.ColumnIndex == 2)
            {
                GridViewCellInfo imageCell = this.radGrdDocuments.Rows[e.CellElement.RowIndex].Cells[e.CellElement.ColumnIndex];
                radGrdDocuments.CellFormatting -= new CellFormattingEventHandler(this.radGrdDocuments_CellFormatting);
                imageCell.Value = imgListPicto.Images[radGrdDocuments.Rows[e.CellElement.RowIndex].Cells["colIconType"].Value.ToString()];
                radGrdDocuments.CellFormatting += new CellFormattingEventHandler(this.radGrdDocuments_CellFormatting);
            }
  
        }
Richard Slade
Top achievements
Rank 2
 answered on 05 Jan 2011
5 answers
554 views

Hi!
 I want to  draw the char to the cell by the Graphics. First i set the string to the cell ,second i draw the string by handling the CellPaint Event.
 the code is in the following.

 this.radGridView.EnbleCustomDrawing = true;       

this.radGridView.Rows[1].cells[1] = "+++++-----";    

private void radGridView1_CellPaint(object sender, GridViewCellPaintEventArgs e)
        {
            string content = e.Cell.Value as string;            
            if (string.IsNullOrEmpty(content))
            {
                return;
            }
            SolidBrush solidBrush = new SolidBrush(Color.Blue);
            int x = e.Cell.Bounds.Right - content.Length * 6 - 7;
            int y = e.Cell.Bounds.Y + 2;
            if (e.Cell.ColumnIndex != 1) return;            
            foreach (char ch in content)
            {               
                    solidBrush.Color = ch == '+' ? Color.Green : Color.Blue;
                    e.Graphics.DrawString(
                        ch.ToString()
                        , e.Cell.Font
                        , solidBrush
                        , x
                        , y);          

                x += 6;
            }
In the result, i get the double string in the cell!
 I want to diplay one string that i draw  in the cell.
I'd like to konw how to get my purpose! 
Regards

kevin
Top achievements
Rank 1
 answered on 05 Jan 2011
6 answers
593 views
Hi!! Everyone!


I have a problem .. i made a winform app .. runs amazing in my development PC..

BUT...


i take my "Bin" folder to other computer and run the .EXE in the "Debug" folder

DOES NOT WORK..

i'm new in telerik controls.. what i have to do .. to run the .EXE in computers away from the development PC??

its a simple APP.. some combos.. some grids.. some textbox all in telerik... the databse is in Access 07... it's my test Application
the first one in telerik but i can't translate it to another computer..

HELPPPP PLEEASEEE

THANKS!!
Richard Slade
Top achievements
Rank 2
 answered on 04 Jan 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
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
CollapsiblePanel
Conversational UI, Chat
DateTimePicker
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
BindingNavigator
Styling
Barcode
PopupEditor
RibbonForm
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
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
AI Coding Assistant
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?