Telerik Forums
UI for WinForms Forum
1 answer
160 views
Hi, 

I would be interested in a product like vlc or wmp. Both have their own issues.., and having telerik putting a tool like this on the market with all of your experience and support would make me jump in quadric circles.

Karl
Stefan
Telerik team
 answered on 16 Jul 2012
1 answer
175 views
In the ASP.Net controls you are able to set the control up so that the control times are within a certain range. IE times from 8am through to 6pm and users can only select these values from the drop down.

Is this possible in the winforms timepicker control? If it is, how is it done?

Thanks,
Karl
Stefan
Telerik team
 answered on 16 Jul 2012
2 answers
470 views
Hi all,

I use grouping in my grid view. What I want to achieve is when the user changes the current row by clicking or pressing up/down arrow the grid view will show the information about the current row using text boxes but if the current row is a group header the grid view won't perform any action.

Is there any way to identify that the current row is a group header so that I can achieve this scenario? 

Thanks
David
Top achievements
Rank 1
 answered on 16 Jul 2012
3 answers
148 views
Hello,

I want to give a different format to some rows (based on a property of the databound items). It works good, but some rows decide, on they own, to use a special format.

If I use only one BackColor and a solid GradientStyle, the problem do not appear (but linear Gradient looks far better. Isn't it?)

Should I have miss something or it's bug ?

Private Sub dgv_Clients_RowFormatting(sender As System.Object, e As Telerik.WinControls.UI.RowFormattingEventArgs) Handles dgv_Clients.RowFormatting

Dim ClientBound As Client = TryCast(e.RowElement.Data.DataBoundItem, Client)
If ClientBound IsNot Nothing AndAlso Helper.ActiveDirectoryHelper.GetInstance.GetCurrentUser.Guid.Equals(ClientBound.FK_OwnerUser) Then
e.RowElement.DrawFill = True
e.RowElement.BackColor = Color.Red
e.RowElement.BackColor2 = Color.White
e.RowElement.BackColor3 = Color.White
e.RowElement.BackColor4 = Color.White
e.RowElement.GradientStyle = GradientStyles.Linear
e.RowElement.GradientAngle = 360
Else
e.RowElement.ResetValue(LightVisualElement.DrawFillProperty, ValueResetFlags.Local)
e.RowElement.ResetValue(LightVisualElement.BackColorProperty, ValueResetFlags.Local)
e.RowElement.ResetValue(LightVisualElement.BackColor2Property, ValueResetFlags.Local)
e.RowElement.ResetValue(LightVisualElement.BackColor3Property, ValueResetFlags.Local)
e.RowElement.ResetValue(LightVisualElement.BackColor4Property, ValueResetFlags.Local)
e.RowElement.ResetValue(LightVisualElement.GradientStyleProperty, ValueResetFlags.Local)
e.RowElement.ResetValue(LightVisualElement.GradientAngleProperty, ValueResetFlags.Local)
End If
End Sub

 

Marco
Top achievements
Rank 2
Veteran
 answered on 16 Jul 2012
5 answers
166 views
Two questions / issues.  Easy one first.

a)  How do I control the alignment of the checkbox that appears in a ListViewDataItem?  It seems stuck in the middle and I'd like to align it with my text.

b) I'm creating custom ListViewDataItems, as I need to add a "legend" to each drop down.  Here's the sample code I'm using...

First, the code in _VisualItemCreating

private void rlvLegend_VisualItemCreating(object sender, ListViewVisualItemCreatingEventArgs e)
{
    e.VisualItem = new LegendCustomVisualItem();   
}

Second, the override of CreateChildElements

protected override void CreateChildElements()
{
    base.CreateChildElements();
    this.stackLayout = new StackLayoutPanel();
    this.stackLayout.Orientation = Orientation.Vertical;
    this.stackLayout.EqualChildrenWidth = true;
 
    //Header space
    this.p1 = new RadPanelElement();
    p1.AutoSize = true;
    p1.MinSize = new Size(200, 20);
    p1.NotifyParentOnMouseInput = true;
    p1.ShouldHandleMouseInput = false;
    p1.PanelBorder.Visibility = ElementVisibility.Hidden;
    this.stackLayout.Children.Add(p1);
 
    this.stackLayout.Children.Add(new LegendCustomStack("Test 1", Color.Red, Color.Red));
    this.stackLayout.Children.Add(new LegendCustomStack("Test 2", Color.Blue, Color.Red));
    this.stackLayout.Children.Add(new LegendCustomStack("Test 3", Color.Aquamarine, Color.Red));
    this.stackLayout.Children.Add(new LegendCustomStack("Test 4", Color.DimGray, Color.Red));
 
    this.Children.Add(this.stackLayout);
 
}

Lastly, the other items I've created in the last couple lines..

public class LegendCustomStack : StackLayoutPanel
{
    private int _height = 15;
 
    public LegendCustomStack(string labelText, Color fillColor, Color outlineColor)
    {
        //spacer panel
        RadPanelElement p2;
        p2 = new RadPanelElement();
        p2.AutoSize = true;
        p2.MinSize = new Size(25, _height);
        p2.NotifyParentOnMouseInput = true;
        p2.ShouldHandleMouseInput = false;
        p2.PanelBorder.Visibility = ElementVisibility.Hidden;
        this.Children.Add(p2);
 
        RadPanelElement p3 = new RadPanelElement();
        p3.AutoSize = false;
        p3.Size = new Size(_height, _height);
        p3.PanelFill.NumberOfColors = 1;
        p3.PanelFill.BackColor = fillColor;
        p3.PanelBorder.ForeColor = outlineColor;
        p3.NotifyParentOnMouseInput = true;
        p3.ShouldHandleMouseInput = false;
        //p3.Alignment = ContentAlignment.MiddleLeft;
        this.Children.Add(p3);
 
        RadLabelElement l1 = new RadLabelElement();
        l1.Text = labelText;
        l1.NotifyParentOnMouseInput = true;
        l1.ShouldHandleMouseInput = false;
        l1.TextAlignment = ContentAlignment.TopLeft;
        this.Children.Add(l1);
    }
}

When I load up my items, it looks fine, until I have too many that the scroll bars appear.   If I scroll down, everything is fine.  If I scroll up, the LegendCustomStack items seem to jump around randomly from ListDataItem to ListDataItem (sometimes completely disappearing)

(I created a version where, the colours were random to better demonstrate the behavior, but I think I backout out those changes)

Any ideas what I'm doing wrong?

Thanks!!!

Rob.
Ivan Todorov
Telerik team
 answered on 16 Jul 2012
3 answers
174 views
Hi,

I have just updated to the latest version (RadControls for WinForms, v.2012.2.608.40) and I am now getting on this line:


chartMarginsTitle1.Bottom = ((Telerik.Charting.Styles.Unit)(resources.GetObject("chartMarginsTitle1.Bottom")));

Warning 1 Object of type 'Telerik.Charting.Styles.Unit' cannot be converted to type 'Telerik.Charting.Styles.Unit'.

Could you tell me what must be changed)

Thank you

Karl



Ivan Petrov
Telerik team
 answered on 16 Jul 2012
2 answers
939 views
Hi.  I'm using a GridViewCheckBoxColumn, and I would like to have an event fire when the user changes the state of the checkbox by checking it, either by mouse or keyboard.  Right now I've found that I can hook a variety of events that only fire after the cell's value is changed and the cell loses focus.  But I need an event that actually happens as soon as the checkbox is changed.  I'm running version 2012.1.321.20.

The only thing I've found that works is reaching into the virtualized cell, getting the RadCheckBoxEditorElement, and then hooking the PropertyChanged event on it.  This is pretty ugly and cumbersome.  It also presents a serious issue in that I don't know how to hook this event just once, since if I hook this event in the CellFormatting handler, I will end up hooking the event many, many times.

Is there a straightforward way to accomplish what I want?

Thanks.
Patrick Barranis
Top achievements
Rank 1
 answered on 14 Jul 2012
1 answer
253 views
Hi there-

I hope this is an easy one...

I have a gridView that is bound to a stored procedure.  One of the columns is of type GridViewImageColumn.  The data returned from the proc is of Integer type.  What I'm looking for is comparing the value (0 or greater than 0), whereas if 0, hide the image, if greater than 0, show the image.

So, given that, my first question is, how do I associate or add the image/png for the column/cell and how and when do I interrogate the bound data to show the image if greater than 0.

Hope this makes sense. 

Thanks
Bob
Nikolay
Telerik team
 answered on 13 Jul 2012
1 answer
89 views
hi
I have a problem with raddock .

How can I disable the activation of the menustrip, in other words, disable the  function.

Please refer to the attached picture showing this problem.

Thanks
Nikolay
Telerik team
 answered on 13 Jul 2012
1 answer
192 views
Hi,

I am using the "GridViewComboBoxColumn" in the radgrid win forms. I have created a type of GridViewComboBoxColumn and added it to radgridview.

            gridViewDDLCombbxColumn2.FieldName = "Data Base No";
            gridViewDDLCombbxColumn2.Name = "DataBaseNoCombo";
            gridViewDDLCombbxColumn2.HeaderText = "Data Base Num";
            gridViewDDLCombbxColumn2.DataSource = GetUserGrpData;
            gridViewDDLCombbxColumn2.DisplayMember = "DBNumber";
            gridViewDDLCombbxColumn2.ValueMember = "UserGroupID";
            this.radGridViewUserGroup.MasterTemplate.Columns.Add(gridViewDDLCombbxColumn2);

I am facing an issue when setting a default value or value from database to GridViewComboBoxColumn and while updating also I am not able to read the selected value from the GridViewComboBoxColumn.

For E.G:
this.radDdlDn.SelectedValue = currentRow.Cells["UserID"].Value;
The above statement can be used to assign the value to radDropdownlist.

String strddlValue=this.radDdlDn.selectedItem.Text
The above statement can be used to read the selected value from radDropdownlist.

Similarly how can we  perform the same operation with GridViewComboBoxColumn in radGridview

Thanks in advance
Shiva



Ivan Petrov
Telerik team
 answered on 13 Jul 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?