Telerik Forums
UI for WinForms Forum
1 answer
135 views
Hi,

I have several problem when trying to develop app by RadDock control.

1. I use method "SaveToXml"  by saving as Strem or TextWritter format, but it does not work, could you give me a simple example? In my App, I want to save as System.IO.Stream and then save in memory.
Dim stream as System.IO.Stream
  
RadDock1.SaveToXml(stream)

2. Is there any property I can set to restrict the ToolWindow and do not let it be dragging outside the RadDock?

3. Can I disable the center image of DockingGuideTemplate to restrict the ToolWindow became TabbedDocument, like this http://www.telerik.com/help/silverlight/raddocking-features-compass.html
Stefan
Telerik team
 answered on 20 Aug 2010
1 answer
94 views

In Q2 2010 SP1,  we use following codes to implment appointments using recurrencerule.  But the appointment time in recurring appointments do not show correctly ( see attached screen shot).  This happens to all recurrence rules ( monthly, weekly and daily)

==========================================================================================

 

radScheduler1.Appointments.Clear();

 

Appointment ap = new Appointment();

 

 

DailyRecurrenceRule drule = new DailyRecurrenceRule();

 

drule.Start =

DateTime.Today;

 

drule.End =

DateTime.Today.AddYears(2);

 

ap.Start =

new DateTime(DateTime.Today.Year, DateTime.Today.Month, DateTime.Today.Day, 9, 0, 0);

 

ap.End =

new DateTime(DateTime.Today.Year, DateTime.Today.Month, DateTime.Today.Day, 11, 0, 0);

 

ap.RecurrenceRule = drule;

radScheduler1.Appointments.Add(ap);

 

=================================================================

There is not problem , using the same codes in earlier versions such as Q2 2009

======================================================================

Dobry Zranchev
Telerik team
 answered on 20 Aug 2010
3 answers
179 views
Hi there

We have appointments that span multiple days
Is there a way to determine the individual date that was clicked when I click on an appointment?

For example, if I have an appointment that runs from the 9th - 13th August, and I click on the appointment on the 12th, is there a way I can determine which day of the appointment I have selected?

Thanks
Dobry Zranchev
Telerik team
 answered on 20 Aug 2010
3 answers
124 views
Hello,

I have done the following in gridview in windows.

  1. Set datasource for gridview which has 3 columns (question, answer, active-boolean)
  2. Above displays check box for 3rd column
  3. Now i need only one check box to be checked at a time, but how to achieve that.

I will be helpful if any one can guide me

Thanx
Jai



Martin Vasilev
Telerik team
 answered on 19 Aug 2010
2 answers
412 views
Hello,

I have RadSplitContainer with two panels one above another. I need to hide the upper panel when user changes state of a toggle button to "off" and show that panel, when toggle state is changed to "on". The lower panel and it's contents must occupy the whole SplitContainer's surface when the upper one is hidden. I tried the following:

sp.SizeInfo.SizeMode = Telerik.WinControls.UI.Docking.SplitPanelSizeMode.Absolute;
sp.SizeInfo.AbsoluteSize = new Size(0, 0);
But it doesn't work at all. When I change height to "1":
sp.SizeInfo.AbsoluteSize = new Size(0, 1);
it works fine, but little nasty 1px width strip is visible. In design-time I can change splitter position so that AbsoluteSize.Width is 0. Also I can change panels height to 0 at runtime manually. Is there any way to do it programmatically?
Julian Benkov
Telerik team
 answered on 19 Aug 2010
2 answers
99 views

I am using a RadGridView in my application. It is connected to a binding datasoure. I am using the following code to insert new records. I have two database fields called createdon and createdby. I have to insert values to those two fields whenever I insert a new record. How can I achieve that?

 

this

 

.Validate();

 

 

this.substationBindingSource.EndEdit();

 

 

this.db.SubmitChanges();

 

Stefan
Telerik team
 answered on 19 Aug 2010
3 answers
932 views
I'm trying to use the RadPageView control but there is something that I need to do and I cannot find by myself actually.

How can I disable (or hide) the close tab button in strip view?

Thanks,
Georgi
Telerik team
 answered on 19 Aug 2010
3 answers
123 views
Hello!

I have a problem with custom sorting in the latest WinForms RadGridView (2010.2.10.806). It worked well with version 2009.3.9.1203. I use Visual Studio 2008 with .NET 3.5. 

The code snippet is very simple:

01.foreach (GridViewDataColumn column in grid.Columns)
02.    column.CustomDataOperation = CustomDataOperation.Sorting;
03....
04.  
05.void grid_CustomSorting(object sender, GridViewCustomSortingEventArgs e)
06.{
07.    MyItem item1 = grid.Rows[e.RowIndex1].DataBoundItem as MyItem;
08.    MyItem item2 = grid.Rows[e.RowIndex2].DataBoundItem as MyItem;
09.    ...
10.}

When the grid column header is clicked, the System.StackOverflowException occurs in grid_CustomSorting at the point where e.RowIndex1 or e.RowIndex2 is accessed. Moreover, it occurs even if we have 

1.void grid_CustomSorting(object sender, GridViewCustomSortingEventArgs e)
2.{
3.    int ind1 = e.RowIndex1;
4.}

The second problem is that e.RowIndex1 can be negative even when the e.CellValue1 contains a good value.

So, how should I sort the grid by underlying data using my custom logic?

Thank you.
Julian Benkov
Telerik team
 answered on 18 Aug 2010
1 answer
38 views
Can I import only  the new dll files of  "Scheduler and Reminder" in older version (May 2010) of telerik WinForms ?
Thank you in advance! 
Dobry Zranchev
Telerik team
 answered on 18 Aug 2010
3 answers
54 views
I am using Visual Studio 2010 Professional version 10.0.30319.1 and Telerik Rad Controls for WinForms Q2 2010 SP1 (2010.2.10.806). I have created a new Rad Controls Windows Forms Application.

I added a new data source to the Data Sources Window. If I try to drag a table from the Data Sources Window with the control type set as the default RadGridView control, I get the following error

"An error occurred while performing the drop:
Control 'RadGridView' cannot be used to bind to a table"

If I select the standard Microsoft DataGridView, it works fine.

Any ideas why the RadGridView does not work?

Thanks
Julian Benkov
Telerik team
 answered on 18 Aug 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)
Chart (obsolete as of Q1 2013)
Form
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
Diagram, DiagramRibbonBar, DiagramToolBox
GanttView
Panorama
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
ProgressBar
CheckedDropDownList
TrackBar
MessageBox
Rotator
SpinEditor
StatusStrip
CheckedListBox
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
DateTimePicker
CollapsiblePanel
Conversational UI, Chat
TabbedForm
CAB Enabling Kit
GroupBox
DataEntry
ScrollablePanel
ScrollBar
WaitingBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Barcode
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
NavigationView
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
Licensing
BarcodeView
BreadCrumb
Security
LocalizationProvider
Dictionary
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
ToolbarForm
NotifyIcon
DateOnlyPicker
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?