Telerik Forums
UI for WinForms Forum
1 answer
326 views
Hi there.
Just got me the Telerik stuff and try to work my way into it.
However, the panel-bar control with the outlook type theme/style is a bit of a disappointment since the header is centered and apparently has no way to change it via the property settings.
How can I change that???
Nikolay
Telerik team
 answered on 05 Jan 2009
1 answer
150 views
Hi:

I'm totally new to Rad WinForm controls. 2 hours into it, I have a question:

I have a GridView on an RadMDI parent form.  There's also a button. Clicking the button calss a child form:

 

Dim child1 As New Form()

 

child1 = FrmStdEdit    'where FrmStdEdit is the child form I designed.

 

Dim ChildSize As New System.Drawing.Size(580, 200)

 

child1.Size = ChildSize

child1.Text =

"JTK Form"

 

child1.MdiParent =

Me

 

child1.TopMost =

True

 

child1.Show()

When the child form opens, however, it does so underneath the gridview - even though TopMost is set to true.  Is there a way to change that?

Justin

Nikolay
Telerik team
 answered on 05 Jan 2009
13 answers
297 views
I get the following error when I am closing the form.  The only operation I have done is to assign a datatable to the grid's datasource.

   at System.Drawing.Font.GetHeight(Graphics graphics)
   at System.Drawing.Font.GetHeight()
   at System.Drawing.Font.get_Height()
   at Telerik.WinControls.VisualElement.OnPropertyChanged(RadPropertyChangedEventArgs e)
   at Telerik.WinControls.RadComponentElement.OnPropertyChanged(RadPropertyChangedEventArgs e)
   at Telerik.WinControls.RadItem.OnPropertyChanged(RadPropertyChangedEventArgs e)
   at Telerik.WinControls.UI.LightVisualElement.OnPropertyChanged(RadPropertyChangedEventArgs e)
   at Telerik.WinControls.UI.GridRowElement.OnPropertyChanged(RadPropertyChangedEventArgs e)
   at Telerik.WinControls.RadObject.UpdateEffectiveValue(RadProperty dp, RadPropertyMetadata metadata, Boolean isCoerceValue, Boolean isOldValueValid, Object oldValue, ValueSource oldValueSource, Boolean oldValueIsDeferred, Boolean coerceWithDeferredReference)
   at Telerik.WinControls.RadObject.NotifyOnPropertyChanged(RadProperty radProperty, Object oldValue)
   at Telerik.WinControls.RadObject.UnregisterStylePropertySetting(IPropertySetting setting, Boolean notifyPropertyChange)
   at Telerik.WinControls.PropertySetting.UnregisterValue(RadElement element)
   at Telerik.WinControls.SelectorBase.Unregister(RadElement element, PropertySettingCollection propertySettings)
   at Telerik.WinControls.StyleSheet.Unapply(RadElement radElement)
   at Telerik.WinControls.RadElement.OnPropertyChanged(RadPropertyChangedEventArgs e)
   at Telerik.WinControls.VisualElement.OnPropertyChanged(RadPropertyChangedEventArgs e)
   at Telerik.WinControls.RadComponentElement.OnPropertyChanged(RadPropertyChangedEventArgs e)
   at Telerik.WinControls.RadItem.OnPropertyChanged(RadPropertyChangedEventArgs e)
   at Telerik.WinControls.UI.LightVisualElement.OnPropertyChanged(RadPropertyChangedEventArgs e)
   at Telerik.WinControls.UI.GridRowElement.OnPropertyChanged(RadPropertyChangedEventArgs e)
   at Telerik.WinControls.RadObject.UpdateEffectiveValue(RadProperty dp, RadPropertyMetadata metadata, Boolean isCoerceValue, Boolean isOldValueValid, Object oldValue, ValueSource oldValueSource, Boolean oldValueIsDeferred, Boolean coerceWithDeferredReference)
   at Telerik.WinControls.RadObject.SetValueCommon(RadProperty dp, Object value, RadPropertyMetadata metadata, Boolean coerceWithDeferredReference)
   at Telerik.WinControls.RadObject.SetValue(RadProperty dp, Object value)
   at Telerik.WinControls.RadElement.set_Style(StyleSheet value)
   at Telerik.WinControls.UI.GridRowElement.Dispose(Boolean disposing)
   at Telerik.WinControls.RadComponentElement.Dispose()
   at Telerik.WinControls.RadControl.RemoveChildren(RadElement element)
   at Telerik.WinControls.RadControl.RemoveChildren(RadElement element)
   at Telerik.WinControls.RadControl.RemoveChildren(RadElement element)
   at Telerik.WinControls.RadControl.RemoveChildren(RadElement element)
   at Telerik.WinControls.RadControl.Dispose(Boolean disposing)
   at Telerik.WinControls.UI.RadGridView.Dispose(Boolean disposing)
   at System.ComponentModel.Component.Dispose()
   at System.Windows.Forms.Control.Dispose(Boolean disposing)
   at System.ComponentModel.Component.Dispose()
   at System.Windows.Forms.Control.Dispose(Boolean disposing)
   at System.Windows.Forms.ContainerControl.Dispose(Boolean disposing)
   at ASD.SearchSessionControl.Dispose(Boolean disposing)
   at System.ComponentModel.Component.Dispose()
   at System.Windows.Forms.Control.Dispose(Boolean disposing)
   at Telerik.WinControls.Docking.DockPanel.Dispose(Boolean disposing)
   at System.ComponentModel.Component.Dispose()
   at System.Windows.Forms.Control.Dispose(Boolean disposing)
   at System.Windows.Forms.ContainerControl.Dispose(Boolean disposing)
   at Telerik.WinControls.Docking.DockSite.Dispose(Boolean disposing)
   at System.ComponentModel.Component.Dispose()
   at Telerik.WinControls.Docking.DockingManager.Dispose(Boolean disposing)
   at System.ComponentModel.Component.Finalize()
Jordan
Telerik team
 answered on 05 Jan 2009
1 answer
322 views
Hi,
How to disable the right menu in RadSchedule?
Victor
Telerik team
 answered on 05 Jan 2009
5 answers
161 views
Hello

How can I set WPF Look of GridView while runtime ?

I have set DataSource like:

this

.radGridView1.DataSource = local_DataSet.Tables[0];

I like to have the same look like the Grouping sample.

Thanks and best regards
Frank Uray

 

Jordan
Telerik team
 answered on 05 Jan 2009
4 answers
123 views
Hi all,

I'm in need of localization for the radgridview contextmenus and the version of telerik used on the project is Q3 2007 SP1. I found how I could change the filteroptions and the filteroperations but I can't seem to get a hold of the sorting ones. I guess you all know what menu I mean if I say it contains the following items: Sort Ascending, Sort Descending, Conditional formatting, etc...

Is it possible to alter the strings for these somewhere or somehow?

Thank you in advance,
Ivan
IvanL
Top achievements
Rank 1
 answered on 05 Jan 2009
1 answer
142 views
Hi,
        I am working on rad gridview for winforms. I have a grid with four columns. The first columns is an id field, second column a display field. The third column is a hidden field that has two possible values(lookup, user entry). Based on this the fourth column should show a drop down list or a text box. If the value of the third column is "lookup", we have to get the id value from the id column, query a table with the id and fill the drop down with the resultant values. If the value of the third column is "user entry", we have to show a text box there where user can enter values. Upto this i have done but the problem is, the text box seems to be in locked mode initially when tried to enter data in it. If we try to enter the data after clicking some other columns , then it works fine. I am listing the code below.


public

partial class Test : Form

 

 

{

 

DataTable dtMain;

 

 

 

DataTable dtChild;

 

 

 

public Test()

 

{

InitializeComponent();

SetTableData();

radGridView1.DataSource = dtMain;

}

 

 

private void CreateMainTable()

 

{

dtMain =

 

new DataTable("MainTable");

 

dtMain.Columns.Add(

 

new DataColumn("Id", typeof(System.Int32)));

 

dtMain.Columns.Add(

 

new DataColumn("Desc", typeof(System.String)));

 

dtMain.Columns.Add(

 

new DataColumn("Type", typeof(System.String)));

 

 

}

 

 

private DataTable CreateChildTable()

 

{

dtChild =

 

new DataTable("ChildTable");

 

dtChild.Columns.Add(

 

new DataColumn("Id", typeof(System.Int32)));

 

dtChild.Columns.Add(

 

new DataColumn("Value", typeof(System.String)));

 

 

 

return dtChild;

 

}

 

 

private void SetTableData()

 

{

CreateMainTable();

CreateChildTable();

 

 

DataRow dr = dtMain.NewRow();

 

dr[

 

"Id"] = 1;

 

dr[

 

"Desc"] = "FT Status";

 

dr[

 

"Type"] = "lookup";

 

dtMain.Rows.Add(dr);

dr = dtMain.NewRow();

dr[

 

"Id"] = 2;

 

dr[

 

"Desc"] = "UT Status";

 

dr[

 

"Type"] = "lookup";

 

dtMain.Rows.Add(dr);

dr = dtMain.NewRow();

dr[

 

"Id"] = 3;

 

dr[

 

"Desc"] = "Test";

 

dr[

 

"Type"] = "userentry";

 

dtMain.Rows.Add(dr);

 

 

DataRow childRow = dtChild.NewRow();

 

childRow[

 

"Id"] = 1;

 

childRow[

 

"Value"] = "Test1";

 

dtChild.Rows.Add(childRow);

childRow = dtChild.NewRow();

childRow[

 

"Id"] = 1;

 

childRow[

 

"Value"] = "Test2";

 

dtChild.Rows.Add(childRow);

childRow = dtChild.NewRow();

childRow[

 

"Id"] = 1;

 

childRow[

 

"Value"] = "Test3";

 

dtChild.Rows.Add(childRow);

childRow = dtChild.NewRow();

childRow[

 

"Id"] = 2;

 

childRow[

 

"Value"] = "New1";

 

dtChild.Rows.Add(childRow);

childRow = dtChild.NewRow();

childRow[

 

"Id"] = 2;

 

childRow[

 

"Value"] = "New2";

 

dtChild.Rows.Add(childRow);

}

 

 

private void radGridView1_CellFormatting(object sender, Telerik.WinControls.UI.CellFormattingEventArgs e)

 

{

 

 

 

}

 

 

private void FillCustomLookupData(GridViewLookUpColumn gridViewLookUpColumn, int customLookupId)

 

{

 

 

if (gridViewLookUpColumn != null)

 

{

 

 

//DataTable dtNew = dtChild.Select("Id=" + Convert.ToString(customLookupId));

 

 

 

DataView dv = dtChild.DefaultView;

 

dv.RowFilter =

 

"Id=" + Convert.ToString(customLookupId);

 

gridViewLookUpColumn.DataSource = dv.ToTable();

gridViewLookUpColumn.UniqueName =

 

"Value";

 

gridViewLookUpColumn.DisplayMember =

 

"Value";

 

gridViewLookUpColumn.DropDownStyle =

 

RadDropDownStyle.DropDownList;

 

}

}

 

 

private void radGridView1_CreateRow(object sender, GridViewCreateRowEventArgs e)

 

{

}

 

 

private void radGridView1_DataBindingComplete(object sender, GridViewBindingCompleteEventArgs e)

 

{

}

 

 

private void radGridView1_RowFormatting(object sender, RowFormattingEventArgs e)

 

{

 

 

RadTextBoxElement rtxtElement;

 

 

 

if (radGridView1.CurrentRow.Cells["Value"] == null)

 

 

 

return;

 

 

 

GridViewLookUpColumn gridViewLookUpColumn = ((Telerik.WinControls.UI.GridViewLookUpColumn)(radGridView1.CurrentRow.Cells["Value"].ColumnInfo));

 

 

 

if (radGridView1.CurrentRow.Cells["Type"].Value.ToString().Trim() == "lookup")

 

{

FillCustomLookupData(gridViewLookUpColumn,

 

Convert.ToInt32(radGridView1.CurrentRow.Cells["Id"].Value));

 

radGridView1.CurrentRow.Cells[

 

"ValuesBound"].Value = "1";

 

}

 

 

else

 

 

{

rtxtElement =

new RadTextBoxElement();

 

 

 

if (radGridView1.CurrentRow.Cells["Value"].CellElement != null)

 

{

 

 

if (radGridView1.CurrentRow.Cells["Value"].CellElement.Children.Count == 0)

 

{

rtxtElement.TextChanged +=

 

new EventHandler(rtxtElement_TextChanged);

 

radGridView1.CurrentRow.Cells[

 

"Value"].CellElement.Children.Add(rtxtElement);

 

}

radGridView1.CurrentRow.Cells[

 

"ValuesBound"].Value = "1";

 

}

}

}

 

 

void rtxtElement_TextChanged(object sender, EventArgs e)

 

{

 

}

 

 

private void radCheckBox1_Enter(object sender, EventArgs e)

 

{

radCheckBox1.BackColor =

 

Color.Beige;

 

}

 

 

private void radCheckBox1_Leave(object sender, EventArgs e)

 

{

radCheckBox1.BackColor =

 

Color.Red;

 

}

}

 


Please help me to solve this.

Regards
Shamjith T.H



       
Shamjith
Top achievements
Rank 1
 answered on 02 Jan 2009
2 answers
366 views
I am new to RadGrid for WinForm, and have some basic questions:

1.    Upon adding a new row to the grid, I want to write the value in code in one of the 10 cells. I tried by writing this code in the RowChanged event but did not work:  radGridView1.CurrentRow.Cells["WeekNumber"].Value = radSpin1.Value;
How I can achieve this.

2.    I don't want to use spinbutton Editor with a Decimal type column. Please let me know how to change the default Column Editor of a Decimal Type column?

Tariq Changgez

Victor
Telerik team
 answered on 30 Dec 2008
5 answers
221 views
Hello Everyone,

I am using Visual Studio 2008 and telerik rad controls Q3 2008. Inspite of all successful installations when i open my VS 2008 IDE I do not see toolbar with Telerik Controls. I see general microsoft .net toolbars/controls.

Can anyone tell me what I need to do so that I can see all telerik rad controls in a toolbar. I would appreciate any help.

Thank you,

Regards,
GR

jack
Top achievements
Rank 1
 answered on 30 Dec 2008
1 answer
111 views
I have a RadForm Dialog that sometimes does some lengthy operations.
In this case, the Form does not always repaint, is that the expected behaviour?
Do I always have to implement some Worker Thread pattern when working with RadForm?


Deyan
Telerik team
 answered on 30 Dec 2008
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?