Telerik Forums
UI for WinForms Forum
2 answers
150 views
Hi,

I have few questions about how to create custom item in RadListView.

I have a list of objects and would like to create custom item for each of the object. The value of visualElements of each custom item will get from properties value of associated object.

By reading the online documents, I know that the custom visual item is created by caling VisualItemCreating event. But how can I trigger the event?

As I understand the function SynchronizeProperties() is used to assign values to visualElements when the custom visual items are created (please let me know if I am wrong). In the example code, the value assigned to custom visual item are from data table. But In my case I want to assign the value of properties of a object from the object list to each custom visual item. What steps I need to go through to achieve that?

Thanks a lot
Ivan Todorov
Telerik team
 answered on 06 Dec 2011
1 answer
80 views
Good morning.

i am working with the schedule and i am doing the next scenario.
i am making schedule from 8 am until 8pm with interval of five minuts between 8am - 8pm then the count the schedule are 144 more or less
and in the week are 864 but when i made click  in the button week in the control RadSchedulerNavigator and this control no show the information schedule just show the week but empty.. but when i change the next property of this control
(this.schScheduler.ActiveView as SchedulerDayViewBase).RangeFactor and put the value ScaleRange in five minuts the control is able to show the infomation but the problem is that is need a lot time to load de information more or less 6-7 minutos ..is take much time..to show the information, let me know what i can do.. to show the information in the week..or there other posibility
thanks for your help.
Elver Emilio
Ivan Todorov
Telerik team
 answered on 06 Dec 2011
3 answers
198 views
Hi, everyone,

I have been using telerik controls for windows for few months now, and this may be a stupid question. I've noticed that when a radgrid has been filtered or sorted, the SelectedRows property shows only one row selected even though more than one has been selected. I had a piece of code that uses that property so that on the edition of one row the value is copied to the other rows.

Here's a sample of my code:

Private Sub rgvContractDetails_CellEndEdit(sender As Object, e As Telerik.WinControls.UI.GridViewCellEventArgs) Handles rgvContractDetails.CellEndEdit
   Try
 
      If rgvContractDetails.SelectedRows.Count > 1 Then
 
         Select Case e.Column.Name
            Case "Quantity"
               For Each Row As GridViewRowInfo In rgvContractDetails.SelectedRows
                  Dim oSelectedItem As SalesContractDetail = Row.DataBoundItem
                  Row.Cells("Quantity").Value = e.Value
                  oSelectedItem.QuantityStr = e.Value
                  oSelectedItem.CalculateBalance()
                  Row.Cells("QtyBalance").Value = oSelectedItem.BalanceStr
               Next
            Case "QtyCancel"
               For Each Row As GridViewRowInfo In rgvContractDetails.SelectedRows
                  Dim oSelectedItem As SalesContractDetail = Row.DataBoundItem
                  Row.Cells("QtyCancel").Value = e.Value
                  oSelectedItem.CancelStr = e.Value
                  oSelectedItem.CalculateBalance()
                  Row.Cells("QtyBalance").Value = oSelectedItem.BalanceStr
                  Row.Cells("CancelDate").Value = Today.ToShortDateString
               Next
      End If
 
   Catch ex As Exception
      MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error)
   End Try
End Sub


Is this the default behavior? If so, is there a workaround so that I can persist the selected rows programmatically and keep my code as it is?  I am using version 2011.02.712.

Thanks for your help,

Mauricio.
Alexander
Telerik team
 answered on 06 Dec 2011
3 answers
135 views
Hi,

When user drag an appointment to another hour, i want to do a validation to verify if that hour is prior than current date. The only event i see i can do that is in AppointmentFormatting, beacuase in CollectionChanged there is no changes in this case. However, it isn't possible to show a messagebox in AppointmentFormatting (gives an exception "Target invocation ...").

So my question is: how can i validate when user drag an appointment to another hour an show a messagebox to warn about this validation.

Thanks.
Ivan Todorov
Telerik team
 answered on 06 Dec 2011
1 answer
86 views
Hello,

Is is it possible to maximize a Form and/or a RadForm from code ? When it's creatred ? When it already exists ?
Optionnally, in a MDI container ?

Thank you,


Thomas

Ivan Petrov
Telerik team
 answered on 06 Dec 2011
1 answer
174 views
I am adding tiles to the control in code and they draw right on top of each other. I don't really want to manually specify which row and column it needs to go into. Is there a method for setting those properties automatically?
Ivan Todorov
Telerik team
 answered on 06 Dec 2011
1 answer
110 views

Are there any useful documents detailing the relationship between deprecated components?

E.g.

RadPanel = RadPageView

PadPanelItem = RadPageViewItem

etc.

RadPanel.Items becomes... PadPageView... ?
Nikolay
Telerik team
 answered on 06 Dec 2011
16 answers
620 views
I know you can add agrregate totals to the group headers, but I was just wondering if you can easierly add a Subtotal Row to the bottom of the group, as well as an Total to the whole table?

If there currenlty isn't, can I suggest this as a Feature Request, as it would be really handy, and Also is there currenlty any code samples to be able to do this?

Thank you
Kha
Top achievements
Rank 1
 answered on 06 Dec 2011
3 answers
216 views
Hi

If I use separate scroll bars for chart, then my UI does not look good since either the chart or the x axis labels are overlapped with the separate scrollbar, Instead can i use the radchart scroll bar itself?
If i use the following I am not able to see the scrollbar on the chart.

radChart1.VerticalScroll.Enabled =true;
radChart1.VerticalScroll.Visible=true;
radChart1.HorizantalScroll.Enabled =true;
radChart1.HorizantalScroll.Visible=true;
Giuseppe
Telerik team
 answered on 05 Dec 2011
1 answer
87 views
Hello,

on this screenshot :http://tc81.net/private/telerik/20111202_1554.jpg

How can I remove that stuffs that's hiding a part of the word 'Contacts' ?

I think I found a way which is to hidden to set visibility:hidden for the first contextualTabGroup, and start to use at index 1 instead of 0.
But I'm not sure if that is the "clean" way to do it.


Thank you.
Peter
Telerik team
 answered on 05 Dec 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
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
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
CheckedListBox
StatusStrip
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
Barcode
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Licensing
Localization
TimePicker
ButtonTextBox
FontDropDownList
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
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?