Telerik Forums
UI for WinForms Forum
1 answer
129 views
Hello,
  Im using telerik 2010.2.10.713 version library, i want on my radgridview to validate the filled fields by the user at the end of editing the row, i have as selection mode the fullrow select, for that purpose i used row validating event wich i used on datagridview but this didnt work on radgrid view, im trying:

if (radGridView1.Rows[e.RowIndex].Cells["usu_clave"].Value == null)              {                    radGridView1..Rows[e.RowIndex].Cells["usu_clave"].ErrorText ="some error";               e.Cancel = true;     //prevent the user to save changes                       return;             }


<code style="color: #000;">if (radGridView1.Rows[e.RowIndex].Cells["usu_clave"].Value == null)</code><code style="color: #069;font-weight: bold;"></code><code style="color: #000;">              {</code><code style="color: #000;">                    radGridView1..Rows[e.RowIndex].Cells["usu_clave"].ErrorText ="some error";</code><code style="color: #069;font-weight: bold;"></code><code style="color: #000;">               e.Cancel = true;     //prevent the user to save changes      </code><code style="color: #069;font-weight: bold;"></code><code style="color: #000;">                 return;</code><code style="color: #069;font-weight: bold;"></code>             }<br><div style=" background-color: #fff;"><span style=" "><span style=" margin-left: 0px !important;"><code style="color: #000;"></code></span></span></div>

what is going wrong?

thanks!
Svett
Telerik team
 answered on 11 Dec 2012
3 answers
140 views
 
Hi,

I have a grid view , which has paging enabled.
When i try to change the page size , i am getting the below error.

" Specified argument was out of the range of valid values.
Parameter name: ItemHierarchicalIndex

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code."

Please let me know if there is a fix for this.

Thanks,
Raghav.
Maria Ilieva
Telerik team
 answered on 11 Dec 2012
4 answers
262 views
my application uses BackgroundWorker to initialize user controls and load data models for the control to keep the user interface responsive. i have a custom control which uses page view to show different custom user controls. i load data for the control and instantiate the control in a background thread. after initializations the data model and the control is added to a global list of controls. the main ui then shows the control in a tab document. now when i try to add it to the tab the page view page object throws an exception mentioning cross thread access. i have checked for cross thread access before adding the control to the tab strip. it only happens if i use a page view control inside the my custom user control. instead if i use a tab strip than page view in my custom control it works fine.

how can i avoid this exception?
Boryana
Telerik team
 answered on 11 Dec 2012
1 answer
273 views
Hi,
Thanks for the great work.
Am very new to telerik Rad Charts.
I would like to Create 2 Bar Charts on 1 windows Form using VB.net with Data coming from a Database.

I am looking at creating SQL Statements for each of these 2 Charts with the X and Y axis for the Charts in mind.
i.e Select Products, Prices from ProductSale

Kindly provide a sample example that can enable me pick data from the Database and Bind this Data to the Bar Charts.
I have tried but havent been able to get a newby example of this kind from the forum yet

Thank U.





 
Ivan Petrov
Telerik team
 answered on 11 Dec 2012
2 answers
175 views
Hello

I created a new form, added a RadGridView to it, and populated it using a query containing a UNION statement.

pGrid.BeginUpdate();
// QueryDB below returns a Datatable with the resultset or the SELECT
DataTable rs = clsDBConn.QueryDB("SELECT a,b,c FROM T1 UNION SELECT a,b,c FROM T2");
pGrid.DataSource = null;
pGrid.DataSource = rs;
pGrid.MasterTemplate.AutoGenerateColumns = true;
pGrid.MasterTemplate.AllowAutoSizeColumns = true;
pGrid.MasterTemplate.AllowAddNewRow = false;
pGrid.MasterTemplate.AllowDeleteRow = false;
pGrid.MasterTemplate.AutoSizeColumnsMode = GridViewAutoSizeColumnsMode.None;
pGrid.MasterTemplate.SelectionMode = GridViewSelectionMode.FullRowSelect;
pGrid.TableElement.ShowTranslucentSelectionRectangle = true;
pGrid.ShowRowHeaderColumn = false;
pGrid.EndUpdate();
 
foreach (GridViewDataColumn column in pGrid.Columns)
{
    column.ReadOnly = false;
}


Even with the ReadOnly=false, when I changed a cell's value and clicked elsewhere, a "Data Exception" message saying "Column 'a' is read only." poped up. I put my UNION statement in a view, called the view, and everything worked as expected.
Philippe
Top achievements
Rank 2
 answered on 10 Dec 2012
0 answers
146 views
Hi,

We are using Telerik winform version 2009.3.9.1203. In that, we have used Gridview with the Grouping. And, we need to give the ability to add a new row at any row position. But, when we code that, the grouping is not reflecting properly. Because of which the newly added row is always go to the top.

Attached is the sample screenshot for your reference.

Please let me know, the solution for this.
Nallan Krishnan
Top achievements
Rank 1
 asked on 10 Dec 2012
5 answers
359 views
Hi,

I am using a PrintPreviewDialog, when I click on the Settings Button, I get the Excption below.
To open the Dialog I am only calling the PrintPreview() Method of an RadGridView. Thie error occurs in Telerik RadControls Q2 and Q3 2012 for Winforms. How can I avoid this error?

Kind Regards,
Li

Here is the ErrorMessage:

The value '0' is not a valid value for the enum 'PaperSourceKind'.

   at System.ComponentModel.EnumConverter.ConvertTo(ITypeDescriptorContext context, CultureInfo culture, Object value, Type destinationType)
   at System.ComponentModel.TypeConverter.ConvertToString(Object value)
   at System.Drawing.Printing.PaperSource.ToString()
   at Telerik.WinControls.UI.ListDataLayer.GetUnformattedValue(RadListDataItem item)
   at Telerik.WinControls.UI.RadListDataItem.SetDataBoundItem(Boolean dataBinding, Object value)
   at Telerik.WinControls.UI.ListControlListSource.InitializeBoundRow(RadListDataItem item, Object dataBoundItem)
   at Telerik.WinControls.Data.RadListSource`1.InitializeBoundRows()
   at Telerik.WinControls.Data.RadListSource`1.Initialize()
   at Telerik.WinControls.Data.RadListSource`1.Bind(Object dataSource, String dataMember)
   at Telerik.WinControls.Data.RadListSource`1.set_DataSource(Object value)
   at Telerik.WinControls.UI.ListDataLayer.set_DataSource(Object value)
   at Telerik.WinControls.UI.RadListElement.set_DataSource(Object value)
   at Telerik.WinControls.UI.RadDropDownListElement.set_DataSource(Object value)
   at Telerik.WinControls.UI.RadDropDownList.set_DataSource(Object value)
   at Telerik.WinControls.UI.PrintSettingsDialog.LoadSettings()
   at Telerik.WinControls.UI.GridViewPrintSettingsDialog.LoadSettings()
   at Telerik.WinControls.UI.PrintSettingsDialog.set_PrintDocument(RadPrintDocument value)
   at Telerik.WinControls.UI.PrintSettingsDialog..ctor(RadPrintDocument document)
   at Telerik.WinControls.UI.GridViewPrintSettingsDialog..ctor(RadPrintDocument document)
   at Telerik.WinControls.UI.RadGridView.Telerik.WinControls.UI.IPrintable.GetSettingsDialog(RadPrintDocument document)
   at Telerik.WinControls.UI.RadPrintPreviewDialog.OnShowPrintSettingsDialog()
   at Telerik.WinControls.UI.RadPrintPreviewDialog.buttonSettings_Click(Object sender, EventArgs e)
   at Telerik.WinControls.RadElement.OnMouseDown(MouseEventArgs e)
   at Telerik.WinControls.RadItem.OnMouseDown(MouseEventArgs e)
   at Telerik.WinControls.RadElement.OnCLREventsRise(RoutedEventArgs args)
   at Telerik.WinControls.RadElement.OnBubbleEvent(RadElement sender, RoutedEventArgs args)
   at Telerik.WinControls.RadItem.OnBubbleEvent(RadElement sender, RoutedEventArgs args)
   at Telerik.WinControls.RadElement.RaiseBubbleEvent(RadElement sender, RoutedEventArgs args)
   at Telerik.WinControls.RadItem.RaiseBubbleEvent(RadElement sender, RoutedEventArgs args)
   at Telerik.WinControls.RadElement.RaiseRoutedEvent(RadElement sender, RoutedEventArgs args)
   at Telerik.WinControls.RadElement.DoMouseDown(MouseEventArgs e)
   at Telerik.WinControls.RadElement.CallDoMouseDown(MouseEventArgs e)
   at Telerik.WinControls.ComponentInputBehavior.OnMouseDown(MouseEventArgs e)
   at Telerik.WinControls.RadControl.OnMouseDown(MouseEventArgs e)
   at Telerik.WinControls.UI.RadCommandBar.OnMouseDown(MouseEventArgs e)
   at System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at Telerik.WinControls.RadControl.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Li
Top achievements
Rank 1
 answered on 10 Dec 2012
2 answers
267 views

Is there any way to set in command bar any control acceptable by command bar, like drop down list, anchored to the right side of the bar?

The command bar in the picture attached is stretched on the whole width of its parent control and is resizing with its parent control together.

Ofer
Top achievements
Rank 1
 answered on 09 Dec 2012
5 answers
1.5K+ views
Hi,

FindItem(string StartsWith) method of RadComboBox to return a RadComboBoxItem with text starting with a given string.

RadComboBoxItem item = radComboBox1.FindItem(strString);

What is the equivalent method in RadDropDownList to find item starting with a given string.

Any help is appreciated.

Thanks
Peter
Telerik team
 answered on 07 Dec 2012
1 answer
83 views
(*I thought I posted this yesterday, but can't find it*)

I created a usercontrol that has a panel. I made the panel with rounded corners, just like the documentation. However. You can still see the square behind the rounded corners. I tried making them transparent, but no luck. See attached img. Suggestions on getting rid of the square in the back?


Thanks!
Plamen
Telerik team
 answered on 07 Dec 2012
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
Wizard
CollapsiblePanel
LayoutControl
ShapedForm
SyntaxEditor
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?