Telerik Forums
UI for WinForms Forum
4 answers
164 views
I have read you can use this to manually invoke the context menu.

this
.radGridView1.ContextMenuManager.ShowContextMenu(radGridView1.CurrentCell)
)

However, what if you want to display the menu and there are no rows? What do i pass as a parm?

Thanks,

Kim  
Dimitar
Telerik team
 answered on 02 Aug 2013
1 answer
189 views

Hello Telerik !
How to get Selected Index of items from Multi Select RadList View :(

  private void toolstripMenuCopy_Click(object sender, EventArgs e)
        {
            string temp = "";    
            
            for (int i = 0; i < radListView.SelectedItems.Count; i++)          
            {
 
                temp = temp + listItem[radListView.SelectedIndex].ToString() + Environment.NewLine; 
            }           
            Clipboard.SetText(temp);
        }
 
//listItem[] ={ "http://www.picasa.........", ...}


Anton
Telerik team
 answered on 02 Aug 2013
1 answer
271 views

I have a List called “myResults”. When the list contains at least one item, I’m trying to populate a RadGridView w/ info for the list; the GridView is called “gvMyResults”. However, sometimes, during this update of the DataSource, I get an exception saying, “Bounds cannot be changed while locked”, and a red X is displayed across my GridView. I added this Dispatcher wrapper around my update, but I’m still seeing the same error sometimes. It’s difficult to troubleshoot, because it does not happen every time. I've tried fixing this two separate ways, but they both still show the occasional error.  Does anyone know how to stop this “bounds cannot be changed while locked” error?

First attempt to fix this problem:

Dispatcher.CurrentDispatcher.Invoke(DispatcherPriority.Normal, (Action)delegate()
{
    this.gvMyResults.DataSource = myResults;
});


Second attempt to fix this problem:

_Context.Send(x =>
{
    this.gvMyResults.DataSource = myResults;
}, null);
Peter
Telerik team
 answered on 02 Aug 2013
7 answers
132 views
Hello
i am not able to find fast navigation in windows forms in datetimepicker control.
please tell me how can i increase it from 3 months to 12 months
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 02 Aug 2013
7 answers
194 views
Hi,
I wish to insert columns into a hierchy gridview before the glyph column.
Is there any way to configure a hierarchy gridvew to look as in the attached screenshot?

Thanks ahead,
Uri
George
Telerik team
 answered on 02 Aug 2013
2 answers
128 views
I'm using telerik tools version v.2013.1.32120

I want to populate a radGridView from an oracle or sas data table and then set AllowRowReorder = True and allow the user to rearrange the rows however they want locally and then I can handle the database update.  My issue now is that I pull my data down into a C# datatable on the client and then when I set it as the source for my radGridView it will not let me rearrange the data.  How can I change this to be unbound mode to allow the rearranging within the datatable but not on the server table?

using (OracleConnection oraConn = new OracleConnection(sConn))
{
   OracleCommand sasCommand = oraConn.CreateCommand();
   sasCommand.CommandType = CommandType.Text;
   sasCommand.CommandText = sSQL;
 
   OracleDataAdapter da = new OracleDataAdapter(sasCommand);
   DataTable dt = new DataTable();
 
   try
   {
     oraConn.Open();
     da.Fill(dt);
     radGridView1.DataSource = dt;
   }
   catch
   {
   }
  }


Thank you,
Jerry
Top achievements
Rank 1
 answered on 01 Aug 2013
3 answers
150 views
Hi,

I tried implementing File Drag and Drop operations from Windows Explorer to Gridview using Mouse Down and Mouse Up events but it did not
behave as expected.

Please suggest solutions for the following things regarding drag and drop operations of Grid view

1) How to perform drag and drop operations from Grid view to Windows Explorer similar to Drag Enter and Drag Drop events.
Is there any specific event to perform it.

2) How to get the current state of Mouse Buttons (Pressed or Released) when holding a button during drag operations in Mouse Down event

3) How to validate/ handle the Single Click and double click during drag operations.

4) How to terminate the DoDrag Event which is intialized by calling Gridview.DoDragDrop .

Thanks.
Paul
Telerik team
 answered on 01 Aug 2013
2 answers
182 views

Hi All

I have a simple question regarding hierarchical data.

I have one table which I return as a data reader.

id (int)    desc (varchar)    parentid (int)
1            desc 1                NULL
2            desc 2                1    
3            desc 3                2
4            desc 4                NULL
5            desc 5                4

This table is self-referencing, i.e. linked list

I know the tree view can handle this relationship automatically

how can I implement this into the grid? can anyone give me a simple example?

I simply tried

this.radGridView1.Relations.AddSelfReference(this.radGridView1.MasterTemplate, "id", "parentid");


but it doesn't show any results in the table.

Thanks
Peter


Dess | Tech Support Engineer, Principal
Telerik team
 answered on 31 Jul 2013
1 answer
242 views
Using VB.NET 2012, i used this code to display contents of "anyfle.rtf" on the RichTextBox window.
             
               Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
               RichTextBox1.LoadFile("D:\anyfile.rtf", RichTextBoxStreamType.RichText)
               End Sub

but i don't know how to do it using RadRichTextBox.
Please help. Thanks.
Anton
Telerik team
 answered on 31 Jul 2013
7 answers
418 views
I want to have a single Ribbon and when various buttons are pressed, the area below the ribbon changes. Essentially the way MDI works, but I read, here, that the Ribbon should not be used with MDI. Is that true?

What's the best practice for this?

Let's say I want to have a ribbon and then a Carousel in the main area.

Then, when an item in the carousel (or an equivalent in the ribbon) is clicked, a form (or whatever -- a new layout with new content) shows.

I've been experimenting with a RadRibbon form, which does seem to support MDI properties. But, when the child form is maximized (the only state I want) the control box shows, even when I've turned them all off. They don't show when in Restored view, but they do when maximized.
Peter
Telerik team
 answered on 31 Jul 2013
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
Barcode
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Licensing
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
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?