Telerik Forums
UI for WinForms Forum
12 answers
234 views
Hi @all,

i have a very crazy problem:

So - i have a RadGridView inside my Radform. I use a dataset to fill my Gridview. Inside this gridview a have a checkbox culumn

This Application works very fine. No problems - hour by hour - i can check my checkboxes on and off.

BUT - if i minimize my application to the "?" bar (Use notify icon)  - and open the appilcation again i have a very crazy problem:

You can't check any boxes - or very difficult - perhaps you must click two or three times to check it on.
Or if you check on/off the checkbox in the first row - another checkbox in another row - checked on/off.

At the RadForm i use the event: FormClosing with this code:

e.Cancel = true;  
this.ShowInTaskbar = true;  
this.WindowStat = FormWindowState.Minimized;  
notico.Visible = true; 

Inside the Form1_Resize
if(this.WindowState == FormWindowState.Minimized)  
{  
   notico.ContextMenu = _contextMenu;  
   this.ShowInTaskbar = false;  
   this.WindoState = FormWindowState.Minimized;  
   notico.Visible = true;  
} 

It´s very simple. I think the handling with the grid it´s ok because all works fine without minimize.

Can someone help me?

Thanks
Markus


Oh -> If if click the right mouse button on a row - the grid checked two checkboxes on/off. It´s not normal ! :-)


--> NEW INFORMAITONS:

The same Application with MS GridView --> Works. Is this a Telerik Bug?




Pierre
Top achievements
Rank 1
 answered on 31 Jul 2009
1 answer
191 views
I'm testing the GridView component in a Terminal Services Application with only 256 colors and over a WAN Netork and the Fade Effects and letting the UI too slow. Is there any way to disable this fade and/or colloring effects ?

Thank You.

Regards,
Igor.
Jack
Telerik team
 answered on 31 Jul 2009
1 answer
151 views
Hello,
I have tried to turn off BeginEditOnKeystroke - just to be able to set it programatically however if i tried to set it in property builder for rad grid view in textbox "Begin Edit Mode"=BeginEditProgrammatically and then clicked "OK" the change has no effect and when I open property builder again the "Begin Edit Mode" is set on "BeginEditOnKeystroke" again.
Jack
Telerik team
 answered on 31 Jul 2009
5 answers
322 views
Hi,

I have a winform with formborder property = None
Now generally user cannot resize form as there is no border, but if there is StatusStrip control on the form, user can resize the form with your StatusStrip

I want to remove this functionality. Is there any way or I am missing something !

Thanks,

Regards,
Divyesh
Peter
Telerik team
 answered on 31 Jul 2009
3 answers
136 views
Hi,

I am interested in trying the RadCarosel to show images loaded from a database. The database contains the paths of the pictures.
With all of the databindings at all the various levels in the Carosel, I am confused as to how to configure for what I described.

Any guidance you might have to offer would be greatly appreciated.

Keith Mayer
Peter
Telerik team
 answered on 31 Jul 2009
3 answers
145 views
I have changed my Form to inherit RadForm and everything seemed to be working fine, but I noticed that one of my Textboxes (later I realised all of them) were not getting populated with Data when I used this bit of Code:

    Private Sub ddlWorkCentre_SelectedIndexChanged_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ddlWorkCentre.SelectedIndexChanged 
        If Not pIsLoading Then 
            For Each pWorkCentre As WorkCentre In WorkCentresList 
                If ddlWorkCentre.SelectedValue = pWorkCentre.ID Then 
                    txtWorkCentreDesc.Text = pWorkCentre.Description 
 
                    BindWorkOrders(pWorkCentre.ID) 
                End If 
            Next 
        End If 
    End Sub 
pIsLoading is a public variable definate at the top of the form and is set to true.
I also have this bit of code:

    Private Sub frmWorkCentreLog_Activated(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Activated 
        pIsLoading = False 
    End Sub 
So, as you can see, when the form is activated the Boolean is set to false, meaning that the ComboBox SelectedIndexChanged can run the rest of the code when the Index is changed :)

This works perfecting on my other forms that are not RadForms, but for RadForms the event is not even triggered.
Does anyone know why this is?


Deyan
Telerik team
 answered on 30 Jul 2009
3 answers
215 views
Are there any plans to provide a UIElementAdapter for the RadRibbonBar controls? I'm planning on creating a CAB-application with a RadRibbonBar and it would be great if I could register the StartMenuItems, RadRibbonBarCommanTab and RadRibbonBarChunk as UIExtensionSites.
Jordan
Telerik team
 answered on 30 Jul 2009
2 answers
307 views

Hello,

 

Having some problems with the radgridview.

In the CellFormatting event i add some backgroundcolors and a progressbar to the grid.

All works fine here.

 

But when I collapse and expand the groups in the grid. The progressbar is moving up and down a copple a rows ( not corresponding with the data in the rows).

 

Any suggestions?

 

Kind regards,

 

Tim van Rooijen

 

 

private void radGridViewProductie_CellFormatting(object sender, Telerik.WinControls.UI.CellFormattingEventArgs e)

        {

            // exclude header element in the data column                      

            if (e.CellElement.ColumnInfo is GridViewDataColumn && !(e.CellElement.RowElement is GridTableHeaderRowElement))

            {

                GridViewDataColumn column = (GridViewDataColumn)e.CellElement.ColumnInfo;

                GridViewRowInfo gvri = e.CellElement.RowInfo;

                if (gvri != null)

                {

                    SchrapView Sv = (SchrapView)gvri.DataBoundItem;

                    if (Sv != null)

                    {

                        //Voor percentage velden worden weergegeven met een progressbar

                        if (column.FieldName == "VorigeBewerking.PercentageCompleet" || column.FieldName == "Nacalculatie.PercentageCompleet")

                        {

                            // check if the progress bar is already added to the cell                          

                            if (e.CellElement.Children.Count > 0)

                                return;

                            RadProgressBarElement element = new RadProgressBarElement();

                            e.CellElement.Children.Add(element);

                            element.StretchHorizontally = true;

                            element.StretchVertically = true;

                            // extract the value in the cell, convert it to a value

                            // usable in the progress bar element and assign it to the

                            // progress bar Value1 and Text properties

                            int discountPercentage = Convert.ToInt32(e.CellElement.Text);

                            if (discountPercentage > 100)

                            {

                                element.Value1 = 100;

                            }

                            else

                            {

                                element.Value1 = discountPercentage;

                            }

                           element.Text = discountPercentage.ToString() + "%";                

                        

                        }

 

                        if (column.FieldName == "Indicator")

                        {

                            if (!Sv.AchterGrondKleur.IsEmpty)

                            {

                                e.CellElement.BackColor = Sv.AchterGrondKleur;

                                e.CellElement.DrawFill = true;

                            }

                            else

                            {

                                e.CellElement.BackColor = Color.Transparent;

                                e.CellElement.BackColor2 = Color.Transparent;

                                e.CellElement.DrawFill = true;

                            }

                        }

                    }

                }


IT Development
Top achievements
Rank 1
 answered on 30 Jul 2009
5 answers
423 views
Hello,

I'm creating a RadGridView which has one level of child grids within. The child grid rows contain the same data as the parent grid rows. Using themes, I have successfully removed any borders/padding/header-rows from the child grids such that when expanded, it simply appears as if you're adding in more rows to the current gridview. All of this works fine. The last problem I am having is that I am finding it difficult to align the columns. Ideally, the column borders in the main grid would line up exactly with those in the child grid. By using the following code, I have succeeded in achieving this for a majority of cases:

                if (e.ChildViewInfo.Rows.Length < 6) 
                { 
                    e.ChildViewInfo.ViewTemplate.Columns[(int)RecordScorpion.Column.Network].Width = grdRecord.Columns[(int)RecordScorpion.Column.Network].Width - 1; 
                    e.ChildViewInfo.ViewTemplate.Columns[(int)RecordScorpion.Column.Item].Width = grdRecord.Columns[(int)RecordScorpion.Column.Item].Width - 1; 
                    e.ChildViewInfo.ViewTemplate.Columns[(int)RecordScorpion.Column.Value].Width = grdRecord.Columns[(int)RecordScorpion.Column.Value].Width; 
                    e.ChildViewInfo.ViewTemplate.Columns[(int)RecordScorpion.Column.Date].Width = grdRecord.Columns[(int)RecordScorpion.Column.Date].Width; 
                    e.ChildViewInfo.ViewTemplate.Columns[(int)RecordScorpion.Column.Line].Width = grdRecord.Columns[(int)RecordScorpion.Column.Line].Width; 
                } 
                else 
                { 
                    e.ChildViewInfo.ViewTemplate.Columns[(int)RecordScorpion.Column.Network].Width = grdRecord.Columns[(int)RecordScorpion.Column.Network].Width - 20; 
                    e.ChildViewInfo.ViewTemplate.Columns[(int)RecordScorpion.Column.Item].Width = grdRecord.Columns[(int)RecordScorpion.Column.Item].Width - 1; 
                    e.ChildViewInfo.ViewTemplate.Columns[(int)RecordScorpion.Column.Value].Width = grdRecord.Columns[(int)RecordScorpion.Column.Value].Width; 
                    e.ChildViewInfo.ViewTemplate.Columns[(int)RecordScorpion.Column.Date].Width = grdRecord.Columns[(int)RecordScorpion.Column.Date].Width; 
                    e.ChildViewInfo.ViewTemplate.Columns[(int)RecordScorpion.Column.Line].Width = grdRecord.Columns[(int)RecordScorpion.Column.Line].Width; 
                } 

The reason that I have the IF condition is essentially to determine if there is going to be a scrollbar or not, which takes up 20 pixels on the right hand side of the screen. The problem is that sometimes, for two child views of even the exact same size, one will have a scrollbar and the other will not. This makes my logic entirely undependable. Is there a way that I can determine if a scrollbar exists in a child gridview?

Also, an this would be a bonus :-) Even though I've removed the padding around my child grids, there still remains some padding, perhaps one-row in width, at the bottom of each that I would really like to get rid of. Any thoughts on this?

Thanks!
Jeremy
Jack
Telerik team
 answered on 30 Jul 2009
1 answer
158 views
Hi

I created a simple (Rad)-form with a StatusPanel and set the App to the Office2007Black theme with

ThemeResolutionService.ApplicationThemeName = m_themeName; 

However the text in the RadLabelElements in the StatusPanel remain black and are hardly to read. I thought these would change automatically. Is this a known problem or do I miss something?

Jörg
Deyan
Telerik team
 answered on 30 Jul 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)
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?