Telerik Forums
UI for WinForms Forum
1 answer
216 views
Hello. I need to know if it is possible for me to somehow disable certain weekdays (Mon - Sun) on the RadCalendar?
Richard Slade
Top achievements
Rank 2
 answered on 08 Feb 2011
2 answers
1.2K+ views
HI

Here, I have a radgridview contains two columns 'Debit' and 'Credit' ,both column contains Decimal values...
And at the end of Form ,there are two Labels ready to display sum of 'Debit' and 'Credit' columns...
let me know, How it is possible???
AND
when user add/delete rows  with 'Debit' and 'Credit' values,the Sum of column Should be changed....
Please suggest me any solution....

Thank You
Richard Slade
Top achievements
Rank 2
 answered on 08 Feb 2011
5 answers
189 views
Hi there,

since the newest release the ColumnChooserFormMessage ist centered and not at the bottom of the Form. Is there a way to put the message back to the bottom?

Best regards,
Alexander
Richard Slade
Top achievements
Rank 2
 answered on 08 Feb 2011
3 answers
189 views

Hello!

If I create a simple RadForm with a single RadTextBox, this text box is selected (gets input focus and shows cursor) automatically when the form is shown. If I create a simple RadForm with a RadPageView and place the RadTextBox into the page, it is not selected automatically when the form is shown.

Even the following code does not select the text box:

protected override void OnLoad(EventArgs e)
{
    base.OnLoad(e);
 
    radTextBox1.Focus();
    radTextBox1.Select(0, 0);
}

The following workaround does work, but I do not think this is a way I should go:

protected override void OnLoad(EventArgs e)
{
    base.OnLoad(e);
 
    Application.Idle += Application_Idle;
}
 
void Application_Idle(object sender, EventArgs e)
{
    Application.Idle -= Application_Idle;
    radTextBox1.Focus();
    radTextBox1.Select(0, 0);
}

So, how should I correctly select the text box in the PageView page when the form is shown?

Thank you.

Richard Slade
Top achievements
Rank 2
 answered on 08 Feb 2011
2 answers
275 views
Hello.

I have a following problem with the combobox:
First I initialize my combobbox:  Value column is a numeric field (Int64) , Display column is a Text field:
ddb_Broker.ValueMember = dtBrokerList.Columns[0].ColumnName;
ddb_Broker.DisplayMember = dtBrokerList.Columns[1].ColumnName;
ddb_Broker.DataSource = dtBrokerList.DefaultView;
ddb_Broker.SelectedItem = null;

When I retrieve data I need to populate the Broker:
ddb_Broker.SelectedValue = Convert.ToInt64(gl_dtProgram.Rows[0]["in_broker"]);
after this line in debugger ddb_Broker.SelectedValue = null ..... ? WHY ?

Please, help me to set this value. The same story happened with other fields ..

Thank you ,
Victoria.
Peter
Telerik team
 answered on 08 Feb 2011
6 answers
464 views
I just started my first WinForms app using Telerik controls today, so maybe I'm overlooking something, but my RadForm's title bar will not display.  Here's what happens:

  1. I compile and run my app (just one form).
  2. It looks fine, but then I click on another app that brings it in front of mine.
  3. Then I click my app's taskbar button to bring it back... no title bar.

Actually, the title bar is there as in it accepts mouse clicks and I can drag the window, but it doesn't draw itself or the controls on it.  It essentially takes a screen shot of what's behind it, then THAT becomes the image of the title bar.  That might be some partial text of a web page that was behind it.

This happens w/ VS2K8 on Windows Vista Ultimate x64 and Windows XP Pro x64.  The latest service packs for everything is installed and I downloaded and installed Telerik Q1 2009 today.
Martin Vasilev
Telerik team
 answered on 08 Feb 2011
3 answers
379 views
I'm having problems when I try to create a new RadGridView.  From the toolbox, I select RadGridView and then draw a box on the form.  When I do this it adds a reference to the control at the buttom, however it's not actually putting the control on the screen.  I checked to make sure that it was visible and the back color was different.  This problem has only started happening to me today, before today I could successfully add a RadGridView to my forms. 
Richard Slade
Top achievements
Rank 2
 answered on 08 Feb 2011
6 answers
192 views
Hi,

Is it possible to export a cell's value member instead of the display member when exporting to excel using ExportToExcelML?

Thanks
Richard Slade
Top achievements
Rank 2
 answered on 07 Feb 2011
3 answers
215 views
Hi,

I'm creating a GridViewDecimalColumn as follows:

GridViewDecimalColumn col = new GridViewDecimalColumn();
 
col.Name = node.Name;
col.FielName = node.Name;
col.HeaderText = friendlyName;

When setting the FieldName property, if node.Name = tb_Column then everything is fine. However, when node.Name = tb_Column_1 then I get a FormatException - Input string was not in a correct format.

Do I need to format that FieldName property in any special way or something?

Thanks
Richard Slade
Top achievements
Rank 2
 answered on 07 Feb 2011
3 answers
403 views
Ok,

Yet again, another issue that I am facing with the GridView control... :-)

Here are the steps for creating and populating my grid:

1. I construct my columns (mostly, GridViewTextBoxColumn, GridViewComboBoxColumn, GridViewDecimalColumn and GridViewDateTimeColumn) programmatically on form load. First of all, I construct these columns using xml data for the Fieldname properties etc.

Here is an example:

foreach (XmlNode mapNode in mappingXmlDoc.SelectSingeNode("Mappings"))
{
// Maps to GridViewDateTimeColumn
if (elementPrefix == "dt")
{
GridViewDateTimeColumn col = new GridViewDateTimeColumn();
col.Name = mapNode.Name;
col.FieldName = mapNode.Name;
col.HeaderText = friendlyName;
radGridView1.Columns.Add(col);
}
 
}

2. After I constructed these columns, I go ahead and initialize the grid by assigning it a datasource. The DataSet in turn is populated with xml data:

DataSet dsData = new DataSet();
dsData.ReadXml(xmlFile);
 
radGridView.DataSource = dsData.Tables[0];

The xml data that I read into the DataSet looks like this:

<assets>
<asset>
<tb_Desc></tb_Desc>
<dt_MoveDate><dt_MoveDate>
</asset>
</assets>

3. When setting following properties on the GridViewDateTimeColumn as follows:

foreach (GridViewDataColumn in radGridView1.Columns)
{
string[] strArr = col.FieldName.Split(new char[] {'_'});
 
// This way I know its a GridViewDateTimeColumn
if (strArr[0] == "dt")
{
((GridViewDateTimeColumn)col).ExcelExportType = DisplayFormatType.Custom;
((GridViewDateTimeColumn)col).ExcelExportFormatString = "dd.mm.YYYY";
((GridViewDateTimeColumn)col).FormatString = "{0:dd.mm.YYYY}";
}
}

nothing happens... I've tried to set the properties both before and after I set the gridview's datasource with no success.

Also, I'm using the ExportToExcelML class for exporting and I always end up with data for the date field looking like this: 1/27/2011 12:00:00 AM in both the grid and exported excel spreadsheet which is wrong.

Is there anything I'm doing wrong somewhere?

I appreciate your help.

Thanks
Johan
Top achievements
Rank 1
 answered on 07 Feb 2011
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?