Telerik Forums
UI for WinForms Forum
2 answers
256 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
265 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
290 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
620 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
7 answers
145 views

I’m having problem with grid view edit functionality.

I’m trying to implement edit in  a popup window. When I select a row for edit, it is giving some other row information in edit screen.

Do I need to pass the Row index or something like that to the popup?

Stefan
Telerik team
 answered on 21 Feb 2011
10 answers
428 views
I've got a radgridview control hosted in a winforms application that is bound to a datatable via: "radGridView1.DataSource = dataTable". The property ShowFilteringRow is set to true, but when the data is shown - no filtering row appears.

How can I get the filtering row to show the radgridview is bound to a datasource.

And before it is suggested, yes I could filter the data before the datatable is bound, but there could be literally thousands or records in the table and the user may want to filter the information further once the information is displayed. An example, I pull information from a vendor table for the state of Idaho (1000 records).... once the information is displayed the user wants to filter by Boise (250 records). They may want to filter further based on a value in another column that may take the count down from 250 to 10 records. You get the idea.

Yes they can use the column ordering values, but that doesn't work. The idea later is to export the information to XML based on the filtered selection explained above.

Thank you in advance for your assistance.
Dave Galligher
Top achievements
Rank 2
 answered on 20 Feb 2011
4 answers
165 views
I am evaluating the Telerik winform controls, and have special interest in the GridView. In evaluating, I am using the RowFormatting event to change the font of the row on all even rows (to look at performance and usability). I have a very simple datasource with 1000 records. I have to admit that so far I have been impressed with the ease of handling when it comes to the grid and it's properties.

Then I came upon the RowFormatting event. Works awesome!... until I have to scroll. Then it goes haywire and ends up applying the formatting to every row. How do I fix this... or how do I apply my formatting correctly? My code is very simple:

private void _billGrid_RowFormatting(object sender, Telerik.WinControls.UI.RowFormattingEventArgs e)
{
       if (e.RowElement.RowInfo.Index % 2 == 0)
       {
           e.RowElement.Font = new Font("Tahoma", 14, FontStyle.Bold);
       }
}
Richard Slade
Top achievements
Rank 2
 answered on 18 Feb 2011
3 answers
160 views
Hello -

I've searched the forums and found discussions with a similar issue to mine... but the solutions don't seem to work for me. I created a new VS2010 project, added a radribbon form, dragged an office 2010 theme onto the form, set the ribbonbar theme to office 2010, and I get the content as attached to this post in 1.jpg (in the IDE).

At runtime, I get what's attached in 2.jpg.

Any ideas?

(I'm running VS2010 on Vista 64 bit, radcontrols for winforms Q3 2010).

Thanks
Matt










Richard Slade
Top achievements
Rank 2
 answered on 18 Feb 2011
3 answers
276 views

hi everyone,

I guess this question is more for the telerik.com guys....I once registered for the VisualStudio 2008 Express Edition and on the registration benefits page was a telerik rad ribbon for winforms control. Unfortunately I cannot seem to find the license terms for that control nor can I access the page to download it again. Can anyone provide me with a copy of the license terms for VS2008 Express Edition for that control? Also, does it apply for VisualStudio 2010 Express Edition?

regards,

Denis R.

Vassil Petev
Telerik team
 answered on 18 Feb 2011
1 answer
256 views
What value do I need to put in the FormatString textbox of the GridViewDataColumn Collection editor to make the output column a short date string?

My data source is a SQL Date type, not DateTime.  I've tried "{0:d}", "{0:dd-MM-yy}" but nothing seems to work.

My date still displays as "MM/DD/YY 00:00:00"

Any suggestions?
Stefan
Telerik team
 answered on 18 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)
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
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?