Telerik Forums
UI for WinForms Forum
1 answer
445 views
Hi, I want to know how to capture the double click event on the nodes? User click on nodes and open new form. Currently i use MouseClick event is able to capture but i tried on double click cant perform what i want.

Private Sub RadTreeView1_NodeMouseClick(sender As Object, e As Telerik.WinControls.UI.RadTreeViewEventArgs) Handles RadTreeView1.NodeMouseClick
            If e.Node.Name = "License" Then
                license = New License
                license.MdiParent = Me
                license.WindowState = FormWindowState.Maximized
                license.Show()
            End If
End Sub

Above is the code that i use on MouseClick Event, it work as my expectation. But i wish to make it ask Double Click event.

Thank you and appreciate your answer.
Stefan
Telerik team
 answered on 17 Nov 2015
16 answers
1.1K+ views
I need to add Checkbox to group header.
 i was able to do so, altering the code from 
http://www.telerik.com/community/forums/winforms/gridview/adding-controls-to-the-group-header.aspx
just needed to inherit from GridGroupContentCellElement class.
but, the checkbox is appearing on the right most side and also i cannot attach to its check state toggle event.

Thank you in advance for your help 


the code for the inerited class is

 

public class CustomGroupHeaderCell : GridGroupContentCellElement
    {
        public event EventHandler MeCheckChanged;
  
        private RadCheckBoxElement checkbox;
  
        public CustomGroupHeaderCell(GridViewColumn column, GridRowElement row)
            : base(column, row)
        { }
  
        protected override void CreateChildElements()
        {
            base.CreateChildElements();
            checkbox = new RadCheckBoxElement();
            checkbox.MinSize = new System.Drawing.Size(5, 5);
            checkbox.ToggleStateChanged += new StateChangedEventHandler(checkbox_ToggleStateChanged);
            Children.Insert(0,checkbox);
            ApplyThemeToElement(checkbox, "Bruder");  
        }
  
        private void checkbox_ToggleStateChanged(object sender, StateChangedEventArgs args)
        {
            if (MeCheckChanged != null)
                MeCheckChanged(this, null);
        }
        protected override System.Drawing.SizeF ArrangeOverride(System.Drawing.SizeF finalSize)
        {
            SizeF size = base.ArrangeOverride(finalSize);
            RectangleF rect = GetClientRectangle(finalSize);
            if (this.checkbox != null)
                this.checkbox.Arrange(new RectangleF(rect.Right - this.checkbox.DesiredSize.Width - 5,
                                                     rect.Top + (rect.Height - this.checkbox.DesiredSize.Height) / 2,
                                                     this.checkbox.DesiredSize.Width,
                                                     this.checkbox.DesiredSize.Height));
  
            return size;
        }
  
        private void ApplyThemeToElement(RadItem item, string themeName)
        {
            try
            {
                if (item.ElementTree == null) return;
  
                DefaultStyleBuilder builder = ThemeResolutionService.GetStyleSheetBuilder(
                                             (RadControl)item.ElementTree.Control,
                                              item.GetThemeEffectiveType().FullName,
                                              string.Empty, themeName) as DefaultStyleBuilder;
  
                if (builder != null)
                    item.Style = builder.Style;
            }
            catch (Exception ex)
            { }
        }
    }
            
  
        
  
}
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 17 Nov 2015
7 answers
472 views
Hi all,
I am using Telerik PageView very extensively in my project. In most of the places my form design demands me to resize the pageview tab strip height. But I could not find the property or area to do it.
Please help me with any information regarding the resizing the tab height in rad pageview.

Thanks
Vijay
Ralitsa
Telerik team
 answered on 17 Nov 2015
2 answers
131 views

Dear members,

i have 3 grids on 3 forms, but just one gridview  is directly visible for the end user, because the other forms are on seperate monitors away from the pc users view.

What i want is, that a condtional rules that is defined for the main grid will be copied to the both others.

Is this supported and if not can i bind for example the rowbackcolor to a my.settings.value?

i have used

Dim obj = New ConditionalFormattingObject("MyCondition", ConditionTypes.Startswtih, "1 -", "", True)
obj.CellForeColor = Color.Red
obj.RowBackColor = my.settings.fcDIV1
Me.RadGridView1.Columns("Name").ConditionalFormattingObjectList.Add(obj)​

but i have gotten a null reference exception.

Kind regards

Martin

Hristo
Telerik team
 answered on 16 Nov 2015
3 answers
559 views

Hello,

 

is there a way to have the RadProgressbarElement show a gradient that only uses part of the defined color range depending on the actual progress (eg. at 50% only BackColor1->BackColor2, at 75% BackColor1->BackColor3, at 100% BackColor1->BackColor4)?

 

 

Kind regards,

Andreas

Dimitar
Telerik team
 answered on 16 Nov 2015
34 answers
534 views
Hi, this is my first post. I'm using RadGridView and I want some cells have different colour if a condition is fulfilled or some cells disabled if the same condition or another is fulfilled. I am handling CreateCell event but the problem is e.cellelement is always nothing and I get exception. I'm using RadControls for Windows 2010 Q2 SP2 trial.
I'm using Visual Studio 2008 (.NET 3.5 Framework, VB. NET) and I'm new using telerik rad controls.
Am I doing something wrong? Is this event the best for doing what I try to get? Thanks for the answers.



Dimitar
Telerik team
 answered on 16 Nov 2015
2 answers
711 views

Hi guys. 

Got some problems with the radgridview. I have a radgridview with some filters. If user filters the data i need to get row index for some updates. But for me row index is always -1 after filtering. Without filtering code works well.

  private void grdDetay_CellEndEdit(object sender, GridViewCellEventArgs e)
        {

            var listId = 0;
            var dtyid = 0;
           
            GridViewRowInfo row = this.grdDetay.CurrentRow;
            int rowIndex = row.Index;
            listId = Convert.ToInt32(grdDetay.ChildRows[rowIndex].Cells[0].Value);
            dtyid = Convert.ToInt32(grdDetay.ChildRows[rowIndex].Cells[1].Value);
            
       }
                â€‹

Dimitar
Telerik team
 answered on 16 Nov 2015
3 answers
817 views
HI

I have met a big problem.

I have new a TelerikWinFormsApp1 and the build process is normal.

but after drag/drop a RadPageView into Form1 the build process throw the error :

SeverityProjectCodeDescriptionFileLine
ErrorTelerikWinFormsApp1
Task could not find "LC.exe" using the SdkToolsPath "" or the registry key 
"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\NETFXSDK\4.6\WinSDK-NetFx40Tools-x86". 
Make sure the SdkToolsPath is set and the tool exists in the correct processor specific 
location under the SdkToolsPath and that the Microsoft Windows SDK is installed

Just a simple Telerik control drag/drop...
I need to install the Windows 10 SDK ?
(https://dev.windows.com/en-us/downloads/windows-10-sdk)
If need, Why ???

*Registry key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\NETFXSDK\
 is not exists in my windows registry.
*My C:\Program Files\Microsoft SDKs\Windows\ have no 'v10.0A' folder.
*If drag/drop the radButton1, the build process is normal.

Environment:
Windows 7
Visual Studio 2015 Enterprise 
Telerik DevCraft 2015 Q2

Best regards

Chris

Hristo
Telerik team
 answered on 16 Nov 2015
1 answer
141 views

Hi all, I've attached a png of my issue. The shart is inside a table cell, as you can see only half of the chart is visible, no idea why this is?

 

Dimitar
Telerik team
 answered on 16 Nov 2015
2 answers
91 views

I don't understand why but if you place a RadTextBox or a RadTextBoxControl with a BackColorChanged event setup inside a RadPageView the BackColorChanged event is raised before the Form_Load method when you start the app without changing the BackColor of the RadTextBox. If you move the control outside the RadPageView the BackColorChanged event does not get raised which is the expected behavior.

I wonder if this is a known issue?

Any idea how to prevent the BackColorChanged event to get raised when the control is inside a RadPageView?

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 16 Nov 2015
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
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
CollapsiblePanel
LayoutControl
ShapedForm
SyntaxEditor
Wizard
TextBoxControl
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
RibbonForm
Styling
Barcode
PopupEditor
TaskBoard
NavigationView
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Overlay
Security
LocalizationProvider
Dictionary
SplashScreen
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
SpeechToTextButton
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?