Telerik Forums
UI for WinForms Forum
4 answers
277 views

Hi

I have a decimal Column in RadGridView with BeginEditMode = BeginEditOnKeystrokeOrF2 and using Danish culture.

When user presses ',' on the selected cell, cell goes to edit mode but ',' is not inserted in the cell. But if user now again presses comma, then it is inserted into the cell.

So if user wants to enter the value ,5 he has to press comma twice. Ofcourse he has no problom in entering 0,5

Note, this is when user enters to edit mode by pressing , not by pressing F2.

What should I do? Any help would be appreciated.

Thanks

Regards

Richard Slade
Top achievements
Rank 2
 answered on 01 Feb 2011
4 answers
73 views
Hi Everyone,

In my grid there's 3 columns, "Client Id", "Client first name", "Client last name".  The client first and last name columns are read only.  When the user enters the Client Id the CellValueChange event is fired, which gets the first and last name for the Client Id from the database, then puts the first and last name values in their respective columns. 

Here's the code:

Private Sub gridClients_CellValueChanged(ByVal sender As Object, ByVal e As Telerik.WinControls.UI.GridViewCellEventArgs)

 

 

        Dim column As GridViewDataColumn = TryCast(e.Column, GridViewDataColumn)

 

 


        If
column IsNot Nothing AndAlso column.FieldName = "ClientId" Then

 

                e.Row.Cells(

"vcFirstName").Value = GetClientFirstName(e.Value)

 

                e.Row.Cells(

"vcLastName").Value = GetClientLastName(e.Value)

 

 

        End If

 

 

End Sub


This works great when editing existing records, but not at all for adding new records.  During add new, the event does fire, and does get the correct first/last name values, and the code to put the first/last name value does fire and seems to work, but when looking at the cell value, nothing actually gets there. 

If the new row is committed (by <enter> or clicking out of the row),  then going back and setting the client id, the code works.  But of course, that doesn't fulfill the requirements.  The code needs to work by merely <tabbing> out of the Client Id column on a new row.

Thanks in advance for any and all suggestions and advice.

 

 

Svett
Telerik team
 answered on 01 Feb 2011
7 answers
567 views
HI,

In my application,I have one GridView With 4 gridviewcomboboxcolumns(with Different Binding Source)...
It is possible to Cancle All changes made by user in single click....
And the restore gridview at starting position...?

Thank You
Richard Slade
Top achievements
Rank 2
 answered on 01 Feb 2011
1 answer
84 views
Hi,
Today I was facing an issue on creating New Appointment.
Steps to Reproduce:
1. Double click on Monday (say, 7th Feb 2011) and assign the following settings
1.1. Recurrence type: Weekly
1.2. Days of the week: Tuesday and Wednesday only.
1.3. Range of recurrence: Start by: 7th Feb 2011 and End by: 18th Feb 2011.

when assigning the above settings, the Appointment occurrence on 7th Feb 2011 is shown in the view. Whereas it shouldn't be shown as Monday is not configured on the RecurrenceRule. Subsequent week is shown correctly.

I'm using the following version in my machine: Winforms Q1 2010 SP2.

Please let me know how this issue could be solved.

Thanks,
Arun.Dharuman
Dobry Zranchev
Telerik team
 answered on 01 Feb 2011
1 answer
329 views
I have a radmenu inside a user control. I had set the autosize=true and autosizemode=GrowAndShrink for the user control. For the RadMenu I had set autosize=true and Orientation=Horizontal. I am adding menu items dynamically. But the usercontrol that holds the RadMenu is not growing automatically and RadMenu grows into a second row. How can I make the usercontrol grow automatically as RadMenu add new Items horizontally. Please advice. Please see the attachment.

Ivan Petrov
Telerik team
 answered on 01 Feb 2011
3 answers
248 views
Hello,
I am trying to follow along with webinars to learn the RadScheduler.  I successfully was able to create an application that had no resources, create schedules etc...I can save appointments and the Appointments table in the Telerik provided example database populates fine and all..when I have one resource only.

The problem comes when I try to save to a RadScheduler with more than 1 resource.
AppointmentsResources table in database does not seem to populate.  Also, newly created schedule item you just tried to save disappears.  No appointments load up on initial load either.
I tried to emulate it working by creating a manual entry in AppointmentsResources table, to no avail, so I deleted entry.
However, Appointments table still populates correctly.

Code is simple
Using Telerik provided database. Thank you very much!
Imports Telerik.WinControls.UI
  
Public Class Form1
  
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        'TODO: This line of code loads data into the 'SchedulerDataDataSet.Resources' table. You can move, or remove it, as needed.
        Me.ResourcesTableAdapter.Fill(Me.SchedulerDataDataSet.Resources)
        'TODO: This line of code loads data into the 'SchedulerDataDataSet.Appointments' table. You can move, or remove it, as needed.
        Me.AppointmentsTableAdapter.Fill(Me.SchedulerDataDataSet.Appointments)
  
  
  
        RadScheduler1.ActiveView.ResourcesPerView = 5
        RadScheduler1.GroupType = GroupType.Resource
  
  
  
  
    End Sub
  
    Private Sub SaveToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SaveToolStripMenuItem.Click
  
        Dim appointmenttableadapter As New SchedulerDataDataSetTableAdapters.AppointmentsTableAdapter()
        Dim resourcetableadapter As New SchedulerDataDataSetTableAdapters.AppointmentsResourcesTableAdapter()
  
  
        Try
  
            appointmenttableadapter.Update(SchedulerDataDataSet.Appointments)
            resourcetableadapter.Update(SchedulerDataDataSet.AppointmentsResources)
  
            SchedulerDataDataSet.AcceptChanges()
  
  
        Catch ex As Exception
            Throw ex
        Finally
  
        End Try
  
  
    End Sub
End Class
Joseph
Top achievements
Rank 1
 answered on 01 Feb 2011
1 answer
95 views

In building a user control where a ToolWindow hosts a RadCommandBar with a CommandBarDropDownList.
When browsing the associated events, I'm missing the SelectedValueChanged, SelectedIndexChanged. Even when I tried to add event handlers programmatically, they do not show up.

I’m using version v.2010.3.10.1109, with Visual Studio 2008 sp1 + .NET Framework 3.5 sp1, in a WinForms application.

I've tested this in another clean project, and the events do show up, however, the environment is Visual Studio 2010 + .NET Framework 3.5 sp1, and the suite's version is v.2010.3.10.1215.

Is the problem located on such diference of versions?

UPDATE:

YES, the issue is fixed on v.2010.3.10.1215 which contains the missing events. I just upgraded the tools and the project is now showing the events.

Drewanz
Top achievements
Rank 1
Veteran
 answered on 31 Jan 2011
5 answers
420 views
Hi,

I have a multicolumn combobox. on the first time click of the combobox the sizing is not correct, it doesn't render itself properly and all the details are not visible.

but when you type some search text in auto filter text box, it does auto size it properly and all the text is visible.

please have a look @ screen shot attached.

regards,
Khizar

Harsh Dara
Top achievements
Rank 1
 answered on 31 Jan 2011
4 answers
90 views
I am using Gridview (Hierarchy) to display data from the database Northwind with a small modification:
- table Orders has following columns: OrderID, OrderDate
- table Details has: DetailsID, OrderID, ProductID, Quantity, UnitPrice, Total (Total is one column in Gridview using expression)
- table Products has: ProductID, ProductName, TaxID
- table Tax has: TaxID, Tax
The Orders table is parent table and the Details table is child table. With the ProductID and GridviewComboboxColumn I can display ProductName from the Products table, but I don't know how to get the Tax value from table Tax using the same method to complete the goal: Total=Quantity*UnitPrice*(1+Tax).
Do you have any idea to do that?
Any help would be appreciated.
Thanh Ho
Thanh
Top achievements
Rank 1
 answered on 31 Jan 2011
1 answer
135 views
I've created a new project and am trying to do the following:

1. created a ShapedForm as MDI Parent
2. put a radPanel at the top of the ShapedForm
3. put a radMenu on the radPanel
4. set all of the above to Windows7 theme
5. in page load of the MDI (ShapedForm), i want to display a login form (Login) in the center of the MDI (Shaped form) via code below:
Dim fLogin As Form
        fLogin = New Login
        fLogin.MdiParent = Me
        fLogin.StartPosition = FormStartPosition.CenterParent
        fLogin.WindowState = FormWindowState.Normal
        fLogin.Show()

PROBLEMS:
1. the radmenu has no theme
2. in the radmenu, i have a radmenuHeaderItem - it is aligned on the top no matter what i try - so does not line up with the menu items (not aligned middled like the menu items).
3. the login page appears in the upper top left corner not centered.

i've looked for examples but none of what i'm trying to accomplish.
please help. i've been on asp.net for the past 5 years so it's frustrating.
thanks!

Ivan Petrov
Telerik team
 answered on 31 Jan 2011
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
CheckedDropDownList
ProgressBar
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
NavigationView
VirtualKeyboard
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?