Telerik Forums
UI for WinForms Forum
7 answers
366 views
This has to be simple, but I'm stumped.
I want to drag and drop onto a RadGridView.  I can determine the mouse position of where I have dropped:
    
Dim dropLoc As Point = grdDeliveries.PointToClient(New Point(e.X, e.Y)) 

But I'm stumped as to determine which row this is  as GridDataRowInfo does not give me the row index, or I can't work out how to get it. 

Nor can I work out which part of the row I've dropped on.  (column header, row header, cell, etc.) There is an enumeration 'GridViewHitTestType', but I can't work out how to use it.  HitTest(x,y) just gives true or false.

In other words, what is the equivalent of the Windows DataGridView.HitTestInfo() within the Telerik framework?
Jack
Telerik team
 answered on 22 Feb 2011
7 answers
139 views
it would be very handy if the radMenu builder had some way to move the items around in design mode, rather than saving, go to source, copy/paste items, go back to design, open radMenu Builder again...etc etc
Stefan
Telerik team
 answered on 22 Feb 2011
4 answers
187 views

I would like to change the text of the items

-Close
-Close All But This
-New Horizontal Tab Group
-New Vertical Tab Group

in the context menu of my document panes

I use the DockingManager with automatic MDI child detection enabled.

I just want to change it to another language, the functionality must remain the same.

Also, is it possible to remove the New Horizontal/Vertival Tab Group items?


Regards,
Jill-Connie Lorentsen

Nathaniel
Top achievements
Rank 1
 answered on 21 Feb 2011
13 answers
262 views
Hello, I am running into an odd display issue with a dropdown element in RibbonBar.  I am using the drop down to allow user to select font for text, and showing a preview of the text within drop down directly using the suggested code in following forum post (http://www.telerik.com/community/forums/winforms/ribbonbar/font-in-ribbon-bar.aspx). 

While the text is showing up in the specified fonts, no scroll bar is appearing in the drop down, and the list takes up the entire height of the app.  How can I get the scroll bar to appear, as well as limit the size of the list when drop down button pushed?

(as a side point, is it also possible to set the font size for each list item?  Some of items the text is too small toread clearly...)

Thanks!
Justin
Richard Slade
Top achievements
Rank 2
 answered on 21 Feb 2011
9 answers
387 views
I'm working on a solution wich receives events that represent data from stock exchange.
I receive the data and list the quotes within the radgridview. What I want is to change the backcolor of a cell for around 500ms, to blue, if the price rises, red if it goes down and do nothing if the prices remains the same.
I have read the topics, and conditional formatting is not possible, because i don't have a static value to trigger the color change. Then I tried, as some topics suggest, changing the backcolor of the cell using the CellFormatting Event. However, when the values in the cell change, the event triggered is CellValueChanged, not CellFormatting. I was wondering if there is a way for me to raise the CellFormatting after I receive a CellValueChanged.

Thanks,

Alexandre
Richard Slade
Top achievements
Rank 2
 answered on 21 Feb 2011
5 answers
307 views
HI

I have a Radgridview Which has a ComboBoxColumn---'Account'

The data from database came in this Fashion--  (XXXXXX) XXXXXXXXXXXXX
for e.g -----  (Expence) Computer and Internet Expence
                    (Income) Investment Income

I want to show the data as---

Text within Brackets Should display in Blue color
text outside of Brackets should display in Black color

Suggest me any way to Show this....
Thanks
Richard Slade
Top achievements
Rank 2
 answered on 21 Feb 2011
2 answers
243 views

Dear Telerik team,

we have a RadGridView descendant, that delivers some new properties as shown in code below.
The attached images are to demonstrate the unexplicable behaviour. To generate the hint shown in the statusbar on the bottom of these images we used the following code that already uses our own indexer property:

string hint = HistoryGrid.MouseRow + " / "  +
                           HistoryGrid.MouseColumn + 
             ": IsProcedure = " + ((bool)HistoryGrid[HistoryGrid.MouseRow, "IsProcedure"]);
As seen on ALL images, row and column are always determined correctly, depending on where the mouse was during the screenshot.
(MousePointer not on image).

We use the hierarchy feature, so bold texts indicate that the entry is a procedure, containing child rows.
The status hint indicates that with its text.

While sorting is unchanged, ascending on column "Vom / Am", our indexer gets correct results (Images 1 and 2).
After sorting the same column descending (image 3), the indexer obviously addresses the wrong rows:
Row number is 4 (correct), but IsProcedure = true, incorrect, because row 4 in this sort order IS NOT a procedure.
Looks to us as if the Rows property of the RadGridView addresses the wrong rows after one did some sorting, is that possible?

Thanks to everybody with help on that.
Regards
Ron

Below the code we added to the RadGridView descendant:
internal object this[int rowIndex, string columnName]
{
   get { return (rowIndex >= 0) ? Rows[rowIndex].Cells[columnName].Value : null; }
}
protected override void OnMouseMove(MouseEventArgs e)
{
   base.OnMouseMove(e);
   object currentCell = ElementTree.GetElementAtPoint(e.Location);
   if (currentCell is GridDataCellElement)
   {
      var cell = currentCell as GridDataCellElement;
      MouseRow = cell.RowIndex;
      MouseColumn = cell.ColumnIndex;
   }
   else if (currentCell is GridGroupExpanderCellElement)
   {
      var cell = currentCell as GridGroupExpanderCellElement;
      MouseRow = cell.RowIndex;
      MouseColumn = -1;
   }
   else if (currentCell is GridExpanderItem)
   {
      MouseColumn = -1; 
   }
   else
   {
      MouseRow = -1;
      MouseColumn = -1;
   }
}
Jack
Telerik team
 answered on 21 Feb 2011
6 answers
247 views
When we group any column it displays grouped summary column at the top like the same way i want to display summary row for each child grid view without grouping. Is it possible ? please see the attached image and suggest me. I am evaluating your product If i can do as shown in my image???

using version RadControls for windows Q3 2010
Alexander
Telerik team
 answered on 21 Feb 2011
1 answer
275 views
Can you add a checkbox in a RadCommandBar ? It was possible in RadToolStrip.
Richard Slade
Top achievements
Rank 2
 answered on 21 Feb 2011
5 answers
600 views

hi,

how can i add text to a command button in a radgridview row?

        AddHandler RadGridDocuments.CommandCellClick, AddressOf RadGridDocuments_CommandCellClick
        Dim commandColumn As GridViewCommandColumn = New GridViewCommandColumn()
        commandColumn.HeaderText = "Command"
        commandColumn.Width = 100
        commandColumn.DataField = "PersonID"
        Me.RadGridDocuments.Columns.Add(commandColumn)

thanks, andreas

 

Nicolaï
Top achievements
Rank 2
 answered on 21 Feb 2011
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
Diagram, DiagramRibbonBar, DiagramToolBox
GanttView
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
StatusStrip
CheckedListBox
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
DataEntry
ScrollablePanel
ScrollBar
WaitingBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Barcode
Callout
ColorBox
PictureBox
FilterView
Accessibility
NavigationView
VirtualKeyboard
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
Licensing
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
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?