Telerik Forums
UI for WinForms Forum
7 answers
664 views
Pivot table has AggregateDescription as:

' Cells
dataProvider.AggregateDescriptions.Add(New PropertyAggregateDescription() With { _
 .PropertyName = "IVResp", _
 .AggregateFunction = AggregateFunctions.Count, _
.TotalFormat = New PercentOfColumnTotal(), .CustomName = "Percentage of Responses", .StringFormat = "#0.0" _
})

Currently, the cells are showing like "20.52%". I want to round them to 1 decimal point: "20.5%". Would really appreciate some direction on this if anyone knows. Thanks.
Stefan
Telerik team
 answered on 19 Nov 2015
4 answers
665 views
Hi, I would like to ask about the RadGridView to select all row by clicking top left corner like Excel. May I know how to do this?
Thank you
Firion
Top achievements
Rank 1
 answered on 19 Nov 2015
1 answer
426 views

How can load documents with password Protected using pdf viewer.

I'm trying Telerik  UI for WinForms and i have an application which should open Password Protected PDF. How can i do that ?

 

Thanks

Hristo
Telerik team
 answered on 18 Nov 2015
1 answer
452 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.2K+ 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
483 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
137 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
569 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
537 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
718 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
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
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
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?