Telerik Forums
UI for WinForms Forum
1 answer
102 views
Hello,
As I can do to select cells, rows and columns, in the same way as in excel. I've only managed to select cells or entire rows
I have not found an example of how to do it
Thanks
Ralitsa
Telerik team
 answered on 25 Mar 2014
1 answer
50 views
My application is a scheduler for customers that use a normal US calendar with Sunday as the first day of the week. The RadScheduler displays this way but the printouts do not. When I print a weekly calendar, I get 2 pages, one with the previous week, with Sunday as the last day, and one for the current week with Monday as the first day. Is there a workaround for this?
Dimitar
Telerik team
 answered on 25 Mar 2014
3 answers
168 views


Hi! sir:

I have three different time period,like this:


morning : 9:00~12:00

afternoom:13:00~17:00

night: 18:00~23:00

 
May  i  use the dropdownlist  chose the the time   period that i want and dynamic change the RulerStartScale and
dayView.RulerEndtScale  of dayview  (figure 1 show)    ? 

Another problem  is that may i display ,15 minutes. 30minutes.  45 minutes. like figure 2
show    ?
 
thanks a lot!~~


                            customer number:QD1612651
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 25 Mar 2014
4 answers
666 views
Hi,is it possible to display the buttons list only when the arrow part is clicked. Currently, the buttons list will be displayed when click on the main button. I need some thing like the normal drop down list. Thanks in advance. 
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 25 Mar 2014
6 answers
142 views
I have a situation where I'd like to provide the user with some common values to select for a column in a GridView, based on the value of another column that exists in the row. I know this can be done with the AutoComplete mode on the column. The problem is that I'd also like to allow them to add a new value that doesn't appear in the list if they want. Is there a way to allow the user to enter a custom value with the GridViewMultiComboBoxColumn or am I going about this all wrong?

Any pointers in the right direction would be greatly appreciated. Thanks!
Dimitar
Telerik team
 answered on 24 Mar 2014
3 answers
198 views
Hello,
I am trying to figure out the INotifyPropertyChangd interface for using a Binding list with a grid. I CRUD my data to the database with code and display in the grid but I have to call a method to load the data into the grid every time I make a change. I am missing something to bind my data to the grid whenever a change is made. I created some small demo files and have looked at multiple examples but am still having problems figuring the link between the db and the grid. Below is what I have created to help understand the concept. One thing to note is that I am creating my data table using ORM fluent mapping in code.

​ //public class _Student
public class _Student : System.ComponentModel.INotifyPropertyChanged
{
private int id;
private string name;
private string grade;

public int Id
{
get { return id; }
set
{
id = value;
this.OnPropertyChanged("Id");
}
}

public string Name
{
get { return name; }
set
{
name = value;
this.OnPropertyChanged("Name");
}
}

public string Grade
{
get { return grade; }
set
{
grade = value;
this.OnPropertyChanged("Grade");
}
}

private void OnPropertyChanged(string PropertyName)
{
this.OnPropertyChanged(new PropertyChangedEventArgs(PropertyName));
}

protected virtual void OnPropertyChanged(PropertyChangedEventArgs args)
{
if (PropertyChanged != null)
{
PropertyChanged(this, args);
}
}

public event PropertyChangedEventHandler PropertyChanged;


//Mapping.
internal static MappingConfiguration<_Student> StudentMapping()
{
var config = new MappingConfiguration<_Student>();
config.MapType(x => new
{
Name = x.Name,
Grade = x.Grade,
}).ToTable("Student");
config.HasProperty(p => p.Id).IsIdentity(KeyGenerator.Autoinc);
config.HasProperty(p => p.Name).IsNotNullable().IsUnicode().HasLength(50);
config.HasProperty(p => p.Grade).IsNullable().IsUnicode().HasLength(50);
return config;
}
}

public class _vmstudent
{
//INSERT.
public static void InsertNewStudentInfo(BindingList<_Student> stud)
{
using (ProjectSpecSqlFluentContext db = new ProjectSpecSqlFluentContext())
{
foreach (var item in stud)
{
if (!db._Students.Any(x => x.Name.Equals(item.Name)))
{
_Student s = new _Student
{
Name = item.Name,
Grade = item.Grade
};
db.Add(s);
}
}
db.SaveChanges();
}
}

//UPDATE.
public static void UpdateStudentInfo(int Id, string BestGrade)
{
using (ProjectSpecSqlFluentContext db = new ProjectSpecSqlFluentContext())
{
if (db._Students.Any(x => x.Id.Equals(Id)))
{
_Student s = db._Students.Single(x => x.Id.Equals(Id));
s.Grade = BestGrade;
db.SaveChanges();
}
}
}

//READ.
public static BindingList<_Student> ReadStudentInfo()
{
BindingList<_Student> list;
using (ProjectSpecSqlFluentContext db = new ProjectSpecSqlFluentContext())
{
var result = (from s in db._Students
select new _Student
{
Id = s.Id,
Name = s.Name,
Grade = s.Grade
}).ToList();
list = new BindingList<_Student>(result);
}
return list;
}

//DELETE.
public static void DeleteStudentInfo(int Id)
{
using (ProjectSpecSqlFluentContext db = new ProjectSpecSqlFluentContext())
{
if (db._Students.Any(x => x.Id.Equals(Id)))
{
_Student s = db._Students.FirstOrDefault(x => x.Id.Equals(Id));
db.Delete(s);
db.SaveChanges();
}
}
}
}


public partial class StudentForm : Telerik.WinControls.UI.RadForm
{
private BindingList<_Student> student;

public StudentForm()
{
InitializeComponent();

////Default schema.
//vmSchema.AddDefaultTableInfo();

this.radGridView1.DataSource = _vmstudent.ReadStudentInfo();

this.rbtnAdd.Click += rbtnAdd_Click;
this.rbtnDelete.Click += rbtnDelete_Click;
this.rbtnBestGrade.Click += rbtnBestGrade_Click;
}

//ADD...
void rbtnAdd_Click(object sender, EventArgs e)
{
student = new BindingList<_Student>();
student.Add(new _Student { Id = 0, Name = "Peter", Grade = "A" });
student.Add(new _Student { Id = 0, Name = "John", Grade = "B" });
student.Add(new _Student { Id = 0, Name = "Tony", Grade = "C" });
student.Add(new _Student { Id = 0, Name = "David", Grade = "D" });

_vmstudent.InsertNewStudentInfo(student);
this.radGridView1.DataSource = _vmstudent.ReadStudentInfo();
}


//BEST GRADE...
void rbtnBestGrade_Click(object sender, EventArgs e)
{
int index = this.radGridView1.Rows.IndexOf(radGridView1.CurrentRow);
string id = this.radGridView1.Rows[index].Cells["Id"].Value.ToString();

_vmstudent.UpdateStudentInfo(Convert.ToInt16(id), txtBestGrade.Text);
this.radGridView1.DataSource = _vmstudent.ReadStudentInfo();
}

//DELETE..
void rbtnDelete_Click(object sender, EventArgs e)
{
int index = this.radGridView1.Rows.IndexOf(radGridView1.CurrentRow);
string id = this.radGridView1.Rows[index].Cells["Id"].Value.ToString();

_vmstudent.DeleteStudentInfo(Convert.ToInt16(id));
this.radGridView1.DataSource = _vmstudent.ReadStudentInfo();
}
}

Your help would be appreciated.

Thanks

Gavin



George
Telerik team
 answered on 24 Mar 2014
3 answers
270 views
I have a winform app that is using Telerik RadGridView. It has several GridViewTemplate and in 1 of the GridViewTemplate I want to have self reference relation, so my question is
- can I cast GridViewTemplate to RadGridView so I use
         RadGridView.Relations.AddSelfReference
- or can have some way that I can use directly
         GridViewTemplate.Relations.AddSelfReference

Thanks.
Tom
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 21 Mar 2014
2 answers
117 views
VB.Net in VS2010.
I have a scheduler that's in a RadForm that is an MDI child inside a RadDock on the parent form, which is also a RadForm. The mouse wheel does not work in the scheduler. If I put a scheduler on a non MDI form the mouse wheel does work. Do you have any suggestions as to where I can look for the problem? It has been like this since the 2012 version of Telerik Controls and I just updated to 2014.1.226.40 hoping the problem would be solved.
Dimitar
Telerik team
 answered on 21 Mar 2014
3 answers
151 views
Can I put the custom control (treeview with checkbox) inside the GridViewTemplate. I have the .Net winform, which is using the Rad GridView, display the customer information, when user click on that customer, the sub templates will open (3 tabs), I coded for 2 tabs which display detail information. I want to code the last tab display the treeview with checkbox in it and user can select checkbox to turn on or off the options they want to use.
Thanks.
Ivan Petrov
Telerik team
 answered on 21 Mar 2014
2 answers
150 views
How can I turn off the selected record arrow in the MultiColumn ComboBox.  I am using a custom theme.

Thanks.
Paul
Top achievements
Rank 1
 answered on 21 Mar 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?