Telerik Forums
UI for WinForms Forum
3 answers
281 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
129 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
166 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
74 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
62 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
112 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
86 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
141 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
126 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
209 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)
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
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
CheckedDropDownList
ProgressBar
TrackBar
MessageBox
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
Styling
Barcode
BindingNavigator
PopupEditor
RibbonForm
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
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
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?