Telerik Forums
UI for WinForms Forum
2 answers
249 views
Hi 

I have read in the documentation here: http://www.telerik.com/help/winforms/gridview-rows-summary-rows.html that summary rows can be pinned, but I cannot get this to work. Whenever I scroll down, the row disappears from view. Is there any property I should be setting to make this happen?

regards
Steve
Steve
Top achievements
Rank 1
 answered on 03 Oct 2011
1 answer
237 views
Hello all,

I have a custom radtextbox class called PosNegTB. Now i want to set the inital text value of that class to "0.00", this is the code i have for it:

public sub new
mybase.new
mybase.text = "0.00"

end sub

but when i add this class onto my main form the text inside it is "PosNegTB". What am i doing wrong? Plz help.


Thank you in advance
Ivan Petrov
Telerik team
 answered on 03 Oct 2011
2 answers
217 views
Hi Guys,
I have a GridViewTexboxColumn that displays Gender ( either M or F ) and I want to change it into GridViewComboBox that has 2 items, Male and Female
Thanks in advance.

Ivan Petrov
Telerik team
 answered on 03 Oct 2011
3 answers
518 views

I'm using the standard RadGridVeiw events to set various cell states such as enabled.  Everything works fine as long as the grid doesn't have a scroll bar.  Here is the code.

I'm finding that on this line

 

 

if (row.Cells[e.ColumnIndex].CellElement != null)  CellElement is null and is that last row in view when the grid loads.  So my code below only works for rows in view.

Let me state exactly what I'm trying to do. If nothing  else please help me find the correct solution.
I have a Winforms RadGridView table with GridViewCheckBoxes in a column.  When a user selects a checkbox in a row i want all the rest of the checkboxes in the other rows to be disabled.  When the user unchecks the checkboxed row I want all checkboxes in other rows to be enabled.
  It's simple, only one checkbox in a row can be selected.

 



 

 

public bool HandleCellValueChanged(RadGridView matrixRadGrid, GridViewCellEventArgs e, MatrixPickerPresenter matrixPresenter, RadGridView measureGrid)

 

{
 

bool IsValidSelection = false;

 

 

 

if (reportType == CustomReportTypes.Matrix || reportType == CustomReportTypes.MatrixRowWithHistory || reportType == CustomReportTypes.MatrixWithHistory)

 

{

 

 

if (e.Column.HeaderText == "Selected")

 

{

measureGrid.DataSource =

 

null;

 

 

 

if (matrixPresenter.Measures.Count > 0)

 

{

measureGrid.Enabled =

 

true;

 

measureGrid.DataSource = matrixPresenter.Measures;

 

 

try

 

{

 

 

var displayRow =

 

measureGrid.Rows.Where(row => ((

 

ReportMeasure)row.DataBoundItem).IsDisplayMeasure).FirstOrDefault();

 

 

 

if (displayRow != null)

 

{

 

 

// The Display Measure must be in view for the RowFormatting event to fire and the user needs to know what the Display Measure is at the start.

 

measureGrid.GridElement.ScrollToRow(displayRow);

}

}

 

 

catch

 

{

 

 

// Do nothing: No need to end the world just because the Display Measure isn't in view.

 

;

}

 

}

 

 

else

 

{

measureGrid.Enabled =

 

false;

 

}

IsValidSelection = measureGrid.Enabled;

 

 

var selectedReportItem = e.Row.DataBoundItem as ReportMatrix;

 

 

 

if (selectedReportItem != null)

 

{

 

 

bool enableOtherSelectedCheckboxes = true;

 

 

 

if (selectedReportItem.Selected)

 

{

enableOtherSelectedCheckboxes =

 

false;

 

IsValidSelection =

 

true;

 

}

 

 

 

for (int index = 0; index < matrixRadGrid.Rows.Count; index++)

 

{

 

 

var row = matrixRadGrid.Rows[index];

 

 

 

 

if (e.RowIndex == index)

 

{

 

 

if (!selectedReportItem.Selected)

 

{

selectedReportItem.MatrixParameter = (

 

int)MatrixParameterTypes.None;

 

e.Row.Cells[e.ColumnIndex + 1].Value = (

 

int)MatrixParameterTypes.None;

 

}

 

 

 

continue;

 

}

matrixRadGrid.GridElement.ScrollToRow(row);

 

 

if (row.Cells[e.ColumnIndex].CellElement != null)

 

{

row.Cells[e.ColumnIndex].CellElement.Enabled = enableOtherSelectedCheckboxes;

}

}

}

}

 

 

else if (e.Column.HeaderText == "Runtime Parameter")

 

{

 

 

bool setEnabled = true;

 

 

 

var reportMatrix = e.Row.DataBoundItem as ReportMatrix;

 

 

 

if (reportMatrix != null && reportMatrix.Selected)

 

{

setEnabled =

 

false;

 

IsValidSelection =

 

true;

 

measureGrid.Enabled =

 

true;

 

}

 

 

for (int index = 0; index < matrixRadGrid.Rows.Count; index++)

 

{

 

 

var row = matrixRadGrid.Rows[index];

 

 

 

if (e.RowIndex == index)

 

{

 

 

continue;

 

}

row.Cells[e.ColumnIndex].CellElement.Enabled = setEnabled;

}

}

}

 

 

return IsValidSelection;

 

}

}

Ivan Todorov
Telerik team
 answered on 03 Oct 2011
2 answers
563 views
I have an application with 3 GridViews bound to 3 datatables.  I use a single VB subroutine with the GridView as an argument to write changes in these datatables to an Oracle database.  In this subroutine, after the database has been updated, I call RadGridView.DataSource.AcceptChanges to reset all the data row states.  My problem is this:

In a GridView with, let's say 500 rows, I select row 250 and position it in the middle of the displayed rows.  After the save routine completes and RadGridView.DataSource.AcceptChanges is called, the GridView refreshes and the selected row is now displayed at the top of the GridView.  This behavior disrupts the users' workflow.  Is there any way I can suppress this refresh?

Thanks,
Robert S.
Jack
Telerik team
 answered on 03 Oct 2011
2 answers
239 views
Hello Guys

As you can see the attached file, I have a gridview with 4 hierarchical views, I need that when the user click one of the tabs of the hierarchical view, and other row is expanded the selected tab view will be the previous selected. And if more of 1 row is expanded and the user change the  hierarchical view, in all the expanded rows change the selected tab view to the selected for the user.

 I tried to make it with the RadGridView1_ChildViewExpanding Event but i didnt find the Select Tab Property,
 in the hirarchical view




Private Sub RadGridView1_ChildViewExpanding(ByVal sender As System.Object, ByVal e As Telerik.WinControls.UI.ChildViewExpandingEventArgs) Handles RadGridView1.ChildViewExpanding
        'RadGridView1.Templates.GetTemplateByCaption(e.ParentRow.ActiveView.ViewTemplate.Caption)
        Dim stemplate As String
        If e.IsExpanded = False Then
            For Each row As GridViewRowInfo In RadGridView1.Rows
                If (row.IsExpanded = True) Then
                    stemplate = DirectCast(row, Telerik.WinControls.UI.GridViewHierarchyRowInfo).ActiveView.ViewTemplate.Caption
                    Exit For
                End If
            Next
 
        End If
 
    End Sub
Cesar
Top achievements
Rank 1
 answered on 03 Oct 2011
1 answer
154 views
I am using a GridViewMaskBoxColumn for formatted string entry, because I am working with an existing data store that contains text entries. I would like to save the fully formatted value, not just the entered characters .

Am I able to bind the column so that the Text property of the cell editor is saved to the data store instead of the Value property. It would be the difference between storing :
masked Value : 1234567890
masked Text :    12-34-567-89-W0

Here is the columns Designer code.
gridViewMaskBoxColumn1.FieldName = "LSD";
gridViewMaskBoxColumn1.HeaderText = "ll-ss-ttt-rr-mm";
gridViewMaskBoxColumn1.Mask = "00\\-00\\-000\\-00\\-\\W0";
gridViewMaskBoxColumn1.MaskType = Telerik.WinControls.UI.MaskType.Standard;
gridViewMaskBoxColumn1.Name = "LSDM";
gridViewMaskBoxColumn1.Width = 120;
Peter
Telerik team
 answered on 30 Sep 2011
1 answer
63 views
Good morning everyone,

I have a project that uses Telerik WinForm controlls and the version is 2010.2.10.0914 and it works perfectly.  It compiles and runs.  I recently upgraded to the latest telerik winform controls 2011.2.11.0831 and i am getting compile errors where the project is trying to look for the RadSelectedNodesCollection class.  It doesn't seem to be available in the dlls i am using in the project.

The dlls i'm using are:

Telerik.WinControls
Telerik.WinControls.GridView
Telerik.WinControls.UI
TelerikCommon

I was looking in the documentation as well and this class is not in there either.

Has this class been renamed in the latest telerik winform controls???

thank you very much for all your help

sam
Jack
Telerik team
 answered on 30 Sep 2011
1 answer
260 views
I have a light blue button in my application and would like to add text to the button in a different, but also light, color.  As it stands now it's totally unreadable.  If there was a way to add a black outline around the font that would make it pop out and be easily readable, but I have no idea if this is possible.  I see that I can add a border around the label itself, but what I want is a border around each letter.  Is this possible?
Ivan Petrov
Telerik team
 answered on 30 Sep 2011
8 answers
763 views
I have a GridViewDecimalColumn that I'm using to store integers entered by the user.  I set the DataType property equal to GetType(Integer) (I'm using VB.NET).  When a user enters a value such as 24.8, it automatically gets rounded up to 25.  If they enter 24.2, obviously it gets rounded down to 24.  The users shouldn't be entering decimal numbers, but I've heard that they have been and they don't ever want the numbers to round up.

My question is this:  How can I force the value to always round down, so that 24.8 will be changed to 24?  I know I can use a cell value change event, but I was hoping there was some property in the GridViewDecimalColumn that could be set to handle this.

Thanks,
Robert S.
Alexander
Telerik team
 answered on 30 Sep 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
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
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?