Telerik Forums
UI for WinForms Forum
4 answers
157 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
234 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
526 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
272 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
634 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
652 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
14 answers
283 views
Hi,

I have a problem with grouping data in RadGridView. I set IList as dataSource to RadGridView.
IList is a list of objects some class Product. Class Product has property Category which is a class with some fields too.

How can I set by what field of class Gategory group the data, when I grouping by Category column in Poduct ?



Any help would be appreciated!

Regards!
Julian Benkov
Telerik team
 answered on 04 Jan 2011
8 answers
3.1K+ views

Hi!

                How can I change color of scroll bars vertical and horizontal (for nested panels also)?

                I do this:

              this.TableElement.VScrollBar.BackColor = Color.Red;

              this.TableElement.HScrollBar.BackColor = Color.Red;

       but nothing changes.

 Regards

Raymond
Top achievements
Rank 1
 answered on 04 Jan 2011
1 answer
148 views
I the toolstrip is obsolete now, what in the world are we supposed to use as an alternative?  We have toolbars (toolstrips) throughout our application!
Ivan Todorov
Telerik team
 answered on 03 Jan 2011
5 answers
662 views
Hi! I had add the new form to my project which the new form is RadRibbon Form
At the form i had add the Office2007BlackTheme also.

I had a question here:
When run the RadRibbon Form i will able to resize the Form by mouse.
How do i disable that function.

I'm Using the RadControls for WinForms Q2 2010 SP2

Thank!

Regards
Johnny
Ivan Todorov
Telerik team
 answered on 03 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)
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
PdfViewer and PdfViewerNavigator
CommandBar
ListControl
Carousel
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
Label
AutoCompleteBox
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
SyntaxEditor
Wizard
CollapsiblePanel
LayoutControl
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
WaitingBar
GroupBox
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
NavigationView
BindingNavigator
RibbonForm
Styling
Barcode
PopupEditor
TaskBoard
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Overlay
Security
LocalizationProvider
Dictionary
TreeMap
StepProgressBar
SplashScreen
Flyout
Separator
SparkLine
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
SpeechToTextButton
SmartPasteButton
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?