Telerik Forums
UI for WinForms Forum
1 answer
220 views
Hi!

I use grouping with summaryrows in each group and set ShowParentGroupSummaries in the MasterTemplate = true.
Also I set MasterTemplate.ShowTotals = true.

In the first column, the Total-Summary-Row is titled with the last-item-text of the last group ;-(.

How can I change this text to "Total" (for examle)?

Kind regards

Michael
Boryana
Telerik team
 answered on 07 Aug 2012
1 answer
104 views
Hi,

I saw the grid feature list,  I was wondering if there are multiple small grids on one screen with different columns.   Can these grid be exported one below the other in same excel file ?

Some technique?

Regards

Ivan Petrov
Telerik team
 answered on 07 Aug 2012
3 answers
95 views
This would be a really cool feature - by convention, I would expect a maximized ShapedForm to fit inside the screen. 

You can hack it, but I can't see any purpose for a form to be larger than the screen.
Boryana
Telerik team
 answered on 07 Aug 2012
17 answers
309 views
Hi,

This may seem a pretty dumb question to ask, but how do you restrict a maximized ShapedForm so that it only occupies the screen space?

Eg, when it's maximised, it's about 10pixels too large on every size, and the close button is clipped.  I added 10px of padding, but it looks stupid when the form is in a normal state.  Ideally, I am looking for a form which behaves like a normal form, but has rounded edges.

I'm running on Vista 64-bit w/ multiple monitors - maybe this is platform specific?  The sample applications also experience this issue.

All suggestions are welcome...

Regards,


Matt
Boryana
Telerik team
 answered on 06 Aug 2012
1 answer
126 views
Hello..
I tried MessageBox or InstanceForm.showDialog that couldn work at Edited Event.

this is Sample Code.
radTreeView1_Edited(object sender, TreeNodeEditedEventArgs e)
{
    DialogResult result = MessageBox.Show("will you change?","Change",MessageBoxButtons.OkCancel);
    if(result != DialogResult.Ok)
    {
        e.cancel=true;
    }
}

at MessageBox.Show Line make Error Message.
attatch file is that window  


So I tried make new thread and give to delay.. but that way 
also if delay is so short or
when that action time
if I minimize or doesn focus.
that showed me similar Error.
Plz Give me a Solution.....

Thanks.
Svett
Telerik team
 answered on 06 Aug 2012
1 answer
99 views
I implemented the example in the GridView >> Hierarchy >> Tabbed Views (CustomDetailViewCellElement)

One of the tabs is a grid and I need a mutually exclusive radio button to indicate which record is the primary.

I try this thread but it only works if there are no hierarchy: http://www.telerik.com/community/forums/winforms/gridview/radiobutton-in-radgridview.aspx#1601100

I thought changing this part of the code to this would work but it doesn't either:
Private Sub radioButtonElement1_MouseDown(sender As Object, e As System.Windows.Forms.MouseEventArgs)
    Me.Value = 1
 
    If Me.ViewTemplate Is GetType(Telerik.WinControls.UI.MasterGridViewTemplate) Then
 
        For Each row As GridViewRowInfo In Me.ViewTemplate.Rows
            If row IsNot Me.RowInfo Then
                row.Cells(Me.ColumnInfo.Name).Value = 0
            End If
        Next
 
    Else
 
        For Each row As GridViewRowInfo In Me.ViewInfo.Rows
            If row IsNot Me.RowInfo Then
                row.Cells(Me.ColumnInfo.Name).Value = False
            End If
        Next
 
    End If
End Sub

Any ideas????
Sarah
Top achievements
Rank 1
 answered on 06 Aug 2012
3 answers
112 views
Hi, Telerik Team .
My issue is i want to call my method do something when i click one row in EditorControl of MulticolumnComboBox, but i can't use SelectedIndexChange because if Index not change then event does't catch.
I try override method OnMouseUp of MultiColumnComboGridBehavior but this event also catch if i click the scrollBar in EditorControl. You can help me ! anyway, one event that On click one row in editor and dose not run when i click ScrollBar .
Thanks for answers
Stefan
Telerik team
 answered on 06 Aug 2012
1 answer
1.2K+ views
Hello
I'm using the code below to change the background color for a column in my grid.

With this I expected, after populating my grid with data (it is databoud to a datatable), that column "MyColumnName" will show all his cells backgroud in yellow color.

What I get is that I see the cells with the default background color (I'm using Office 2010 Black theme for the entire application), and I only see this column in yellow if I move the mouse over one row (when it highlights) in the column "MyColumnName" in this row alone. All the rest keep the default color.

Is there something I'm missing or doing wrong? I'm using Q2 2012.

Thank you in advance.
Private Sub MyGrid_CellFormatting(sender As Object, e As Telerik.WinControls.UI.CellFormattingEventArgs) Handles MyGrid.CellFormatting
 
    If e.CellElement.ColumnInfo.Name = "MyColumnName" Then
        e.CellElement.BackColor = Color.Yellow
    Else
        e.CellElement.ResetValue(VisualElement.BackColorProperty, ValueResetFlags.Local)
    End If
 
End Sub



Stefan
Telerik team
 answered on 06 Aug 2012
3 answers
458 views
Hi there,

Just a comment really, when using a rad datetime picker, it might be useful to be able to catch some event based on the date that a user has selected.  

The problem is that with the select/unselect behaviour of the calendar in the datepicker, there is an inbetween event "valuechanged" fired, with the date at that point being "1 January 1980", or datemin, so you can't really attach anything directly to that event without fudging it... 

Now I understand the select/unselect of a calendar is why this behaviour exists, but realistically, when using a datepicker control, WHY would anyone want that inbetween date? Surely we're only ever interested in the date that the user has selected? This feels to me like seeing unecessarily the mechanics of the control?

Would it not be possible to segregate the events into a "real" ValueChanged event which would only fire once the 
transaction (if you like) of changing to mindate and then to the actual date clicked on had completed and then relegate the current ValueChanged to something more accurate like "CalendarSelectionChanged"? 

I think that a datepicker control should allow me to capture what the user has actually selected without having to filter out spurious events.

Incidentally, how DOES one filter out that spurious event when the date selected happens to be the minimum date? Does your control fire valuechanged twice, both times with the same (mindate) value in the Value property?

Kind regards,
Mike
Peter
Telerik team
 answered on 06 Aug 2012
1 answer
176 views
Hello, I'm trying to make date and time both editable in a GridViewDateTimeColumn. I declare a column with this code:

column = new GridViewDateTimeColumn(def.Name);
string dataFormatString = (def.CustomString == null ? "yyyy-MM-dd hh:mm:ss" : def.CustomString);
((GridViewDateTimeColumn)column).EditorType = GridViewDateTimeEditorType.TimePicker;
((GridViewDateTimeColumn)column).FormatString = dataFormatString;
((GridViewDateTimeColumn)column).CustomFormat = dataFormatString;

I tried DateTimePicker and TimePicker alike.

In DateTimePicker the time is always 12:00. If I want to edit the field with keyboard only (no additional window) I only see the date in the editbox, the time vanishes on edit mode. In TimePicker I can edit date in edit mode.

My questions are:
1) How to make time editable in DateTimePicker?
2) Is there a WinForms control that allows editing date and time in additional window mode?

Thank you in advance for your answers.
Best wishes,
Mariusz
Julian Benkov
Telerik team
 answered on 03 Aug 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)
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
Diagram, DiagramRibbonBar, DiagramToolBox
GanttView
Panorama
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
ProgressBar
CheckedDropDownList
TrackBar
MessageBox
Rotator
SpinEditor
StatusStrip
CheckedListBox
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
DataEntry
ScrollablePanel
ScrollBar
WaitingBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Barcode
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
NavigationView
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
Licensing
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
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?