Telerik Forums
UI for WinForms Forum
1 answer
212 views
Hi:

I have a GridView with 2 columns (uniquenames = col1 and col2)
col1 is a ComboBoxColumn with 2 dropdown items.
col2 is a textboxColumn.

What I want to accomplish is this:
Whenever a user selects the first item from the combobox (col1), I want one set of text (e.g.: "You have selected the first item for row n") to show up on col2 for that row.  Similarly, when user selects the second item from the combobox, I want another set of text to show up in col2 (e.g.: "You have slsected the second item for row n").

How to accomplish this? I have not a clue. Have searched the site for 2 hours. Saw a couple of threads that are somewhat close to what I want, but couldn't modify the codes presented on those threads to do what I want. 

Your help is really appreciated. Thanks so much!

Justin
Svett
Telerik team
 answered on 14 Apr 2010
1 answer
146 views
Greetings,

I have a databound Schedule Control with multiple recurring appointments assigned to resources and would like to do the following.
  • I want to add and drop resources from view - how is this done with a databound schedule?
  • I want to display multiple resources within a day.  Instead of resource over day, I want to display the Day and below the day the key resources I have selected.  - How is this done?

Thank you,

Dobry Zranchev
Telerik team
 answered on 14 Apr 2010
1 answer
150 views
using System;  
using System.Collections.Generic;  
using System.ComponentModel;  
using System.Data;  
using System.Drawing;  
using System.Linq;  
using System.Text;  
using System.Windows.Forms;  
using IMMC.XPExplorerBar;  
using IMMC.Forms;  
using IMMC.Business;  
using IMMC.Data;  
using IMMC.Properties;  
using IMMC.Forms.Properties;  
using System.Data.SqlClient;  
using System.Windows.Forms.DataVisualization.Charting;  
using Telerik.WinControls.UI;  
using Telerik.WinControls.UI.Scheduler;  
using Telerik.WinControls.UI.Scheduler.Dialogs;  
 
 
 
namespace IMMC  
{  
    public partial class frmRadControls : Form   
    {  
        public frmRadControls()  
        {  
            InitializeComponent();  
        }  
 
        private List<MyAppointment> appointments = new List<MyAppointment>();  
        protected override void OnLoad(EventArgs e)  
        {  
            base.OnLoad(e);  
 
            DateTime baseDate = DateTime.Today;  
            DateTime[] start = new DateTime[] { baseDate.AddHours(14.0), baseDate.AddDays(1.0).AddHours(9.0), baseDate.AddDays(2.0).AddHours(13.0) };  
            DateTime[] end = new DateTime[] { baseDate.AddHours(16.0), baseDate.AddDays(1.0).AddHours(15.0), baseDate.AddDays(2.0).AddHours(17.0) };  
            string[] summaries = new string[] { "Mr. Brown""Mr. White""Mrs. Green" };  
            string[] descriptions = new string[] { """""" };  
            string[] locations = new string[] { "City""Out of town""Service Center" };  
 
 
 
            MyAppointment appointment = null;  
            for (int i = 0; i < summaries.Length; i++)  
            {  
                appointment = new MyAppointment(start[i], end[i], summaries[i],  
                    descriptions[i], locations[i]);  
                this.appointments.Add(appointment);  
            }  
            //this.radScheduler.AppointmentFactory = new CustomAppointmentFactory();  
            //schedulerBindingDataSource1.EventProvider.AppointmentFactory = radScheduler.AppointmentFactory;  
        }  
        private void radButton_Click(object sender, EventArgs e)  
        {    
            SchedulerBindingDataSource dataSource = new SchedulerBindingDataSource();  
            AppointmentMappingInfo appointmentMappingInfo = new AppointmentMappingInfo();  
            appointmentMappingInfo.Start = "Start";  
            appointmentMappingInfo.End = "End";  
            appointmentMappingInfo.Summary = "Subject";  
            appointmentMappingInfo.Description = "Description";  
            appointmentMappingInfo.Location = "Location";  
            appointmentMappingInfo.UniqueId = "Id";  
 
            SchedulerMapping idMapping = appointmentMappingInfo.FindByDataSourceProperty("Id");  
            //idMapping.ConvertToDataSource = new ConvertCallback(this.ConvertIdToDataSource);  
            //idMapping.ConvertToScheduler = new ConvertCallback(this.ConvertIdToScheduler);  
 
            dataSource.EventProvider.Mapping = appointmentMappingInfo;  
            dataSource.EventProvider.DataSource = this.appointments;  
 
            this.radScheduler.DataSource = dataSource;  
 
        }  
    }  
}  
 
1.Edit Appoinment Data binding how to write
2.RadSchedulerThis control how to display the database data
Dobry Zranchev
Telerik team
 answered on 14 Apr 2010
2 answers
179 views

Dear Telerik Users

I'm having a problem with drag and drop functionality in a hierarchical Gridview.
As I drag rows and drop them on top of another row, the underlying (datasource-bound) datatable-entries get updated (Datarow["ParentId"] = dropCell["ParentId"].
This means, that after dragging, the entries appear under another parent in hierarchy. The gridview has to reflect these changes in the underlying database by adjusting the size of the expanded hierarchy-grid.
Even thought in general it's working, but there are a lot of incoherencies,
- expand/collapse is running out of sync
- parents with children sometimes cannot be expanded
- the children of the last row in the mastertemplate never shows the children even though expanded (children are "hidden")

closing and reopening the gridview solves the out-of-sync issues until I restart drag and dropping + expanding and collapsing

Question:
What is the "official way" of keeping the underlying datatables and the visual elements syncronized?
I've tried:
1. Datatable.AcceptChanges()
2. DataRow.BeginEdit() - EndEdit()
3. dropTemplate.Update(GridUINotifyAction.... ==> every action)
4. RadGridView.Update() RadGridview.Refresh()
The only effect I've noticed is that the "GridUINotifyAction.AddRows" seems to adapt the size of the expanding parent.

Sorry, maybe it's a trival mistake, but I do not see it and I'm almost there...

Thank you.

Markus

 

 

 

Martin Vasilev
Telerik team
 answered on 14 Apr 2010
1 answer
167 views
Hello,

I have a problem with the properties TextImageRelation.
I'm using VisualStudio 2005 and the latest version of TabStrip.
I have a TabStrip with TabsPosition set to Top, and in the only TabItem I have an image and a text. If I change the TextImageRelation in a value different from ImageBeforeText (default) it will not be saved in the designer and if I close and reopen the form I will find the properties resetted to its original value ImageBeforeText.

This problem occour also when I change the TabsPosition to Left (this is the layout I need) but the default value of the TextImageRelation is TextBeforeImage and I cannot change it for the same reason.

I have the same problem with the properties AngleTrasform of the ImagePrimitive of the TabItem, cause when TabsPosition is set to left the icon appear flipped horizzontally

Probably I could solve all the problem by code, but I prefer a solution in the designer

Thanks a lot
Nikolay
Telerik team
 answered on 14 Apr 2010
4 answers
146 views
I have a strange issue with the Q1 2010 Winform controls and Visual Studio 2010 RC and I thought I would post in the hope that someone else has seen it and solved it.

I have just installed the Q1 controls, restarted my system and fired up Visual Studio 2010 RC.
When I open (or create a new) winform project, the Telerik tab is not present in the Toolbox.
So, I try and create a new tab, name it 'Telerik' but I get an error saying 'Tab name 'Telerik' already exists!

I next try to create a new tab, give it a different name and then add any of the Telerik controls to it. The second I try and add the controls, the tab disappears!
I'm assuming I'm having some sort of compatibility issue here?

I did before this have the Q3 2009 controls installed, but I uninstalled those first before installing Q1.
I'm running Windows 7, 64bit with the Visual Studio RC edition.

Any ideas?
Thanks, Richard.
rjmorton
Top achievements
Rank 1
 answered on 13 Apr 2010
3 answers
199 views
I'm currently evaluating the RadRibbonBar and I've come across an issue.

I'm trying to create a stack of three fields with labels:
lblStartFreq txtStartFreq
lblEndFreq    txtEndFreq
lblStepSize    cboStepSize

Currently, each row is contained in a horizontal button group and the entire set of three button groups is in a single vertical button group.  I couldn't find a tableLayoutPanel which would have worked better for grouping these items.

My problem is that the label text size is variable width.  This is especially true in localized versions of my application.  But, I'd like to have the three text boxes left aligned to the widest label.

I've tried setting the lblStartFreq.size.width property and the txtStartFreq.Location.x property but receive the following error in VS2010 each time: "Expression is a value and therefore cannot be the target of an assignment." 

Either of these properties can be set on a normal .net WinForms control but and intellisense indicates that these are get/set values on the radControl versions of the controls.  But they don't seem to be exposed.

Is there a different method to aligning these controls that I'm missing or is this something that the Telerik Ribbon Bar isn't capable of doing at this time?

Thanks,

Jason
Deyan
Telerik team
 answered on 13 Apr 2010
4 answers
232 views
Is there any way to remove the 3D effect on RadDropDownButtonElement controls that are added to a RadRibbonBar?  I hate the way it looks in 3D.  It seems to be based on the theme as changing my theme fixes the problem; however I want the color scheme of the Office2007 theme and that is where I have this terrible 3D effect on the borders.
Chris Kirkman
Top achievements
Rank 1
 answered on 13 Apr 2010
1 answer
141 views
Is it possible to change the color of  the GroupCaptionFill of the panelbar  when it has been selected, in Q1 2010?

Thanks.
Deyan
Telerik team
 answered on 13 Apr 2010
4 answers
159 views
The download page says the file is 145 MB but the downloaded file is 121 MB.  Windows says it is not a valid executable.

Steve
SteveL
Top achievements
Rank 2
 answered on 13 Apr 2010
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
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
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?