Telerik Forums
UI for WinForms Forum
12 answers
729 views
What is the recommended way to place a RadElement instance on a Form?
Mike
Telerik team
 answered on 13 Apr 2009
3 answers
176 views
Hi!

I like RibbonBar & radApplicationMenu, Excellent Components, but I have a problem. Under Start main Button there are main Items and RightColumnItems, so my interest is on main Items. I have 3 main items, every one displays popup submenus on right side (when mouse pointer is hover), my problem is because 1st item displays about 20 items on popup submenu but only 3 items is displayed due to (I guess) main container size where start menu is on, I need to show all popup items, how can I do?

Thanks for your help
Marcel Rossi
Top achievements
Rank 2
 answered on 12 Apr 2009
2 answers
161 views
Hi all,

I have 2 different forms. 1 form(Form A)  is to call another form (Form B)
Form B is initiated as a single instance.
Below is the code for Form A:
    public partial class FieldList : Form
    {
        Form CreateField = new CreateField();

        public FieldList()
        {
            InitializeComponent();
        }

        private void radButton1_Click(object sender, EventArgs e)
        {
            CreateField.ShowDialog();
        }
    }

Form B contains a radgridview with checkbox column.
When i click on any checkbox, it still looks fine. But when i close Form B, and opens up again,
the checkboxes in the checkbox column cant be clicked and sometimes when i click on 1 checkbox, another checkbox got checked instead.

Below is the Code for Form B:
public partial class CreateField : Form
    {
        public CreateField()
        {
            InitializeComponent();
            LoadData();
        }

        public void LoadData()
        {
            gvUsers.Rows.Clear();
           
            // (checkbox column, textbox column, boolean column)
            gvUsers.Rows.Add(false, "User1", false);
            gvUsers.Rows.Add(false, "User2", false);
            gvUsers.Rows.Add(false, "User3", false);
            gvUsers.Rows.Add(false, "User4", false);
            gvUsers.Rows.Add(false, "User5", false);
          

        }
    }

Has anyone occurs this error before? The form has to be single instance as it is to be used with the SPRING framework.

Thanks and Regards,
Jack
Jack
Top achievements
Rank 1
 answered on 12 Apr 2009
11 answers
403 views
The textbox backcolor is set to transparent but it is showing as a white background.  Is there a way to get the background to be truely transparent?

Thanks,
Tim
Michael
Top achievements
Rank 2
 answered on 10 Apr 2009
1 answer
163 views
Hello,

We encount a problem about the bug of filter row of RadGridView,
when the data type of column is datetime,
I select the "Between" or "Not between" condition of the filter row by the popup menu to
filter the datetime type column,it'll show ""Not enough values"" error message,
then the program crashed,I try the example of Telerik,it occurred the same situation,

I think that Filter Row only allow enter 1 date, but "Between" and "Not between"
must have the option to compare 2 date, so there will be show the "Not enough values" error message.
I use the 2008 Q2 SP1,is this problem fixed in the latest version? if not,how to avoid this problem?

regards.
Nick
Telerik team
 answered on 10 Apr 2009
1 answer
127 views
Hi!

I'm running a English Windows Vista 32bit, current culture is set to Swedish-Swedish.
In my grid, I have a decimal column with formatstring set to "{0:N2} kr"

When I enter the value 10000 this gets formated to "10,000.00 kr"
Acording to the swedish culture information, it suppose to be formated into "10 000,00 kr"

What am I doing wrong ?

Regards
Per
Nick
Telerik team
 answered on 10 Apr 2009
1 answer
195 views
If I subclass RadButtonElement, the subclass no longer has the same style applied as a pure RadButtonElement.  Here's the simple code snippet:

            ... 
            panel.Children.Add(new RadButtonElement() { Text = "RadButtonElement" }); 
            panel.Children.Add(new MyRadButtonElement() { Text = "MyRadButtonElement" }); 
        } 
 
        class MyRadButtonElement : RadButtonElement 
        { 
        } 
 
 

Can you tell me how to make my RadButtonElement have the same default style (e.g. background color, mouse rollover) as a regular RadButtonElement?

Thanks,
Michael Hewitt
Precision Software Design, LLC

For reference, here is the full body of my Form.OnLoad function:

        void Form1_Load(object sender, EventArgs e) 
        { 
            // Create element container to fill form 
            RadPanel elementsContainer = new RadPanel(); 
            this.Controls.Add(elementsContainer); 
            elementsContainer.Dock = DockStyle.Fill; 
            elementsContainer.BeginInit(); 
            elementsContainer.EndInit(); 
 
            // Create scroll viewer for scrollbar support 
            RadScrollViewer scrollViewer = new RadScrollViewer(); 
            elementsContainer.PanelElement.Children.Add(scrollViewer); 
 
            // Create panel to stack buttons 
            StackLayoutPanel panel = new StackLayoutPanel(); 
            scrollViewer.Viewport = panel; 
            panel.Orientation = Orientation.Vertical; 
            panel.Children.Add(new RadButtonElement() { Text = "RadButtonElement" }); 
            panel.Children.Add(new MyRadButtonElement() { Text = "MyRadButtonElement" }); 
        } 
 
        class MyRadButtonElement : RadButtonElement 
        { 
        } 
 
 

Nikolay
Telerik team
 answered on 10 Apr 2009
1 answer
259 views
Hi again!

Today I was looking for an Solution to update, insert and delete rows in a grid without a Dataadapter.
I found a few threads, but in the most you told us to wait for the next Version of RadGrid an new Handling of events. (My actual version is Q1 2009)

I need a solution where I can user my own statements and parameters in a Radgrid.
I fill the grid with:
RadGridView1.MasterGridViewTemplate.LoadFrom(reader) 

I was logging the RowsChanging and RowsChanged events, but cannot find the right solution for my problem
For example: When I add a new row, the rowChanging event fires with e.action = Telerik.WinControls.Data.NotifyCollectionChangedAction.Add but then no Changing events with Telerik.WinControls.Data.NotifyCollectionChangedAction.ItemChanged is fired for this row

Then I tried to use the CellEndEdit- Event but cannot find a way to know that I'm in a new Row and so on...

Pleas help.

regards
Willi

Nikolay
Telerik team
 answered on 10 Apr 2009
1 answer
135 views
Hello,

Okay I've got a gridview that has 2 levels: parent, child. 
Now in both levels I've got a checkbox column.
So I want to check/uncheck all checkboxes in the child level when I clicked on the parent his checkbox.

I got it working I thought but I'm getting some strange behavior. I think I know why, but I have no idea for the moment how to solve it.

okay my code snippet:

private void rgvAdserverNetwork_ValueChanged(object sender, EventArgs e) 
    var cell = sender as GridDataCellElement; 
    if (cell == null || ((GridViewDataColumn)cell.ColumnInfo).FieldName != "Add"return
     
    var viewTemp = cell.ViewTemplate; 
    var tempRow = cell.RowElement; 
    var rowinfo = tempRow.RowInfo; 
     
    if (!(bool)cell.Value) 
    { 
        //loop the child items to set the checkbox to true 
        loopChilds(rowinfo);   
        rowinfo.Cells["Add"].Value = true//set the checkbox of the parent to true 
    } 
 
//loop the child items of the given master row 
private void loopChilds(GridViewRowInfo masterrow) 
    var childRows = masterrow.ViewTemplate.ChildGridViewTemplates[0].GetChildRows(masterrow); 
    if (childRows == nullreturn
    var length = childRows.Length; 
 
    var expandedState = masterrow.IsExpanded; 
    masterrow.IsExpanded = true
 
    for (var i = 0; i < length; i++) 
    { 
        childRows[i].Cells["Add"].Value = true//set the checkbox of the parent to true 
    } 
    masterrow.IsExpanded = expandedState; 

Maybe there is a better way to achieve this.

Thanks a lot in advanced.

Jack
Telerik team
 answered on 10 Apr 2009
1 answer
142 views
The default padding on the default theme for the child grid on a heirarchical grid has a padding box that is quite wide. I'd like to to set it to 0, but the child is created at runtime. How do I access this property?
gerbrand
Top achievements
Rank 2
 answered on 10 Apr 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?