Telerik Forums
UI for WinForms Forum
4 answers
1.4K+ views
hi! how can i get the column name of the current cell in the radgridview?
RadGridView1 is the name of my datagrid.
these doesn't work:

RadGridView1.CurrentCell.Column.ToString();
RadGridView1.CurrentCellInfo.Column.ToString();
RadGridView1.CurrentColumn.ToString();



Stefan
Telerik team
 answered on 02 Nov 2015
2 answers
230 views

Hello,

 I am dynamically creating a RadDropDownList and I add a handler to the KeyDown event. When this event gets called the sender is a RadDropDownListElement. How can I find the RadDropDownList that the element belongs to? I've tried the obvious properties like "parent" (It is a RadElement) with no luck.

 Thanks!

David
Top achievements
Rank 1
 answered on 02 Nov 2015
3 answers
94 views

Hi,

 I want to Display all the items  binded to Autocompletetextbox (expanded) the moment we get the focus of the radAutocompletetextbox and apply filter as and when user starts typing characters.

 Filtering is happening when the user starts typing but first pat is not working.

 

Any help is appreciated.

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 02 Nov 2015
3 answers
164 views
Hello,

When user drags a toolbar from the command bar and make it "float" a blank space statys where te toolbar used to be dock. How do I make this blank space automatically disapear then user drag and "fload" a toolbar?

Thank you!
Stefan
Telerik team
 answered on 02 Nov 2015
3 answers
123 views

Hi, 

There's a graphical problem with RadPageView Q1 2015.

I tested it on a new project (cf screenshot)

When on ExplorerBar mode, you have more than 1 Page and use scroll button of your mouse, the component blinks.

Happens too if your scrollvalue=0 and you move up and scrollvalue=max and you move down.

 

Hristo
Telerik team
 answered on 30 Oct 2015
4 answers
570 views

So I know how to return any value using the CurrentRow. Let's say a user has one row selected, and they right-click on a different row, I need to retrieve the value from that row. I've been looking at CurrentRowChanging & Changed as I suspect I need to capture the value there. I think my issue is the value being returned now is the value from the previously selected row and I'm not aware of the event trigger hierarchy.

 Any help? Thanks

Dimitar
Telerik team
 answered on 30 Oct 2015
1 answer
100 views

I'm trying to create GridViewComboBoxColumn that works like a RadComboBox with the CheckBoxes property set to True.

Reading through this post, I cannot find the RadGridView_RowLoaded event. 

Under the section "Customize the DropDownListEditor in GridViewComboBoxColumn​" in this post, would I do something like that to create CheckBoxes? From this example, it looks like it would affect all GridViewComboBoxColumns. How would I make it only affect the specific column?

Dimitar
Telerik team
 answered on 29 Oct 2015
11 answers
2.3K+ views

Hi,

 

When i try and refresh the grid's datasource after deleting a row, i get the following error:

A first chance exception of type 'System.ArgumentOutOfRangeException' occurred in mscorlib.dll
Additional information: Index was out of range. Must be non-negative and less than the size of the collection.

Telerik version: 2015.3.930.40
Framework version: 4.0
Operating system: Windows 10 

 

Here is the refresh code:

        private void RefreshGrid()
        {

            if (legalsManager == null)
            {
                if (_model.DocumentId.HasValue)
                {
                    legalsManager = new DocumentLegalsManager(_model.DocumentId.Value);
                    grdLegals.DataSource = legalsManager.Details;
                    return;
                }

            }
            else
            {
                legalsManager.Refresh();
            }

            if (legalsManager == null)
                return;

            grdLegals.BeginUpdate();
            grdLegals.DataSource = null;
            grdLegals.DataSource = legalsManager.Details;
            grdLegals.EndUpdate();

        }


Stack Trace:

   at System.ThrowHelper.ThrowArgumentOutOfRangeException()
   at Telerik.WinControls.Data.RadDataView`1.SyncCurrent(TDataItem item)
   at Telerik.WinControls.Data.RadDataView`1.RebuildData(Boolean notify)
   at Telerik.WinControls.Data.RadDataView`1.RefreshOverride()
   at Telerik.WinControls.Data.RadDataView`1.ProcessCollectionChanged(NotifyCollectionChangedEventArgs args)
   at Telerik.WinControls.Data.RadCollectionView`1.source_CollectionChanged(Object sender, NotifyCollectionChangedEventArgs e)
   at Telerik.WinControls.Data.NotifyCollectionChangedEventHandler.Invoke(Object sender, NotifyCollectionChangedEventArgs e)
   at Telerik.WinControls.Data.RadListSource`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
   at Telerik.WinControls.Data.RadListSource`1.EndUpdate(Boolean notifyUpdates)
   at Telerik.WinControls.UI.GridViewTemplate.EndUpdate(Boolean notify, DataViewChangedEventArgs e)
   at Telerik.WinControls.UI.MasterGridViewTemplate.EndUpdate(Boolean notify, DataViewChangedEventArgs e)
   at Telerik.WinControls.UI.GridViewTemplate.EndUpdate()
   at Telerik.WinControls.UI.RadGridView.EndUpdate()
   at DeedMagic.Modules.ucDataEntry.RefreshGrid()

It works fine if i add a row, it only happens when i try to delete one. I thought maybe it had to do with the selected rows, so i tried clearing them out but i still get the error. Any suggestions?

 

Thanks


Hristo
Telerik team
 answered on 29 Oct 2015
13 answers
379 views
Hi,

I noticed I have those package load failures repeated at least once during the loading of Visual Studio 2008. That's the first load after the installation of Q2 2012 release.

I'm not sure whether this is related. But I'm not sure what need to be done.

When I'm prompted for whether to disable loading of package, I just clicked No, so every time they will prompt me the same errors multiple times when I restart my Visual Studio 2008.

I also noticed that the Q2 release still crash Visual 2008 (even though it's not running) and require me to send crash reports to Microsoft. Maybe Telerik need to look into this (but I'm running an older version of OS, Windows XP SP3). I'm not sure whether the latest installers are compatible with Windows XP or not. Hopefully Telerik will solve this installer issues in the next release or minor release.

Thank you.

Regards,
Jenson
Momchil
Telerik team
 answered on 29 Oct 2015
2 answers
322 views

I'm trying to programmatically add a tab to the Ribbonbar at runtime. It all works fine when the Ribbonbar is expanded. But when I add a tab to a collapsed Ribbonbar the new tab is not visible until I click the button to expand the Ribbonbar again. Here are the steps to reproduce:

1.Create a new Visual C# -> Telerik Windows Forms Application

2.Drag a RadRibbonBar control onto RadForm1

3.Create a single tab "First Tab" (otherwise you cannot collapse the ribbon)

4.Drag a button onto the form and add the following code to the click event handler:

RibbonTab tab = new RibbonTab("Test");
this.radRibbonBar1.CommandTabs.Add(tab);
tab.IsSelected = true;

5.You should end up with something like the attached png file.

6.Run the project and click the button. You should see the new tab is created and selected.

7.Close the project and run it again. This time collapse the ribbon before clicking the button. No new tab is visible on the ribbon. Even if you click on the [First Tab] to show the full ribbon.

8.Click the expand ribbon button on the right and the new tab will then appear.

I've tried adding lines like Application.DoEvents() or this.Refresh() or this.radRibbonBar1.Refresh() but it doesn't make a difference.

Any help would be much appreciated.

Thanks,

John

John
Top achievements
Rank 1
 answered on 29 Oct 2015
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
Documentation
SplitContainer
Map
DesktopAlert
CheckedDropDownList
ProgressBar
TrackBar
MessageBox
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
CollapsiblePanel
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
Styling
Barcode
PopupEditor
RibbonForm
TaskBoard
Callout
NavigationView
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Security
LocalizationProvider
Dictionary
SplashScreen
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?