Telerik Forums
UI for WinForms Forum
3 answers
348 views
Hi,
     I have a rad gridview windows control with a GridViewTextBoxColumn and a GridViewCheckBoxColumn. AllowAddNewRow is set to "True" for the Gridview. I have written code in DefaultValuesNeeded event to set the check box selected. I need to validate data in the current editing row before the focus moves to a new row or some other row. I have written code in CurrentRowChanging event to validate the data but the cell value is always null.
 private void radGridView1_CurrentRowChanging(object sender, CurrentRowChangingEventArgs e)  
        {  
            if (e.CurrentRow == null) return;  
 
            radGridView1.Invalidate();  
 
            var val = Convert.ToString(e.CurrentRow.Cells["column1"].Value);  
            if (val == "test")  
            {  
                MessageBox.Show("Invalid data");  
                e.Cancel = true;  
            }  
        } 
In which event should i write the code.

Regards
Shamjith
Nick
Telerik team
 answered on 21 Dec 2009
3 answers
161 views
Hi there!

I´d need to do some action when I click on a DropDownButton (not the arrow) and I do not want that de DropDownButton shows its menu.
How can I get this result?

Regards
Darío K
Victor
Telerik team
 answered on 21 Dec 2009
1 answer
225 views
Hi All,

I have created a class which inherits from RADTextBox and override the OnKeyPress() method.

public class RegExpRadTextBox : RadTextBox
{
string _keyRegExp;
public string KeyRegExp
{
get { return this._keyRegExp; }
set { this._keyRegExp = value; }
}

protected override void OnKeyPress(KeyPressEventArgs e)
{
if (!string.IsNullOrEmpty(this._keyRegExp))
{
if (!Regex.IsMatch(e.KeyChar.ToString(), this._keyRegExp))
{
e.Handled = true;
}
}

base.OnKeyPress(e);
}
}

But when i type some text, nothing happens (Keypress Event Firing/Raised).

(Keydown is also doesnt work.) 

What should i do? 

Thanks.

Victor
Telerik team
 answered on 21 Dec 2009
0 answers
107 views
Hi,
I am getting 'Index was outside the bounds of the array.' exception when i try to use the vertical scroll bar of last tab in my child grid and then click on some other tab. why is this happening ??
Akshatha naik
Top achievements
Rank 1
 asked on 21 Dec 2009
1 answer
98 views
I am hoping someone replies to this post during the weekend.

The documentation for Q3 2009 says that 'AfterCollapse' is a public event of RadTreeView, and also it says to use 'NodeCollapsed' event instead of 'AfterCollapse'.

I found that neither 'AfterCollapse' nor 'NodeCollapsed' appear as public events in Visual Studio, even though both these events are documented as 'Public' events in the documentation of RadTreeView in Q3 2009.

Anyone noticed this strange inconsistency with latest 'RadTreeView'? Is there any simple or complex alternative solution for these missing events or a simple upgrade path for this scenario?


Victor
Telerik team
 answered on 19 Dec 2009
1 answer
175 views
I have a gridview (v2.0.50727) with filter row enabled. Some of the gridview columns have integer datatype. When a string is entered instead of integer an exception is being thrown for understandable reason. My question is where do I handle the input validation? (What event do I subscribe, etc).

Also is it possible to have a dropdown list in the filter row for some of the columns? One of the columns in my grid is a foreign key column and is being populated with string representation of the value. Please refer to an example if possible. I have searched the forums and found posts that said in future versions of gridview this should be possible, is it possible now?
Svett
Telerik team
 answered on 19 Dec 2009
1 answer
112 views
I am binding a list to the RadListBox but I want to use a custom RadListBoxItem for the items in the list. How is this accomplished during binding?
Nikolay
Telerik team
 answered on 18 Dec 2009
2 answers
187 views
Hi,

I have added a new column of type GridViewMultiColumnComboBoxColumn to a GridView, but when I run the application I have this issue thats on this link:
http://img96.imageshack.us/i/image01g.jpg/
which I can't solve by my self. So how do I set autoSizeDropDownToBestFit like on the MultiColumnComboBox object? or something like that.

Regards,
Hugo Ruivo
Hugo Ruivo
Top achievements
Rank 1
 answered on 18 Dec 2009
1 answer
168 views
Hello,

we use Telerik in our Company. We use a lot of GridViews and here are my Questions:

1. What is the best and fastest way to bind data to a datasource. We use lists for binding. Are datasets or arrays faster? Should i use   binding sources or do they cost time?

2. I have a hierachal GridView. I dont aant to work with datasets. I work with Objects.
    I have a class for example City with some properties and a nested list of people objects.

    Now my solution is to make an relation between thos two. Each people Object has an ID of its city.

    But to bind that i have to make a new list which has alle people from all cities and then i can bind it.

    But i would like to bind it without makin the new list.

    I wolud have it like the childgrid binds to the list of people in the city.

    gridView.datasource = List<City>
    gridView.Template...[0].DataSource = here I would like to have exactlöy the nested list in city but i have a list of alle people from all cities?

How can I solve that?
Thanx Thomas
    
Julian Benkov
Telerik team
 answered on 18 Dec 2009
5 answers
275 views
Is there any way to get the menu of the application menu to open horizontally to the right instead of vertically?  I tried setting the DropDownDirection to Right, but that doesn't seem to do anything.
Deyan
Telerik team
 answered on 17 Dec 2009
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?