Telerik Forums
UI for WinForms Forum
1 answer
150 views
Hi Telerik !
There is a bug with RadDateTimePicker.

1. Set RadDateTimePicker.Culture = ar-SA (To see Arabic date)
2. Run program.
3. Open drop down calendar.
4. Open year and month drop down list.
5. Now count how many months are there. There should be 12 months, but there is 11 months.

NOTE1: I should add that when you try to reach the missing month with left or right buttons, the object stucks, or drops the missing month.
NOTE2: Sometimes you can reach to missing month with FastForward or FastRewind buttons, but then another month will be lost.


I believe it is BUG !!!

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 22 Jan 2014
2 answers
86 views
hi,
What's the efficient way to insert a new line but to the first line of the grid?
it means all the exists rows will "push" below.

if you can refer me to example it will be great.

best regards,
Roy
Ralitsa
Telerik team
 answered on 22 Jan 2014
1 answer
201 views
Hi!

My application is standard WinForms Form with RadRibbonBar placed on that form. I set autoScaleMode to DPI for that form, ale unfortunately form and ribbon doesn't scale to 125 or 150%. Other forms are actually RadForms, and forms and all controls placed on themscales right. Is this have to be RadRibbonForm to scale right? Is this the only solution for my problem?

UPDATE: In fact form scales. Only ribbonbar and statusbar doesn't scale.

Cheers,
Kuba.
Dimitar
Telerik team
 answered on 22 Jan 2014
0 answers
98 views

Hello,


I have a table with three fields: RowID, CustomerName and Selected. I am loading this into the gridview and I would like to  programmatically select the row where Selected is true. If this was ASP.NET I would use the RowDatabound event and check the value of Selected and highlight. What is the best way here? After I load the list loop back through the data, get the one that is selected and then loop through the rows in the grid to select it? Seems like there would have to be a more efficient way of doing this.



Thanks,

Warren



Warren
Top achievements
Rank 1
 asked on 22 Jan 2014
0 answers
136 views
When I tab through the controls in my form, and while tabbing through datetime picker Current Date is populated as value. I do not want to the control to enter any date without user selection. Also, I have a pair of datetime picker like start date and end date and each is of the control's Opened & Leave Events are utilized as below but without these also, the same issue occurs.
private void dtProdStartDate_Leave(object sender, EventArgs e)
        {
            if (dtProdEndDate.Text == String.Empty && dtProdStartDate.Value != DateTime.Parse("1/1/0001"))
            {
                DateTime dtStart = dtProdStartDate.Value;
                dtStart = dtStart.AddMonths(1);
                DateTime dtEnd = dtStart.AddDays(-dtStart.Day);
                dtProdEndDate.Value = dtEnd;
            }
            else
            {
                if (DateTime.Compare(dtProdStartDate.Value, dtProdEndDate.Value) > 0)
                {
                    DateTime dtStart = dtProdStartDate.Value;
                    dtStart = dtStart.AddMonths(1);
                    DateTime dtEnd = dtStart.AddDays(-dtStart.Day);
                    dtProdEndDate.Value = dtEnd;
                }
            }
        }
 
 private void dtProdStartDate_Opened(object sender, EventArgs e)
        {
            if (this.dtProdStartDate.Value == DateTime.MinValue)
            {
                ((RadDateTimePickerCalendar)this.dtProdStartDate.DateTimePickerElement.GetCurrentBehavior()).Calendar.FocusedDate = DateTime.Now;
            }
        }
Priyam
Top achievements
Rank 1
 asked on 21 Jan 2014
1 answer
94 views
Hi ,
 I have a telerik grid that contains column having data type numeric like amount. when i put alphanumeric value in filter for that column  ,it gives exception. 
Is there any way that can validate values or prevent values other than numeric in that filter textbox.
George
Telerik team
 answered on 21 Jan 2014
3 answers
213 views
How can i create custom AggregateFunction?

and Is Possible GrandMedian ?
ex) AggregateFunctions.Median
George
Telerik team
 answered on 21 Jan 2014
3 answers
153 views
I have add a couple of extra fields in a CustomEditAppointmentDialog.
When i select an appointment in the scheduler I want to put the information out of one of the extra
fields in a textbox on my form.

I can reach all the information in the standard fields from Appointment class. But i can't reach the
information of the extra fields created in the CustomAppointment class.

Can someone help me out how i can reach that information?

    private void radScheduler1_AppointmentSelected(object sender, SchedulerAppointmentEventArgs e)
    {
        if (e.Appointment.Description != null)
        {
            labelCalendarCustomerNo.Text = e.Appointment.CustNo; //this does not work
            labelCalendarCustomerName.Text = e.Appointment.Location; //this works
            labelCalendarEnd.Text = e.Appointment.End.ToString(); //this works
            labelCalendarStart.Text = e.Appointment.Start.ToString(); //this works
        }
    }
}


public class CustomAppointment : Appointment
   {
       public CustomAppointment()
           : base()
       {
       }
       private string custNo = String.Empty;
       public string CustNo
       {
           get
           {
               return this.custNo;
           }
           set
           {
               if (this.custNo != value)
               {
                   this.custNo = value;
               }
           }
       }
George
Telerik team
 answered on 21 Jan 2014
1 answer
114 views
Hi,

Is it possible to draw a filled polygon area (more than 4 points) on top of the grid. 

Points inside the area is of special interest.

Regards
Brian
George
Telerik team
 answered on 21 Jan 2014
1 answer
180 views
My need seems fairly straightforward, but after poring through help text, forum postings, example apps, and making many trials, I still can't make the whole picture work--I'm missing a couple of key pieces.

.NET C# Winforms, Telerik 2013.1.321.20

The RadGrid is unbound. The data is populated (so far) through creating a new row with "GridViewRowInfo row = Grid.Rows.NewRow(), and then iterating through the cells of the row and setting the value of the GridViewCellInfo.

I need multiple columns of a custom cell type. Each cell contains a multicolumn combo box bound to a datatable (the same for all cells), a text box or label to display a value, and a button. The combo box should display all the time (as would an individual one on the form), not just when the cell is selected. I need to catch the combo box change, and handle it, potentially through methods on the parent form. The label is display only. The button needs to open a dialog form with access to the info from the cell, and again I need to reach back to the parent form. I need to be able to change the formatting on cell initialization, for the selected cell, and when the data changes. And that's it. No new rows after initialization, no sorting, no filtering, no reordering columns.

I can create the elements in CreateChildElements on the cell, and I can arrange them in ArrangeOverride on the cell. I can do some formatting in the Grid_CellFormatting event.

So these seem to be my stuck places:

o I don't seem to be able to inherit my column from GridViewMultiColumnComboBoxColumn, because I need the combo box to show all the time, not just when the cell is in edit mode. AND because I cannot find a cell element for the Multi Column Combo parallel to GridComboBoxCellElement. I can bind and set up the combo box in Grid_CellBeginEdit, but in that case it only shows when it is in edit mode. So what is my best way to get the combo box set up for the cells? (Bind the datatable, set DisplayMember, and ValueMember, set up the MultiColumn grid dropdown, set an event handler.)

o I need to pass at least three values to the cell--the selected value for the combo box, the value to display in the label, and an ID. I believe I can pass all of these to the cell in a small object or tuple in the Value or Tag,. But how do I get them to populate the objects at the right time? I think I'm having some major misunderstanding between the logical cell and the visual cell. I need to store these values in the logical cell and populate the visual cell at the right time--but how exactly, because what I've tried has made everything confused, and the values changed on all the combo boxes at once.

o What is my best way to handle the SelectedIndexChanged or SelectedValueChanged event on the combo box and the Click event on the button, with access to (ideally) methods on the parent form and values from the cell? (I might be able to pass an object reference to the form or an object on the form in the tag, if there is no direct access to methods and properties of the parent form.)

o What is my best way to handle cell formatting, including formatting the controls within the cell (e.g., combobox backcolor) on initialization, on value changed, and on current? So far I haven't seen how to get to the child controls on the Grid_CellFormatting.

Any help will be greatly appreciated.


George
Telerik team
 answered on 20 Jan 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?