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

I use Microsoft Visual Basic 2008 Express Edition and I'm having trouble integrating RibbonBar on my Form.

I followed your tutorial >>> http://www.telerik.com/help/winforms/ribbonbarquickstart.html

But I have no RadRibbonBar in my toolbox. Can you tell me how to add control ?

Thank you
Jérôme
Top achievements
Rank 1
 answered on 09 Jun 2009
2 answers
178 views
I want to undo this command:

        Me.OrderStatusRadGridView.MasterGridViewTemplate.GroupByExpressions.Add("OrderType GroupBy OrderType")
        Me.OrderStatusRadGridView.MasterGridViewTemplate.GroupByExpressions.Add("OrderStatus GroupBy OrderStatus")

and redo as I need to.

The documentation shows to how to add groups programically but not remove them.

Thank you


Jack
Telerik team
 answered on 08 Jun 2009
1 answer
121 views
I would like to run a applicationwide hotkey which enables the user to execute a specific command (eg maximizing all mdi forms) pressing alt-enter

When using this code it works:

ChordModifier1.AltModifier =

True

 

 

ChordModifier1.ControlModifier =

False  

 

 

ChordModifier1.ShiftModifier =

False  

 

 

Chord1.ChordModifier = ChordModifier1

Chord1.Keys =

"Alt+Y"  

 

 

InputBinding1.Chord = Chord1 

ClickCommand1.Name = "ActionCommand"

 

ClickCommand1.OwnerType =

GetType(Telerik.WinControls.RadItem)  

 

 

InputBinding1.Command = ClickCommand1  

InputBinding1.CommandContext =

Me.rbeWindowsMaximize

However when I use

Chord1.Keys = "Alt+Enter"

it does not work. How can I get Alt-Enter to work?
thnx
Walther

 

 

 

 

 

Deyan
Telerik team
 answered on 08 Jun 2009
1 answer
210 views
Hi,

I am attempting to create a manual type of contextmenu for a radgroupbox. I add radiobuttons to the radgroup box, then 2 menu items, one is Add MA, the other is Remove MA. The Add MA should expand to the right and then down and show the selection of MA's to add. The remove would of course getElementAt and remove one of the radiobutton controls. Every attempt I have made the second menuitem never opens up. Code is below, any help would be apprecaited.

        private void setup_ma() 
        { 
            // Intialize MA object 
            ma_list = new sch_objects.MA_List(profile_list.Locationid, profile_list.Installerid); 
            ma_add_menu = new Telerik.WinControls.UI.RadDropDownMenu(); 
            ma_all_menu = new Telerik.WinControls.UI.RadDropDownMenu(); 
 
            // Create RadioButton grouped list in groupbox to display primary button with radio, not selectable 
            int count = ma_list.MA_list_forinstallerID.Rows.Count; 
            Telerik.WinControls.UI.RadRadioButton[] radio_btn = new Telerik.WinControls.UI.RadRadioButton[count]; 
            DataRow row; 
            Telerik.WinControls.UI.RadMenuItem main_item; 
 
            // Array of MA's in Installer Profile 
            for (int i = 0; i < count; i++) 
            { 
                row = ma_list.MA_list_forinstallerID.Rows[i]; 
                radio_btn[i] = new Telerik.WinControls.UI.RadRadioButton(); 
                radio_btn[i].Text = row["ma"].ToString(); 
                radio_btn[i].Name = "rb" + radio_btn[i].Text; 
                radio_btn[i].Location = new Point(12, 21 * (i+1)); 
                if ((bool)row["primaryma"]) 
                { 
                    radio_btn[i].ToggleState = Telerik.WinControls.Enumerations.ToggleState.On; 
                    radio_btn[i].Text = radio_btn[i].Text + " [Primary]"; 
                } 
                // For Toggling Primary MA 
                radio_btn[i].Click += new EventHandler(MA_Clicked); 
                // For manually opening a right click context menu 
                radio_btn[i].MouseDown += new MouseEventHandler(ma_radio_mousedown); 
            } 
 
            // Add "Add" button to group 
            Telerik.WinControls.UI.RadMenuItem[] item = new Telerik.WinControls.UI.RadMenuItem[ma_list.MA_list_forlocid.Rows.Count]; 
            int item_counter = 0
            foreach (DataRow ma_row in ma_list.MA_list_forlocid.Rows) 
            { 
                // Create MA's for add group 
                item[item_counter] = new Telerik.WinControls.UI.RadMenuItem(); 
                item[item_counter].Text = ma_row["ma"].ToString(); 
                item[item_counter].Name = "RI" + ma_row["ma"].ToString(); 
                item[item_counter].Click += new EventHandler(add_ma_click); 
                foreach (Telerik.WinControls.UI.RadRadioButton radio in radio_btn) 
                { 
                    if (radio.Name == ma_row["ma"].ToString()) 
                    { 
                        // Delete from group if they already exist in groupbox 
                        item[item_counter].Enabled = false
                    } 
                } 
                item_counter++; 
            } 
            // Menu MA "Add" Dropdown menu 
            main_item = new Telerik.WinControls.UI.RadMenuItem("Add"); 
            ma_add_menu.Items.Add(main_item); 
            ma_all_menu.Items.Add(main_item); 
 
            // Add MA Group to "Add" menuitem 
            main_item.Items.AddRange(item); 
 
            // Add "Remove MA" button to group, get MA by element location later 
            Telerik.WinControls.UI.RadMenuItem sec_item = new Telerik.WinControls.UI.RadMenuItem("Remove MA"); 
            sec_item.Click += new EventHandler(remove_ma_click); 
            ma_all_menu.Items.Add(sec_item); 
             
            ma_groupbox.MouseDown += new MouseEventHandler(ma_groupbox_MouseDown); 
            ma_groupbox.Controls.AddRange(radio_btn); 
        } 
 
        void ma_radio_mousedown(object sender, MouseEventArgs e) 
        { 
            if (e.Button == MouseButtons.Right) 
            { 
                ma_all_menu.Show(ma_groupbox, e.Location); 
            } 
        } 
 
        void ma_groupbox_MouseDown(object sender, MouseEventArgs e) 
        { 
            if (e.Button == MouseButtons.Right) 
            { 
                ma_add_menu.Show(ma_groupbox, e.Location); 
            } 
        } 

Victor
Telerik team
 answered on 08 Jun 2009
1 answer
186 views
I have a GridView that I populate manually using OpenFileDialog...

        Dim fname As String = ""

        If (dlgImportClients.ShowDialog() = Windows.Forms.DialogResult.OK) Then
            fname = dlgImportClients.FileName
        End If

        Dim TextLine As String = ""
        Dim SplitLine() As String

        If System.IO.File.Exists(fname) = True Then
            Dim objReader As New System.IO.StreamReader(fname)

            Do While objReader.Peek() <> -1
                TextLine = objReader.ReadLine()

                'need to add false for checkbox column
                TextLine = "False," + TextLine

                SplitLine = Split(TextLine, ",")

                dgvClients.ColumnCount = SplitLine.Count
                dgvClients.MasterGridViewTemplate.AllowAddNewRow = False
                dgvClients.ReadOnly = False
                dgvClients.Columns(0).IsVisible = True

                'if .RowCount = 0 then we are processing the first row
                If dgvClients.RowCount = 0 Then
                    For i = 1 To SplitLine.Count - 1
                        With dgvClients
                            .Columns(i).HeaderText = SplitLine(i).ToString
                            .Columns(i).BestFit()
                        End With
                    Next
                End If
                dgvClients.Rows.Add(SplitLine)
            Loop

            'stupid but the only way I could get the datagridview to populate correctly
            If dgvClients.RowCount > 1 Then
                dgvClients.Rows.RemoveAt(0)
            End If
        Else
            RadMessageBox.SetThemeName("Breeze")
            RadMessageBox.Show("File Does Not Exist")
        End If

I am loading the .CSV file to the GridView so that it can be reviewed, cleaned up, and then imported into Clients table within the customers database.

I'm kinda stumped as to the best way to get the data in the GridView into the database. Could just be a brain fart or I may be going about this totally wrong. Any insight would be greatly appreciated.

Victor
Telerik team
 answered on 08 Jun 2009
3 answers
328 views
Hi, I have a question...
I'm using ADO Entity FrameWork and displays information in a GridView, all filters work correctly...
When I get the information with the Entity Framework, I put a top... I mean, if i have 50 records in a table, only I get 20.
Code:
var table = Context.Table.Top(20);
GridView1.DataSource = table;

I want to do is put other filter options (custom filter) in the menu of filters to obtain the others 30 records. I mean, how can I put other options in the menu filter and specify my own code to make another type of filter?

because The default filters only filter the records displayed.

my apologies for my english I hope to have explained..
Thanks!!
erwin
Top achievements
Rank 1
Veteran
Iron
 answered on 05 Jun 2009
3 answers
192 views
Hi!

I have got a datetimepicker (the textbox) with a theme created by me. I have also got a calendar with a theme created by me.

I want to use this calendar with the datetimepicker.

At the moment I have the datetimepicker and when I click on its box appears the default calendar theme and I would like to appear my one I have mentioned before.

How can I do this?because as far as I know with visual style builder when I try to make changes in the datetimepicker properties is not possible to change the calendar which is joined to it.

I hope you have understood what I want to get.

Thank you in advance.
Nikolay
Telerik team
 answered on 05 Jun 2009
1 answer
97 views

After upgrading my project Q1 2009 SP1 when I bring up the designeer I receive all kinds of errors about no such property registered for various rad controls (such as RadButton, RadScrollBarElement, etc.)

The project will compile and run howerver.  What can I do to correct this.
Nikolay
Telerik team
 answered on 05 Jun 2009
11 answers
995 views
I've looked around, but I can't seem to find either a text property to change the text, or a property to just hide the auto-created "Click here to add new row" Row in an empty GridView.

I'm using a RadGridView control to display data that comes from a hand held scanner and is created on the fly.  Because of this, I have no data source for the grid, I just define the columns and use AddRow() to display my data. The grid also allows editing of the data in the gird before saving.

Is there a way to turn this off?


Nick
Telerik team
 answered on 05 Jun 2009
3 answers
209 views
I'm trying to evaluate Telerik WinForm controls for our organisation with potential for large license purchase.

I've created a simple Form which inherits from RadForm and added a RadRibbonBar. I need to hide the RadForm title so that the ribbon bar appears correctly, however when I maximize the Form the RadForm menu reappears incorrectly at the very top of the screen, showing only half of the title bar (it should be invisible). I've tried using the RadRibbonForm template with the same results. I've tried searching the forums but without much success. This looks like a bug! Any suggestions?

Eric


Environment:
Visual Studio 2008 / NET 3.5
o/s: Windows Vista
Deyan
Telerik team
 answered on 05 Jun 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
CommandBar
PdfViewer and PdfViewerNavigator
ListControl
Carousel
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
CollapsiblePanel
LayoutControl
ShapedForm
SyntaxEditor
Wizard
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
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?