Telerik Forums
UI for WinForms Forum
2 answers
183 views
Hello,
I am asking how can I copy a button from RadRibbonGroup to another RadRibbonGroup, because I don't want to make a style for every button I created.

As you see on attached image I need to copy the button with red border to next RadRibbonGroup
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 07 Mar 2014
2 answers
367 views
Double clicking the right mouse button on a grid is firing the Grid.CellDoubleClick event, but the event does not expose which mouse button caused the event to fire.

Is there a way to prevent the CellDoubleClick even from firing when the right mouse is double clicked?

Kim
Kim
Top achievements
Rank 1
 answered on 06 Mar 2014
2 answers
174 views
I use manually generating hierarchy mode as it is described in http://www.telerik.com/help/winforms/gridview-hierarchical-grid-object-relational-hierarchy-mode.html
For bool fields I use GridViewCheckBoxColumn.
When I change bounded bool field in child object, the changes in CheckBoxEditor are not displayed (and vice versa, when I click a CheckBoxEditor, the changes are not reflected in object).
If I press a header for reorder, then the changes are partially displayed, but couple of checkbox are not change.

In debugger I see (rgvMain is RadGridView):

rgvMain.CurrentRow.ChildRows[1]:

    {Telerik.WinControls.UI.GridViewHierarchyRowInfo}
    [Telerik.WinControls.UI.GridViewHierarchyRowInfo]: {Telerik.WinControls.UI.GridViewHierarchyRowInfo}
    AllowedStates: Current | Selected
    AllowResize: true
    Cache: {Telerik.WinControls.UI.GridViewRowInfoCache}
    CanBeCurrent: true
    CanBeExpanded: false
    CanBeSelected: true
    Cells: {Telerik.WinControls.UI.GridViewCellInfoCollection}
    ChildRows: {Telerik.WinControls.UI.GridViewChildRowCollection}
    DataBoundItem: {UsonInfrastructure.Infrastructure.UserData.AccessProjection}
    dataBoundItem: {UsonInfrastructure.Infrastructure.UserData.AccessProjection}
    ErrorText: ""
    Group: null
    HasChildViews: false
    Height: 18
    HierarchyLevel: 1
    Index: 0
    IsAttached: true
    IsCurrent: false
    IsEditable: true
    IsExpanded: false
    IsInitialized: false
    IsModified: false
    IsOdd: false
    IsPinned: false
    IsSelected: false
    IsSystem: false
    IsValid: true
    IsVisible: true
    MaxHeight: -1
    MinHeight: 5
    parent: {Telerik.WinControls.UI.GridViewHierarchyRowInfo}
    Parent: {Telerik.WinControls.UI.GridViewHierarchyRowInfo}
    ParentRow: null
    PinPosition: None
    PropertyChanged: {Method = {Void RowInfo_PropertyChanged(System.Object, System.ComponentModel.PropertyChangedEventArgs)}}
    PropertyChanging: null
    RowElementType: {Name = "GridDataRowElement" FullName = "Telerik.WinControls.UI.GridDataRowElement"}
    rowState: {Telerik.WinControls.UI.GridViewRowInfo.GridViewRowInfoState}
    state: {BitVector32{00000000000000000000000001100001}}
    Tag: null
    Telerik.WinControls.Data.IDataItem.DataBoundItem: {UsonInfrastructure.Infrastructure.UserData.AccessProjection}
    Telerik.WinControls.Data.IDataItem.FieldCount: 3
    ViewInfo: {Telerik.WinControls.UI.GridViewInfo}
    viewInfo: {Telerik.WinControls.UI.GridViewInfo}
    ViewTemplate: {Telerik.WinControls.UI.GridViewTemplate}


rgvMain.CurrentRow.ChildRows[1].Cells[1].ColumnInfo

    {Reading (GridViewCheckBoxColumn)}
    [Telerik.WinControls.UI.GridViewCheckBoxColumn]: {Reading (GridViewCheckBoxColumn)}
    base {Telerik.WinControls.RadObject}: {Reading (GridViewCheckBoxColumn)}
    Accessor: {Telerik.WinControls.UI.VirtualHierarchyAccessor}
    accessor: {Telerik.WinControls.UI.VirtualHierarchyAccessor}
    AllowGroup: true
    AllowHide: true
    AllowReorder: true
    AllowResize: true
    AllowSort: true
    AutoEllipsis: true
    AutoSizeMode: DisplayedCells
    CanBeCurrent: true
    CanGroup: true
    CanSort: true
    CanStretch: false
    ConditionalFormattingObjectList: Count = 0
    conditionalFormattingObjects: Count = 0
    CustomDataOperation: None
    DisableHTMLRendering: true
    EnableExpressionEditor: false
    EventDispatcher: {Telerik.WinControls.UI.EventDispatcher}
    Expression: ""
    FieldAlias: ""
    FieldName: "ReadAccess"
    HeaderImage: null
    HeaderText: "Reading"
    HeaderTextAlignment: MiddleCenter
    ImageLayout: None
    Index: 1
    IsAutoGenerated: false
    IsCurrent: true
    IsDataBound: false        !!!!! may be this is a cause?
    IsFieldNamePath: false
    isFieldNamePath: false
    IsGrouped: false
    IsPinned: false
    IsSorted: false
    IsVisible: true
    MaxWidth: 60
    MinWidth: 60
    Name: "ReadAccesseffcd8a0-48d6-4e0d-9cda-4ba02cb0b53f"
    ownerTemplate: {Telerik.WinControls.UI.GridViewTemplate}
    OwnerTemplate: {Telerik.WinControls.UI.GridViewTemplate}
    PinPosition: None
    PropertyChanging: null
    ReadOnly: false
    RowSpan: 20
    sortOrder: None
    SortOrder: None
    StretchVertically: true
    Tag: null
    TextAlignment: MiddleLeft
    TextImageRelation: Overlay
    UniqueName: "ReadAccesseffcd8a0-48d6-4e0d-9cda-4ba02cb0b53f"
    VisibleInColumnChooser: true
    Width: 60
    WrapText: false
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 06 Mar 2014
1 answer
151 views
Hello,

I have created a custom appointment and I want to include some recurrence items in my appointment dialog. I have also saved my appointment and recurrence string to a db table.

Basically based on the recurrence of the appointment I need to watch for that recurrence and fire an event.

My question is, is there a way/method to interpret that recurrence string which would allow me to watch for it when the clock and date ticks by.

Thanks

Gavin
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 06 Mar 2014
2 answers
133 views
I have a Grid that is bound to a Dataset that is created programmatically and the grid uses "auto-generated columns at runtime"
I need to hide some columns after databound, depending on some know conditions.
Where can I get access to the column collection ? In the Databound event the grid.columns.count is zero ...
thanks
pierre-jean
Top achievements
Rank 1
Veteran
Iron
 answered on 06 Mar 2014
7 answers
321 views
Hi, 

I'm trying to set the maximum height of a row, but it doesn't work... I've enabled the AutoSizeRows property.

private void Grid_RowFormatting(object sender, RowFormattingEventArgs e)
{
     // Current ->  e.RowElement.RowInfo = 64
    e.RowElement.RowInfo.MaxHeight = 32;
}

Thanks,

--
François
Stefan
Telerik team
 answered on 06 Mar 2014
1 answer
306 views
I'm writing an application which iterates through the rows of an unbound RadGridView and changes the value and formatting of a particular cell as it goes.  I'm having no issue iterating through the rows, but when I get to the point of calling for a cell's value or formatting to change the cell empties of all visible data instead.

The way I'm iterating through the cells and changing the value is like so:

foreach (GridViewRowInfo row In rgvFiles.Rows)
{
    row.Cells[2].Value = "New Text";
    row.Cells[2].Style.BackColor = Color.DarkGreen;
    row.Cells[2].Style.ForeColor = Color.White;
}
Ralitsa
Telerik team
 answered on 05 Mar 2014
1 answer
129 views
hi
how to disable many of keys in raddatetimepicker?
I'm using the following code, but I did not give the desired result 

private void DTP_bDate_KeyPress(object sender, KeyPressEventArgs e)
        {
            e.Handled = char.IsDigit(e.KeyChar);
        }
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 05 Mar 2014
9 answers
240 views
Hey,$0      I have a problem when trying to filter on "Contains" condition. The datacolumn in the database is of type int and I bound the datafield to a GridViewTextBoxColumn in the RadGrid. When I try to make a filter on Contains condition and once I type a number I got an error Cannot perform 'Like' operation on System.Int32 and System.String$0$0$0$0$0Is there anyway to fix that?$0
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 05 Mar 2014
1 answer
139 views
Hi,

Create new form and paste code below. 
Run form, expand "root" node and select any item. SelectedNodeChanged event should write to console value "1".
Then click button to rebuild re-build the tree, again expand "root" node and select any item.
This time SelectedNodeChanged will write to console value: "2".

private void Form1_Load(object sender, EventArgs e)
{
    RadButton b = new RadButton();
    b.Text = "Rebuild";
    b.Dock = DockStyle.Top;
    b.Click += b_Click;
 
    rtv = new RadTreeView();
    rtv.SelectedNodeChanged += rtv_SelectedNodeChanged;
    rtv.Dock = DockStyle.Bottom;
 
    this.Controls.Add(b);
    this.Controls.Add(rtv);
 
    Rebuild(rtv);
}
 
RadTreeView rtv = new RadTreeView();
 
private void rtv_SelectedNodeChanged(object sender, RadTreeViewEventArgs e)
{
    Console.WriteLine(rtv.SelectedNodes.Count);
}
 
private void b_Click(object sender, EventArgs e)
{
    Rebuild(rtv);
}
 
private void Rebuild(RadTreeView rtv)
{
    rtv.Nodes.Clear();
    rtv.Nodes.Add("root");
    rtv.Nodes[0].Nodes.Add("level 1 item 1");
    rtv.Nodes[0].Nodes.Add("level 1 item 2");
    rtv.Nodes[0].Nodes.Add("level 1 item 3");
    rtv.Nodes[0].Nodes.Add("level 1 item 4");
 
    // this don't work
    rtv.SelectedNodes.Clear();
}
Ralitsa
Telerik team
 answered on 05 Mar 2014
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
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?