Telerik Forums
UI for WinForms Forum
6 answers
257 views
How can I place a button in the first header cell above the row selection arrows?  I would like to do this in a class derived from gridview.

Hans Heuvelman
Hans
Top achievements
Rank 1
 answered on 12 Sep 2014
1 answer
139 views
Hello,

I have a menu item with image
I wish to check on/off the menu (highlight the image) when the user click on it (same like with the toolbar check button - when the button is checked the image is highlighted)

I used the tooglestate property but this works only without image

Thanks

Dimitar
Telerik team
 answered on 11 Sep 2014
5 answers
227 views
Hello, 

I use OS: Win 8.1
         .Net4.5
        UI fo Winforms Vers. 2014.2 715 

I try to make a relation between 2 tables in my MS Entity (Framework 6.0.1),

The problem is the tables don't have a column in common so that i can make a direct relation,

What i need is a possibility to .Join a third table to my parent which provides the missing column.

My 3 tables are

tbl_AffiliateCommision which should be my parent template in the Hierarchygridview this table provides me the column "AffiliateUser" and the grouping would be done with this column.

tbl_Affiliate in this table every AffiliateUser gets his specific "IdAffiliates". This table would provide both columns. This table should not be shown in the grid

ItemAffiliate which should be the child template and  provides me the sold items and the column "IdAffiliate" which is a undergroup of the Column "AffiliateUser" ( AffiliateUser is not available in this table)

e.g.: AffiliateUser : 12354 has the IdAffiliates: 1,4,6
         AffiliateUser: 32145 has the IdAffiliates: 2,3,7

Here some code for better a understanding 

in the 01 line i just look up the data i would use the same Join in teh 02 line if it would work like this. 
the rest of the code shows how i would make my grid.

Please let me know if i forgot to give you important information.

01.var g = db.tbl_wat_Affiliate_Commission.Join(db.tbl_wat_Affiliate, ac => ac.IdAffiliateUser, a => a.AffiliateUser, (ac, a) => new { ac, a });
02.this.radGridView1.DataSource = db.tbl_wat_Affiliate_Commission.Local.ToBindingList();
03.this.radGridView1.AllowAddNewRow = true;
04.this.radGridView1.AllowEditRow = true;
05.this.radGridView1.AllowDeleteRow = true;
06. 
07.// Create and load child
08. 
09. db.tbl_sst_ItemAffiliate.Load();
10. 
11.GridViewTemplate template = new GridViewTemplate();
12.template.DataSource = db.tbl_sst_ItemAffiliate.Local.ToBindingList();
13.// Hinzufügen des childtemps.//
14.this.radGridView1.MasterTemplate.Templates.Add(template);
15. 
16.//Create relation//
17.GridViewRelation relation = new GridViewRelation(this.radGridView1.MasterTemplate);
18.relation.ChildTemplate = template;
19.relation.RelationName = "Affiliate";
20.relation.ParentColumnNames.Add("IdAffiliateUser");
21.relation.ChildColumnNames.Add("IdAffiliateUser");
22.this.radGridView1.Relations.Add(relation);


best regards 
George
Telerik team
 answered on 11 Sep 2014
4 answers
190 views
Greetings, 

I have the following problem: 

He was working on a project but unfortunately I had to reinstall my operating system. Telerik reinstall VisualStudio but normally and continue with my project out the following errors:

Error 10 'TextRenderingHint' no es un miembro de 'Telerik.WinControls.RootRadElement'.

Son 23 errores como el anterior en diferentes formularios, habia mas errores pero agregué unas referencias de telerik y se solucionaron. Pero con ese error no se que hacer 

Yo uso Visual Studio 2012  y VB.net











George
Telerik team
 answered on 11 Sep 2014
2 answers
146 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
245 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
384 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
547 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
195 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
188 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
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
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
RibbonForm
Styling
Barcode
PopupEditor
TaskBoard
NavigationView
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Overlay
Security
LocalizationProvider
Dictionary
SplashScreen
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
SpeechToTextButton
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?