Telerik Forums
UI for WinForms Forum
2 answers
120 views
Hello,

I am using the RowFormatting event to set an image to the GridRowHeaderCellElement. This is working. However when a user hovers the mouse over the header cell, the image gets removed, and it will only get reset if he clicks a row again.

Here is the code I use for RowFormatting:

void RowFormatting_ImageChanging(object sender, Telerik.WinControls.UI.RowFormattingEventArgs e) 
        { 
            GridRowHeaderCellElement grhce = e.RowElement.Children[0] as GridRowHeaderCellElement; 
 
            if (grhce != null
            { 
                GridViewEditableEntry aa = e.RowElement.RowInfo.DataBoundItem as GridViewEditableEntry; 
                if (aa != null
                { 
                    if (aa.Changed) 
                        grhce.Image = myimage1; 
                    else if (aa.IsEditable) 
                        grhce.Image = myimage2; 
                    else if (!aa.IsEditable) 
                        grhce.Image = myimage3; 
                } 
                else 
                { 
                    grhce.Image = null
                } 
            } 
        } 

How can I prevent the header cell image to get reset?
Peter Luth
Top achievements
Rank 1
 answered on 17 Feb 2009
2 answers
344 views
Hi whenever I 'reset' a RadGridView to see the latest data, I get duplicate rows by filling again. My RadGridview is filled dynamically. An help would be appreciated.

 

 

 

If DBConn.ConnectionString <> "" Then

 

 

 

 

 

daDataAdapter =

New SqlDataAdapter(CurrentBeo.sCurrentSql, DBConn)

 

daDataAdapter.Fill(DSData, CurrentBeo.sTableToUpdate)

bsMaintenance.DataSource = DSData

bsMaintenance.DataMember = CurrentBeo.sTableToUpdate

grdMain.DataSource = bsMaintenance

bnMain.BindingSource = bsMaintenance

 

End If

 

Derek
Top achievements
Rank 1
 answered on 17 Feb 2009
2 answers
159 views
Hello experts!

I have a GridView, with a column that is filtered like this:

protected override void OnLoad(EventArgs e)
{
     base.OnLoad(e);
     ..............
     gridview1.DataSource = data;
    
     string fString = "filter";
     FilterExpression filter = new FilterExpression(FilterExpression.BinaryOperation.AND, GridKnownFunction.Contains, fString.ToString());
     gridview1.Columns["filtered_column"].Filter = filter;
     ...............
}

It works fine, but when I try to set the No Filter option to that column, it does nothing. It's supposed to show all the rows, but it still shows the filtered ones.

How I can solve this?

Thanks for your help!
itWorks itWorks
Top achievements
Rank 1
 answered on 16 Feb 2009
0 answers
163 views
hi!

I have styled radComboBox using Aqua theme, but I notice something. When I click on open dropdown button first time, combo shows a dropdown list under it but not shows shadow around it, some times dropdown list is bigger than radcombobox width size; at second time when dropdown list is displayed, shadows is shown and dropdown list is width sized like radcombobox width size.

Thanks for your help about this
Aldemar
Top achievements
Rank 1
 asked on 16 Feb 2009
1 answer
122 views
Hello experts!

I have a main window that is a shapedform, that uses panels, buttons, treeviews, etc ... all of them are your controls.
I also have a custom message box, that is a shapedform as well.

When the message box is closed all the application flickers, and you also can see the applications that are behind (messenger for example) for a short moment.

I've read a lot of information about flickering here. Is this solved? Any workaround?

Please help! The users are complaining about this disturbing behavior.
Nick
Telerik team
 answered on 16 Feb 2009
7 answers
300 views
Hi,

When a CellClick Event gets fired, I want to get the focus on the Filter of the Column where the user has clicked so that the user is able to directly type in Filter values.

How can I do that?
Jack
Telerik team
 answered on 16 Feb 2009
3 answers
84 views
Hi!

Which new method replace the obsolete method MasterGridViewInfo.GetVisibleRowIndex(...)?

thanks
Jack
Telerik team
 answered on 16 Feb 2009
1 answer
80 views
HI,

I try to download the Q3 2008 SP2 and I get a corrupted file for "RadControls_WinForms_2008_3_1321_dev.exe" .

Where can I download a correct install file please ?

Thanks!
Nick
Telerik team
 answered on 16 Feb 2009
3 answers
187 views
Hello,

I have an app that creates grids programmatically and then populates them (in unbound mode) with data.  However I don't actually see the rows displayed in the grids until I do some other activity.  For example if I add another new row manually, or reorder columns, etc.  then suddenly I will see all the previously added rows.  I tried putting in a call to Refresh() for each grid when I was done adding rows but that didn't seem to help.

        private void populateGroupFactControls() 
        { 
            var level2Grids = from fact in activeJob.FactSet 
                              where fact.Level == 1 && fact.DataTypeDesc == p.factTypeGroup 
                              select new 
                                         { 
                                             GridName = uiUtility.CreateFactGridName(fact.FactName), 
                                             Rows = 
                                                  from childFact in activeJob.FactSet 
                                                  where childFact.Level == 2 && childFact.ParentFactID == fact.FactID 
                                                  join factValue in activeDataElement.Values 
                                                  on childFact.FactID equals factValue.FactID 
                                                  group factValue by factValue.GroupInstanceID 
                                                  into rowCells 
                                                  select new 
                                                     { 
                                                         RowID = rowCells.Key, 
                                                         Cells = rowCells 
                                                     } 
                                         }; 
 
            foreach(var grid in level2Grids) 
            { 
                var gridControl = (RadGridView) groupFactTable.Controls.Find(grid.GridName, true).First(); 
                gridControl.Rows.Clear(); 
                foreach(var row in grid.Rows) 
                { 
                    GridViewRowInfo newRow = gridControl.Rows.AddNew(); 
                    newRow.Cells[p.RowID].Value = row.RowID; 
                    foreach(var cell in row.Cells) 
                    { 
                        newRow.Cells[cell.FactID].Value = cell.InstanceValue; 
                    } 
                } 
                gridControl.Refresh(); // Doesn't seem to help 
            } 
            groupFactTable.Refresh(); // Doesn't seem to help either 
        } 
 


Another consideration is that the grids are all being held in a TableLayoutPanel control  (groupFactTable in the above code sample).  I also tried calling the Refresh method for that parent control but that didn't help either.

I'm using the Jan 2009 version (8.2.0.0) of the RadGridView.  Any thoughts would be greatly appreciated.

Thanks!

Eddie

Jack
Telerik team
 answered on 16 Feb 2009
4 answers
231 views
Hi,
I'm using the RadGridView to programmatically insert new rows at specific locations. To accomplish this I use the following code:

var rowIndex = someNumber;
var row = Grid.Rows.NewRow();
Grid.Rows.Insert(rowIndex, row);

Though the row is visibly inserted in the grid by the following code, neither the values assigned to the cells of this row are displayed (though the assignment doesn't throw any exceptions), nor are the defined CellFormatting or RowFormatting events of the grid are fired.

If I use the following code instead all events and assignments are fine:

var row = Grid.Rows.AddNew();

I need an insert and not and add.

Please advise.

Best regards,
Anton
Hugo
Top achievements
Rank 1
 answered on 15 Feb 2009
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
Styling
Barcode
BindingNavigator
PopupEditor
RibbonForm
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
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
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?