Telerik Forums
UI for WinForms Forum
1 answer
694 views
Hello,
I have a grid with certain fields that are not editable depending on the value of other fields on that row.  The best way I came up with to handle this was to wire up the CellBeginEdit event, and if the field is not allowed to be edited, then cancel the event.

 Private Sub rgvLines_CellBeginEdit(ByVal sender As ObjectByVal e As Telerik.WinControls.UI.GridViewCellCancelEventArgs) Handles rgvLines.CellBeginEdit  
 
        Select Case e.ColumnIndex  
 
            Case rgvLines.Columns("MFG_ENTITY_ID").Index  
 
                Dim lineCategoryTypeId As Integer 
                Dim lineCategoryShortName As String = Nothing 
 
                'Get the Line Category short name  
                 lineCategoryTypeId = CType(rgvLines.CurrentRow.Cells("LINE_CATEGORY_TYPE_ID").Value, Integer)  
                 lineCategoryShortName = GlobalMethods.GetTypeDefShortNameForTypeID(lineCategoryTypeId)  
 
                  If lineCategoryShortName = AppDefs.LineCategoryShortName.Group  
 
                       e.Cancel = True 
 
                  End if   
 
          End Select 
 
    End Sub 

 

This all works fine but the problem that I am having is that if the user has tabbed into this cell, then focus still stays with the cell that editing was cancelled for.  The default behavior is for tabbing to skip over read-only columns.  So once I cancel the CellBeginEdit event, how can I get to the next editable cell?  Is it possible to simulate the tab key press programmatically?

Thanks,
Sean

Robert
Top achievements
Rank 1
 answered on 16 Oct 2009
0 answers
109 views
Hello

I`m Using 2 DataGrid (Master/Detail) and wanna add new row in both of them, so i`m wrote on button Click event this code.

// Adding Row On Master  
GridHdr.Rows.AddNew(GridHdr.Rows.NewRow());  
// If new row is first row current row being null then i`m changing it.  
if (GridHdr.CurrentRow == null)  
   GridHdr.CurrentRow = GridHdr.Rows[0];  
// Filling Hdr Primerykey  
GridHdr.CurrentRow.Cells["pkID"].Value = HdrID;  
GridItm.Rows.AddNew(GridItm.Rows.NewRow());  
// On DetailGrid current row, if is first row thats not null  
if (GridItm.Row.Count == 1)  
   GridItm.CurrentRow = GridItm.Rows[0];  
// Filling Itm PrimeryKey  
GridItm.CurrentRow.Cells["pkID"].Value = ItmID;  
// Filling Itm FKey  
GridItm.CurrentRow.Cells["fkHdrID"].Value = HdrID; 
 but when button Click event was end, GridItm.Rows.Cells["pkID"].Value and other Cells has not value.
and when GridItm lost focus Itm new row lost, because has not fkHdrID (it`s Relation) Value.

Regards.
HamiD Mayeli
Top achievements
Rank 1
 asked on 16 Oct 2009
1 answer
175 views
When hiding or showing a tool window, there is a noticeable flicker on the rest of the controls in the rad dock. Setting the AutoHideAnimateMode to None seems to help a little but I can still see the flicker.

Setup:
I have two docking windows with user controls pre-loaded. I have four tool windows with user controls dynamically loaded.

Observations:
If I remove the pre-loaded user controls from the docking windows, there is no flicker. If I dynamically load the user controls into the docking window, the flicker occurs.

Thoughts?
Georgi
Telerik team
 answered on 16 Oct 2009
1 answer
128 views
When loading the RadDock from a previously saved XML file, there is a noticeable paint issue. The first thing drawn on screen is one of the docked windows, then about a second or two after that, the rest of the dock loads. Simply turning off the loading from XML fixes the issue. I thought it might be a problem with the RadDock's active window being incorrectly set, but after reading this post (http://www.telerik.com/community/forums/winforms/dock/autohide-doesn-t-seem-to-work-for-right-docked-toolwindows.aspx) and explicitly setting the active window, I don't think active window is the issue because the paint problem persists.

Thoughts?
Georgi
Telerik team
 answered on 16 Oct 2009
4 answers
527 views

Hi,
        I am new for Radcontrols.I want to print the gridview's data and show print preview. Plz help me.
luis
Top achievements
Rank 1
 answered on 16 Oct 2009
3 answers
520 views
Hi,
In my form at some event I am adding a RadDateTimePickerElement to a cell of a gridview. The RadDateTimePickerElement shows date picker. However my requirement is such that I want to show only a timepicker and want to select a specific time of day. But currently it allows me to select days and not time. I want tp select time of day.
Nikolay
Telerik team
 answered on 16 Oct 2009
5 answers
157 views
Hi,

What's the best way to style the header of the groupings?
Now I'm looping through all the rows after the databind like this:
foreach ( GridViewRowInfo row in grid.Rows ) { 
  if ( row is GridViewGroupRowInfo ) { 
    row.VisualElement.DrawFill = true
    row.VisualElement.BackColor = Color.Red; 
  } 

But this doesn't work.


Nick
Telerik team
 answered on 16 Oct 2009
1 answer
118 views
we have a licensed version of RadControls for WinForms 2009.2.9.729

Currently we have an Client Server application using telerik controls that is built and deployed using the standard setup project within VS2005, this all works grand when installed on XP operating system.

but the application wont run on Win Server 2003. the app wont run any forms that contain telerik controls, and just wondering is it not possible to run on Win Server 2003?

also, what about Vista

Many thanks.
Nick
Telerik team
 answered on 16 Oct 2009
1 answer
100 views
Though it's not a big deal, I'd like to remind you that the documentation of RadTreeView still refers to AfterSelect event, which seems to be marked with an Obsolete attribute.

Please check out the topic "Responding to Mouse Click" and "Responding to Selected Nodes" :).
Victor
Telerik team
 answered on 16 Oct 2009
9 answers
290 views
Telerik team,

I have been looking around on your site and found an old post that specified "Object bound Hierarchy" has not yet been 
implemented. I was wondering if it was added in a recent release, and/or if there was some kinda work around. I am trying to use the grid to create a FileExplorer that looks like the windows FileExplorer but works like the MACs Finder(you can drill down in the directories). Any help on this would be appreciated as I need to get this done and need to know if I should look somewhere else
for this behavior.

Thank you for your time.

Nikolay
Telerik team
 answered on 15 Oct 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
CommandBar
PdfViewer and PdfViewerNavigator
ListControl
Carousel
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
CollapsiblePanel
LayoutControl
ShapedForm
SyntaxEditor
Wizard
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
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?