Telerik Forums
UI for WinForms Forum
3 answers
195 views
Hello, 
I have looked and see that some people report that the isvisible property is true or false depending on whether the row is filtered.
I don't find this in my project.

I have a gridview that is bound to a datatable.
When the user filters the rows, we want to be able to iterate over the unfiltered rows and update a value in a cell.

Whenever I iterate over the gridview.rows collection, the gridviewrowinfo.isvisible is always true, regardless of filter state.

Can anyone point me to what I'm doing wrong?

Here is a snipit of code
Dim mCellPos As Integer = rgvItemsAndProps.CurrentCell.ColumnIndex
            rgvItemsAndProps.BeginEdit()
            For Each gr As GridViewRowInfo In rgvItemsAndProps.Rows
                Dim y As String = gr.Cells(2).Value
                If gr.IsVisible = True Then
                    gr.Cells(mCellPos).Value = _ItemPropGridClipboard
                End If
            Next
            rgvItemsAndProps.EndEdit()
        End If



Richard Slade
Top achievements
Rank 2
 answered on 24 Feb 2011
15 answers
698 views
According to the documentation for the GridView control (v2010.3.10.1215):

Gets or sets the name data source property or database column to which the is bound. 

Gets or sets a string value representing the column's unique name in the Columns collection of the .  


However, the code below does not display the value for SQL field "ProjectTitle"

        GridViewTextBoxColumn1.FieldName = "ProjectTitle"
        GridViewTextBoxColumn1.HeaderText = "Title"
        GridViewTextBoxColumn1.Name = "Title"

Instead, I have to set the property Name to the SQL field. The property FieldName can be anything.

GridViewTextBoxColumn1.FieldName = "Foobar"
        GridViewTextBoxColumn1.HeaderText = "Title"
        GridViewTextBoxColumn1.Name = "ProjectTitle"


Can someone explain to me which is correct?  

By the way, I am binding to a SQLDataReader and AutoGenerateColumns is false.

Richard Slade
Top achievements
Rank 2
 answered on 23 Feb 2011
9 answers
332 views
Hello,

I have some code that worked up until Q2 2010 SP1, which no longer works in Q3 2010. RadGridView.Rows.Add(...) used to return the row index of the added row, but in Q3 2010 it returns -1.

I have a hierarchical GridView and the following code:

private void SetupRadGridviewRelation()
{
    GridViewRelation selfRelation = new GridViewRelation(this.radGridView1.MasterTemplate, this.radGridView1.MasterTemplate);
    selfRelation.ParentColumnNames.Add("IdCol");
    selfRelation.ChildColumnNames.Add("ParentIdCol");
    this.radGridView1.Relations.Add(selfRelation);
}
 public void LoadVariables
 {  
    foreach (var varModel in list)
    {
        var rowNum = radGridView1.Rows.Add(varModel.Id, varModel.ParentId, varModel.VarName, varModel.VarValue, varModel.VarUnits);
        radGridView1.Rows[rowNum].Tag = varModel;
    }
 }


Does anybody know of a solution. Is this a bug in Q3 2010?

Thanks.
Richard Slade
Top achievements
Rank 2
 answered on 23 Feb 2011
7 answers
342 views

Hello

I was looking for a way to set the active (default) child template in hierarchical radGridView programmatically.

but I could not find any property to set that.

Is there a way to do that?

hosein
Top achievements
Rank 1
 answered on 23 Feb 2011
5 answers
328 views
Good morning, i am having an odd problem when adding documentwindows to my radDock.
When i add a new tab, the tab allways open in the first position(left) of the first tab of my raddock, i have tried to change the position from "InFront" to "OnBack" but nothing changes. I use the radDock.AddDocument(documentWindow) method.

I want to know how i can make my tabs to open in the last position of the tabcontainer in my raddock instead of the first position.

Hope you can help me, best regards
Rui Silva
Richard Slade
Top achievements
Rank 2
 answered on 23 Feb 2011
3 answers
116 views
Problem with setting sort order. Please see following video: http://www.mjnet.si/SortOrder.avi
Richard Slade
Top achievements
Rank 2
 answered on 23 Feb 2011
14 answers
281 views
Hi All,

         Actually i am new to telerik controls. Am using c#. My senario is - I have a radgridview. Inside that first column and second column are comboxcolumns. Users are allowed to add rows to gridview. And then click save button to save all the rows into database. Once i select the project from my first combo column all the tasks based on that project should get binded in second combocolumn of that radgrid. I am able to bind the second column based on the first column selected value. However, My problem is- Once i go to 2nd row in the gridview. the first row's secondcolumn which i already selected goes blank. And 2nd rows value is visble. When i move to 3rd row, the first 2 rows selected value in 2nd column goes blank. I mean at a time only one row value is visible for 2nd column. Anyone kindly provide me with the solution.
Richard Slade
Top achievements
Rank 2
 answered on 23 Feb 2011
3 answers
235 views

Hello!

Mouse-wheel changes the value of read-only RadSpinEditor.

It seems this is a bug.

Thank you.

George Saveliev
Top achievements
Rank 1
 answered on 23 Feb 2011
8 answers
250 views
Hi everyone,

I have looked throught many of the forum posts and other documentations pages to see if there is a known solution to my problem... I did not find anything, but that does not mean that I did not overlook it. Anyway... I'm relatively new to the programming world and I am currently taking some programming classes as Lone Star's Montgomery College, where, in one of my assignments, I am to use the Telerik Rad Controls for Windows Forms.  I downloaded and installed the trial software, but now that I have, I cannot create a new project in Visual Studio 2008.  At first I thought that it would be a simple fix by just uninstalling and reinstalling, but I still cannot create a project, nor can I even open any of my old projects.  When I try and open an old project, I simply get the error, "Unable to read the project file 'projectx.csproj'."  If I try and create a new project, it acts like it is going to, but in the status bar at the bottom of the VS window, it says, "Creating project 'WindowsFormsApplication1'... project creation failed."  I have a feeling that this is going to lead to me reinstalling VS but I'd like to avoid that if possible.  Has anyone ever experienced this before or have a possible solution to help me out... unfortunately my assignments are due on a fairly strict deadline so the sooner I could get some help, the better... really, I'd just appreciate any kind of help at this point.

Thanks in advance,

C Jordan
Stefan
Telerik team
 answered on 23 Feb 2011
6 answers
494 views
I have RadLabel with the followng code:

lblInfo.Text =

"<html><span><a href=" + url + ">Getting Started Guide</a></span></html>"
I have to problems:
1. The url is pointong to pdf file. If pdf file is not installed it does not give any error, link just does not work without any indication that it attempted to open the file.
2. The of the link is 3 words with spaces. They are shown three separate links. The screenshot is attached.
Thank you
Lily

 

Peter
Telerik team
 answered on 23 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
PdfViewer and PdfViewerNavigator
CommandBar
ListControl
Carousel
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
Label
AutoCompleteBox
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
SyntaxEditor
Wizard
CollapsiblePanel
LayoutControl
ShapedForm
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
SmartPasteButton
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?