Telerik Forums
UI for WinForms Forum
4 answers
111 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
648 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
109 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
382 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
275 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
117 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
489 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
120 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
162 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
3 answers
103 views
Hello,

I am using the windows 7 theme. I want my application color to be red so I use color blending. I am not totally satisfied with the result, so I would like to edit the generated red theme in the VSB as it is mentioned in this blog post :

http://blogs.telerik.com/blogs/posts/08-10-31/chameleon_skinning_coming_up_to_winforms_in_q3_2008.aspx
"And finally if the resulting skin still needs some touches, you can export the modified theme data to xml files, and tweak them using the Visual Style Builder app, as much as you wish. "

To export the theme I used the code attached in this thread, that uses XmlStyleBuilderRegistration objects.
http://www.telerik.com/community/forums/winforms/themes-and-visual-style-builder/theme-and-addcolorblend-not-working.aspx

This code generated 56 Xml files. I start the VSB and hit "Open directory" to load all xml file but VSB says that these files are old and no more supported.

How can I export a color blended theme to edit it in the new VSB?

Thank You
Regards
Thibaut
Thibaut
Top achievements
Rank 1
 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)
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
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
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?