Telerik Forums
UI for WinForms Forum
2 answers
132 views
How can I do this whit RadGridView:

For i = 0 To DataGridView.Rows.Count() - 1
    DataGridView.Rows(i).Cells(18).ToolTipText = "Target: " & DataGridView.Rows(i).Cells(24).Value
Next

Regrads Jan
Dimitar
Telerik team
 answered on 05 Dec 2014
5 answers
170 views
With the latest release of the telerik controls the Radbutton has a weird UI glitch when the TerliekMetroBlue theme is applied.

Image 1 and Image 2 has the Button enabled at design time and is working as expected.

Image 3 and Image 4 has the Button disabled at design time and is not working as expected.

Justin
Top achievements
Rank 2
 answered on 04 Dec 2014
2 answers
355 views
I just upgraded to Telerik UI for WinForms 2014 from 2010.

I have an application with about 40 grids we build dynamically that have checkbox columns. Many of the tables feeding these grids have NULL values for the bit column. When applying a filter to a grid that has NULL values in the CheckBox column I get an error. If I modify my query using ISNULL(fieldname, 0) AS fieldname I am able to filter, but I can no longer update the bit field for that CheckBox column because it is now aliased.

Before the upgrade the filtering worked even if there were NULL values. What can I do to get both filtering and update capability on CheckBox columns that reference a bit column that contains NULL values. The underlying data cannot be changed to eliminate NULL values because a NULL represents a state other than true or false when handling data in our stored procedures.

This is the code used to create the CheckBox columns:

ElseIf objTab.Columns(i).DataType.Name = "Boolean" Then
Dim col As GridViewCheckBoxColumn = New GridViewCheckBoxColumn
col.Name = colname
col.FieldName = colname
col.HeaderText = colname
col.ReadOnly = Not (pCanWrite)
objGrd.Columns.Add(col)
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 04 Dec 2014
2 answers
342 views
I have a GridView that is bound to a binding list

BindingList<DataElementMap> DataElementMaps { get; set; }

mappingsGridView.DataSource = DataElementMaps;

I am adding a menu item to the Context Menu using the following

 private void mappingsGridView_ContextMenuOpening(object sender, ContextMenuOpeningEventArgs e)
{
                
if (!e.ContextMenu.Items.Contains(_ceateTransformationMenuItem))
                {
                    e.ContextMenu.Items.AddRange(_ceateTransformationMenuItem);
                }
}

This works fine until I clear the data bound list.  (i.e. DataElementMaps.Clear(); ) 

After a clear is executed the above code throws the following exception
System.ArgumentException occurred
  Message=Cannot remove the specified item because it was not found in the specified Collection.
  Source=mscorlib
  StackTrace:
       at System.Collections.CollectionBase.System.Collections.IList.Remove(Object value)
       at Telerik.WinControls.RadElementCollection.CheckElementAlreadyAdded(RadElement element)
       at Telerik.WinControls.RadElementCollection.OnInsert(Int32 index, Object value)
       at System.Collections.CollectionBase.System.Collections.IList.Insert(Int32 index, Object value)
       at Telerik.WinControls.RadItemOwnerCollection.OnInsertComplete(Int32 index, Object value)
       at System.Collections.CollectionBase.System.Collections.IList.Add(Object value)
       at Telerik.WinControls.RadItemCollection.AddRange(RadItem[] value)



Dimitar
Telerik team
 answered on 04 Dec 2014
5 answers
140 views
I'm having an issue with the GridView. I'd like to be able to dynamically make appear the AddNewRow control. By default I set the  AllowAddNewRow=false, but if the user clicks on  The "Add New Row" menu item, I'd like for the NewRow control to appear on the grid, after I set the AllowAddNewRow=true. But I can not find a way to redraw or reload the entire grid for it to appear. Is this even possible?

The gridview is on a form, do I have to reload the whole form for this work?

I am using version 2014.2.715.40.

Thanks for the help

P.S. A little sample of the method called dynamically:

public void New()
{
 radGridPilotage.MasterTemplate.BeginUpdate();
 radGridPilotage.AllowEditRow = true;
 radGridPilotage.MasterTemplate.AllowAddNewRow = true;
 radGridPilotage.MasterTemplate.EndUpdate();
 radGridPilotage.Update();
}
Dimitar
Telerik team
 answered on 04 Dec 2014
4 answers
1.0K+ views
Hi,
I am using textbox and in its double click event i am doing something,
but when i click in side the box area double click event is not working,But when i click on border of textbox double click event is
working properly.
                  Is there any way  to fire double click event when i double click on the text area i.e. in side the text box.
                                                                         

Stefan
Telerik team
 answered on 04 Dec 2014
6 answers
175 views
I am capturing scroll events (via gvLibrary.TableElement.VScrollBar.Scroll += this.gvLibrary_Scroll;) so that I can call a method on a lazy-loader class to update records in my buffer.  It's designed so that the 100,000+ records won't have to load all at once, but instead we load just a few pages of data at a time.  Each time the scroll is CLICKED, I am successfully able to trap the event and update my lazy-loaded queue.  However, if I drag the scroll bar, the event does not appear to fire.  Is there another event that I can use to handle when the scroll thumb is dragged?

Thank you,

VSmirk
Stefan
Telerik team
 answered on 04 Dec 2014
2 answers
130 views
Hi all,
I've set the OptionsButton Visibility to Collapsed

ribbonBar.RibbonBarElement.OptionsButton.Visibility = ElementVisibility.Collapsed;

and indeed I don't see the small button appearing in the footer of the StartMenu but for some reason I see a default RadMenuItem appearing on the left column of the StartMenu with the text "Options <application name>".
I have also tried (with no luck)     
ribbonBar.OptionsButton.Visibility = ElementVisibility.Collapsed;

Thank you
Dimitar
Telerik team
 answered on 04 Dec 2014
1 answer
221 views
Hi,
I hope I'll get a reply this time (this will be my third post with no answer)

I was trying to use ExampleForms, I copied the source code of "Grouping" form into my project, it was loaded just fine.
But how to initiate the form? there is no ShowDialog method, and the show does not really show the form, so what should I do?

        Dim form1 As New Form1
        'form1.StartPosition = FormStartPosition.CenterScreen
        'form1.ShowDialog()
        form1.Show()
This is the code I used, where Form1 is a form inheriting ExamplesForm (Grouping form found in QuickStart)

Please reply ASAP.
Thank you,
Saleem.
Dimitar
Telerik team
 answered on 04 Dec 2014
6 answers
303 views


     
private void myGrid_CommandCellClick(object sender, EventArgs e) 
      { 
         GridCommandCellElement gCommand = (sender as GridCommandCellElement); 
 
         if( gCommand.ColumnIndex == 11 ) 
             // code..
      } 
 

Simple question - I have two command buttons and wondered if it's possible to get the unique name from within the event?! can only find the column index number.    gCommand.Name returns ""

Cheers
  Ewart.

Support@silverbear.com
Top achievements
Rank 1
 answered on 03 Dec 2014
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?