Telerik Forums
UI for WinForms Forum
5 answers
243 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
100 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
101 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
173 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
248 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
220 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
114 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
2 answers
248 views
Hello,

We used to use Validating event to do cell validation in the versions before Q2. This event will get fired when a user types in a cell and then moves the input focus to another cell in the same row, to another cell in different rows or to other controls in the form.

In Q2, it seems that this event won't get fired as the previous versions do. How can we achieve cell validation that our customers ask us to do in Q2?

Thanks in advance

BR/shortie

shortie
Top achievements
Rank 2
 answered on 30 Jul 2009
1 answer
109 views
Hi!

I need to cast value property to double but it generates conversion error


thanks
Aaron
Top achievements
Rank 2
 answered on 29 Jul 2009
5 answers
121 views
Hi there,

How can it be that the item shows as "Sparen & Beleggen" and shows as "Sparen _Beleggen" in the pulldownlist?

By the way: Why can't I paste (or attach) a (small) picture? One picture often explains more than thousand words.

I'd like to hear from you.
Just Me
Robert
Top achievements
Rank 1
 answered on 29 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)
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
Barcode
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Licensing
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
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?