Telerik Forums
UI for WinForms Forum
2 answers
136 views
I would like to add a picture button over the internet.

Example:
PictureBox1.ImageLocation = "http://www.example.com/image/image.jpg" (png better though)

I want to:
RadGalleryItem1.Image = "http://www.example.com/image/image.png" (such as)

How do I make it?
Dimitar
Telerik team
 answered on 10 Sep 2014
1 answer
213 views
Hi,

I am evaluating the RadScheduler using the Timeline view to display a 24 hour range.
All the scheduled activities occur in 5 minute increments (00:00, 00:05, 00:10, 00:15 etc).

Right now the RadScheduler shows 15 minutes as the minimum timescale for display.

Can I create a custom timescale that would get me down to 5 minutes?

Thanks.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 10 Sep 2014
2 answers
349 views
I have a RadPageView control in ViewMode = Strip (so it appears like a TabControl)

I would like to somehow have multiple Images for the RadPageViewPage - one that represents the actual document icon, and another that is only shown when there are unsaved changes. 

Just as an example, take a look at the following screenshot of Visual Studio:
http://i.stack.imgur.com/dPEq0.png

Is this possible?  Any ideas how I can accomplish that? 

I don't have any problem getting one Image to show up (using the RadPageViewPage.Image property) but how would I go about getting the second one to appear?

Thank you!
Adam P
Top achievements
Rank 2
 answered on 10 Sep 2014
1 answer
530 views
I would like to change the background color of a row when a certain task is being performed.  Once that task has completed I would like to change it back.  All the examples I have found subscribe to the RowFormatting event and then using the GridDataRowElement.Background property passed in with the RowFormattingEventArgs.  The data is already loaded into the RadGridView control so the RowFormatting event will not fire.  Even if it did, I think the code would look a lot cleaner if I could just change the color in my method without having to trigger an event.  Is there any way to get the GridDataRowElement for a row without going through the RowFormatting event?
Dylan
Top achievements
Rank 1
 answered on 09 Sep 2014
1 answer
183 views
Hi,
I noticed a change between using the RadTreeView Q2 2014 sp1 and Q1 2013 controls: 
I have some data of many-to-many Users *--* Groups. On load, I display the data Users > Groups. But on a button click I change the display to Groups > Users.
I followed the databinding procedures for hierarchical data in http://www.telerik.com/help/winforms/treeview-data-binding-data-binding-basics.html and http://www.telerik.com/help/winforms/treeview-data-binding-data-binding-basics.html, with success.
(I use EF 6, context.Users.Local.ToBindingList() for the datasource, or context.Groups.Local.ToBindingList(), for the other direction).

In the 2013 version of the control, I was able to just reassign the datasource with no problem during runtime. With the newest version of the control I get this error: 
Type: System.NullReferenceException
Target: GetProperties
Exception: Object reference not set to an instance of an object.
Stack Trace:    at Telerik.WinControls.UI.BindingProvider.GetProperties(CurrencyManager cm, String childMember, Int32 level)
   at Telerik.WinControls.UI.BindingProvider.GetObjectRelationDescriptor(RelationBinding relation, CurrencyManager cm, Int32 level)
   at Telerik.WinControls.UI.BindingProvider.RegisterObjectRelation()
   at Telerik.WinControls.UI.BindingProvider.Reset()
   at Telerik.WinControls.UI.BindingProvider.root_PropertyChanged(Object sender, PropertyChangedEventArgs e)
   at Telerik.WinControls.UI.RelationBinding.OnPropertyChanged(String propertyName)
   at Telerik.WinControls.UI.RelationBinding.set_DataSource(Object value)
   at Telerik.WinControls.UI.BindingProvider.set_DataSource(Object value)
   at Telerik.WinControls.UI.RadTreeView.set_DataSource(Object value)
...

I am able to get around this by setting the source to null first:
    RadTreeView1.DataSource = Nothing
    RadTreeView1.DataSource = context.Groups.Local.ToBindingList()

Is this by design or is there something I am missing here, such as a better way to achieve this behavior?

Thanks,



Dess | Tech Support Engineer, Principal
Telerik team
 answered on 09 Sep 2014
1 answer
120 views
Hi

Lets say i have an appointment on mon 10-11 and another on tuesday 10-11 and tuesday 11-12

Normally on schedulers if you try to move an appointment say from mon 10-11 to tues 10-11 where the slot is already taken then
a) the move is disallowed as the target slot is occupied
b) the appointment from monday is moved and sits side by side with the the tuesday appointment giving concurrent appointments

I want a different logic than this.

If you move an appointment from mon 10-11 to tues 10-11 then the existing tues 10-11 slot gets moved to 11-12 and the tues 11-12 gets moved to tues12-1.
In other words I can move an appointment to an occupied slot and everything else gets shunted down to accomodate it (taking into account weekends etc)

Is this possible?

Also how far in advance can you see with the scheduler? Normally I would only want to see a week or 2 but sometimes I might need to scroll down a whole year.

Thanks in advance for any help you can give me.
This certainly does affect whether I will buy the products

Regards












Dess | Tech Support Engineer, Principal
Telerik team
 answered on 09 Sep 2014
1 answer
117 views
Hello

I have urgent requirement,

I was using RadGridView in which i want to fetch data from XML and also need to add custom column Checkbox to enable/disable the row.

Using Winforms, WPF Telerik RadControls
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 08 Sep 2014
4 answers
435 views
Dear Telerik Support
                                  I have developed a theme for RadGridView ( winforms ). I go to file menu and click save. it produces two xml files. Please tell me why two files created and how to load the new theme in Visual Studio 2008 Windows form. I have winform application on vb.net. I searched every option to find any way to import custom theme developed and exported by VSB.
Prasy
Top achievements
Rank 1
 answered on 08 Sep 2014
3 answers
150 views
Hello all,

I'm using PivotGrid in a project. Users love it.

I'd like to programmatically add calculations between groups. In my case i'm trying to calculate the difference between sums in Fiscal Years. I can do it manually from the UI, as seen in the screenshot, so I think it could be done in code, but I don't know how to do it. 

Any suggestions?

Thanks
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 08 Sep 2014
3 answers
371 views
Hi,

I have a column in a grid column as a GridViewDecimalColumn where DecimalPlaces = 2, FormatString = "{0:#####,###,###,###,##0.##}"

This displays data correctly in all cases.

I am getting inconsistent behaviour though when I edit the cell depending on how the edit is started. This is a little difficult to explain, however :

Scenario 1 :

If I click in the cell so as to invoke the editor, the current value is displayed and fully selected and I am able to enter new data. The CellValueChanged event fires when I leave the cell if the data is valid. When CellEndEdit fires, it either has the new valid data, or the old value if invalid.

Scenario 2 :

If I highlight the cell but do not click to edit and press space, the same happens as above as the space keypress invokes the edit.

Scenario 3 :

If I just highlight the cell but do not click to enter edit mode and start typing, then cell editing begins. The CellValueChanged event fires immediately after the first keypress and the new value in this event is the value I typed, so If for example I enter "1", I now though get the following text in the cell 

"1.00"

and the CellValueChanged value = 1

I can now enter text, however if I hit the decimal point and 2, I get a duplicate decimal point entered, so the cell contents are now "1.2.00" which is invalid.This happens for all scenarios and as the data is not valid I get no CellValueChanged event fired when I exit the cell. In scenarios 1 and 2, in CellEndEdit, when the new data is invalid, the event argument contains the original cell value before the edit. In scenario 3 though, as the CellValueChanged event fired on initial keypress, CellEndEdit now fires with 1 and not the old value.

I am looking really for a way to prevent entering multiple decimal points, or apply an edit mask to the cell to prevent invalid data entry. Also, I would ideally be looking for consistent behaviour for the 3 scenarios, so for the grid to reinstate the old value (pre-edit value) in all cases when the data is invalid and not the first valid value as in scenario 3.

Cheers,


George
Telerik team
 answered on 08 Sep 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
Documentation
SplitContainer
Map
DesktopAlert
CheckedDropDownList
ProgressBar
TrackBar
MessageBox
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
CollapsiblePanel
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
Styling
Barcode
PopupEditor
RibbonForm
TaskBoard
Callout
NavigationView
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Security
LocalizationProvider
Dictionary
SplashScreen
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?