Telerik Forums
UI for WinForms Forum
2 answers
196 views
I've set WrapText = true on my column.  It works fine in read mode, but when I go to edit the value, the wrapping is lost and makes the it very difficult to edit the value of the cell.
Gary
Top achievements
Rank 1
 answered on 14 Apr 2010
3 answers
279 views
I've got an app that does the following:

1) Load a DataTable with info
2) Attach the DataTable to the RadGridView
3) Runs a threaded, long process using a BackgroundWorker object.
4) Since it's using a separate thread, I update the rows with new information via the DataTable object using the row number as my identifier to know which row needs updating.

This is all fine until the GridView is grouped. If I group, then run the same process, the row number for the GridView has changed, but not for the DataTable object. How can I get them the same so I know which row to update?
Martin Vasilev
Telerik team
 answered on 14 Apr 2010
3 answers
211 views
Hi
i am pissed off... this little code is not working past 3 hrs.
What i want to do is apply breeze theme with "RED" color instead of "Blue" color. 
I am trying to do as show in example "Integration/Theme color blending".  but don;t know what i am missing.

 

private void Form3_Load(object sender, EventArgs e)

 

{

 

this.masterCountryTableAdapter.Fill(this.dsDataSet.MasterCountry);

 

 

ThemeResolutionService.ApplyThemeToControlTree(this.radGridView1, "Breeze");

 

}


 

private void button1_Click(object sender, EventArgs e)

 

{


currentTheme =

ThemeResolutionService.GetTheme("Breeze");

 

 

//if (currentTheme.ThemeProperties.ContainsKey("BaseColor"))

 

 

//{

 

 

// this.colorForm.SelectedHslColor = (HslColor)currentTheme.ThemeProperties["BaseColor"];

 

 

// return;

 

 

//}

 

 

HslColor baseColor = HslColor.FromColor(Color.FromArgb(250, 0, 0));

 

 

//this.colorForm.SelectedHslColor = baseColor;

 

currentTheme.AddColorBlend(

"BaseColor", baseColor);

 

}
Nikolay
Telerik team
 answered on 14 Apr 2010
1 answer
144 views
Hello
I added a RadComboBox to a WinForm with AutoCompleteMode = AutoCompleteMode.Append. In the SelectedIndexChanged Event I have this Code:
Console.WriteLine(radComboBox1.SelectedValue);  
In the Form_Load method I have this:
IList<MyObject> orte = new List<MyObject>();     
orte.Add(new MyObject(1, "aaa"));     
orte.Add(new MyObject(2, "bbb"));     
orte.Add(new MyObject(3, "bbb"));     
 
radComboBox1.DisplayMember = "Ort";     
radComboBox1.ValueMember = "Id";     
radComboBox1.DataSource = orte;   
 
I start the application, then I select the second bbb entry with the mouse. Then I press the tabulator key. The combobox then will select the first bbb (SelectedValue is 2). In AutoCompleteMode None it works fine.
Is there a workaround for this?
Thank you
wima
Victor
Telerik team
 answered on 14 Apr 2010
5 answers
171 views

If you look at the example http://www.telerik.com/help/winforms/combo_databindingcustom.html  I dont want to see the discontinued items in the list when i open the combobox, but i need to see the text if i bring up an old record that has since had the item discontinued.

Can this be done?


Victor
Telerik team
 answered on 14 Apr 2010
1 answer
227 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
154 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
157 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
189 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
180 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
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
PdfViewer and PdfViewerNavigator
CommandBar
ListControl
Carousel
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
Label
AutoCompleteBox
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
SyntaxEditor
Wizard
CollapsiblePanel
LayoutControl
ShapedForm
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
SmartPasteButton
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?