Telerik Forums
UI for WinForms Forum
11 answers
324 views
Hi,

I've just started evaluating the RadControls for use in one of our products, to replace the standard .Net controls we currently use.  I'm attempting to replicate some functionality we have in one of our existing forms.  This takes the form of a general data entry form, where the make-up of the grids are based upon a configuration stored in a database.  As such, each grid is built programmatically and is not bound to any objects or data.

My questions are:

  1. Is there a way to show a blank row for data entry as a default, rather than the "Click here to add a new row" option?  Our users' primary input method is keyboard, so I would rather everything was driven from there without any need for using the mouse.
  2. When using a GridViewDateTimeColumn, can the time be completely hidden from view?  I wish to show the date only in dd/MM/yyyy format, and I have been changing the Format, FormatString, and DataEditFormatString properties of the column to try to get this in place with no luck.  Either the time is visible when in view mode, or the full (long) format for the date is used when in edit mode.
  3. Also date related, most of our users will be in Australia, where the standard date format is dd/MM/yyyy.  However, the datetime control in the grid seems to be limiting what dates can be entered based on the current month.  As an example: I want to enter the date 31/08/2010, but the current month is september, so when I type 31, it first changes the date to 3/09/2010 (as I would expect) then to 01/09/2010 (as September only has 30 days).  I understand this wouldn't be an issue in the US, where the month is usually entered first, but it could cause a major issue for our users.  Is there a way to get round this, either by amending some properties on the object or by intercepting some events of the control and customising the response?
  4. What is the best way to determine when a new row is added to the grid?  On the standard control there is a UserAddedRow event.  Is there an equivalent in the RadGridView?
  5. Can I specifically focus on a particular cell in a grid?  i.e., is there an equivalent of the DataGridView.CurrentCell property?
  6. Can I hide columns from view while still maintaining the values?  I need to be able to specify a default value for some fields that cannot be changed by the user, and previously this was done by setting the column visibility flag to False.  I can't seem to find a similar property on the columns in the RadGridView.
  7. Lastly, do you have a guide for people migrating from the standard .Net WinForms controls to the RadControls?  Something that maps the properties and events from one to the other would be a fantastic reference document.

I hope I've given enough information for someone to be able to help with my queries, but if I've missed something out, please let me know.

Cheers.
Peter
Telerik team
 answered on 14 Aug 2012
3 answers
234 views
How to add a group in Outlook View?
Please refer the picture from attachment. 
Boryana
Telerik team
 answered on 14 Aug 2012
11 answers
473 views
Hi

I want to remove the Minimize and Maximize buttons on a ribbonbar and the normal properties do not seem to work either on the actual form or ribbonbar control.

Any help would be appreciated.


Regards


Paul.
Stefan
Telerik team
 answered on 14 Aug 2012
3 answers
229 views
Hi All,

Our application contains a grid that allows grouping and multi select. Upon entering the screen the groups are collapsed. Our client wants to be able to select on or more groups and all it's child records by clicking on the group(s) without expanding them.

I achieved this behaviour via the following event handlers:
SelectionResultRadGridView.ViewRowFormatting += SelectionResultRadGridViewViewRowFormatting;
SelectionResultRadGridView.CellClick += SelectionResultRadGridViewCellClick;

The first event is used to change the row color of a group in case one of its child records is selected:
private static void SelectionResultRadGridViewViewRowFormatting(object sender, RowFormattingEventArgs e)
{
if (e.RowElement.RowInfo is GridViewGroupRowInfo && e.RowElement.RowInfo.ChildRows.Any(x => x.IsSelected))
{
e.RowElement.DrawFill = true;
e.RowElement.BackColor = Color.FromArgb(255,216,132);
e.RowElement.GradientStyle = GradientStyles.Solid;
}
else
{
e.RowElement.ResetValue(LightVisualElement.DrawFillProperty, ValueResetFlags.Local);
e.RowElement.ResetValue(LightVisualElement.BackColorProperty, ValueResetFlags.Local);
e.RowElement.ResetValue(LightVisualElement.NumberOfColorsProperty, ValueResetFlags.Local);
e.RowElement.ResetValue(LightVisualElement.ForeColorProperty, ValueResetFlags.Local);
}
}

the second event i use to select all child rows in case a group was selected (this currently works only in case of on level of grouping) and i always invalidate all rows to make sure that the formatting event is triggered for all groups (for instance a child row is selected i want the color of the group to change aswell)
void SelectionResultRadGridViewCellClick(object sender, GridViewCellEventArgs e)
{
if (e.Row.RowElementType == typeof(GridGroupHeaderRowElement))
{
foreach (var childRow in e.Row.ChildRows)
{
childRow.IsSelected = true;
}
}
foreach (DataGroup group in SelectionResultRadGridView.Groups)
{
group.GroupRow.InvalidateRow();
}
}

The problem however with this approach is that the shift option for multi select is not supported. A user can now select multiple groups with the ctrl button but not with the shift button. Somebody any idea? Other ideas to implement such a behaviour?

Many thanks!

Maarten
Svett
Telerik team
 answered on 14 Aug 2012
2 answers
156 views
Hi
    Can i set the width of tooltip show?  if can, how do?    if the tooltip text is too long, the tooltip showed over the width of screen now. thanks very much!
Stefan
Telerik team
 answered on 14 Aug 2012
1 answer
140 views
Hello all,
Recently for a project i needed to install the Telerik component package because the project which was handed over to me for further development process were heavily based on Telerik components ( such as themes,Gridviews,Buttons ,ComboBoxes,etc) i tried installing RadControls_WinForms_2010_1_10_308_dev that i already had on my Visual Studio 2010Sp1 .
after installing that and running the project for the first time , i noticed an extreme lag in using Visual Studios . even renaming a buttons name would take more than a minutes , let alone navigating through toolbox , dragging new item and start working on them! (another example is when i click on the run project in visual studio , the application takes from say 30 seconds to sometimes 2~5 minutes to execute!!, i get multiple designer time exceptions as well ! which is bad , very bad!)
the lag is so extreme that a process which would take me only 30 minutes in a normal form application , takes more than 3 hours and so on ! which is extremely bad . 
now i want to know if this is normal with teleriks components , since if it is that heavy and resource intensive , we should definitely put it aside and start using sth else . if it is not what would be the cause  ?
(please note that in the current project , there are 17 RadGridViews plus other Teleriks Components such as RadTextBoxes and RadLabels and so on - i said it because i thought it might be better told )
Ok , now what is the problem in case there is a problem ?
Regards
Jack
Telerik team
 answered on 13 Aug 2012
1 answer
549 views
Hi,

  We are using RadTimepicker Control for Winforms.As ,we need time in 24 Hour format , we just set following property

radTimePicker.TimePickerElement.Format = "HH:mm";

But we need to Numbers in Clock ( Numbers 12 to 23) will be 24 hour format . How to achieve this ?


Please find attached image.

Please guide me.

Thanks & Regards,
Surya.
Peter
Telerik team
 answered on 13 Aug 2012
3 answers
272 views
Hello all .
I'm trying to assign a picture to a gridview column . i use the following statements , but i get a" Object reference not set to an instance of an object. "error .
How can i fix that ?
In my forms constructor i have this :
((GridTableElement)this.radGridView_ClassInfo_ListHonarjoyan.GridElement).RowHeight = 80;

And in the form_load() i have this :
foreach (GridViewRowInfo row in radGridView1.Rows)
            {
                row.Cells["picture"].CellElement.ImageLayout = ImageLayout.Zoom;
                row.Cells["picture"].CellElement.ImageAlignment = ContentAlignment.MiddleCenter;
                if (row.Cells["image"].Value == null )
                {
                    row.Cells["picture"].CellElement.Image = Image.FromFile("img/1.jpg");
                }else
                row.Cells["picture"].CellElement.Image = Image.FromFile(row.Cells["image"].Value.ToString());
                //pictureBox1.Image = Image.FromFile(row.Cells["Picture"].Value.ToString());
            }

in my table , the image column contains an address to the image on my drive , and if there is , to show the picture , i created a imagecolumn from radGridViews Properties (collections) and named it image . thats what im trying to do
Stefan
Telerik team
 answered on 13 Aug 2012
1 answer
113 views
Hi, 
I want to restrict access, or be able to remove the edit function to the Textbox in the DateTimePicker.
I tried to hook into the  TextChanging Event of th radDateTimePicker1.DateTimePickerElement.TextBoxElement and set the e.cancel = true. No visible changes was made when trying to edit the text, but it seems like it set some date in behind anyway.

I could do Enabled = false on the TextBoxElement, but then the control seems locked and I want the user to be able to push the dropdown button and select the date from the calendar. 

Is there any good way to restrict this access?

Regards
Svein Thomas
Stefan
Telerik team
 answered on 13 Aug 2012
1 answer
90 views
Hi,
i have the following two questions:
  1. Is there an option to disable the "snap to grid" behaviour for appointments to show it at the real y-position.
    In the attachement you see an sample of a snapped appointment.
  2. How can I cutomize the appearance of an appointment in the view
    For example showing only the begin time, showing an additional picture or text.



Best regards
Friedhelm
Stefan
Telerik team
 answered on 13 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?