Telerik Forums
UI for WinForms Forum
11 answers
507 views
How can I put a button to print the content of a radgridview with a telerik report ?
Martin Vasilev
Telerik team
 answered on 23 Aug 2011
1 answer
288 views
I want to customize the size and color of TabStrip on pageview. I can change content area element color and view strip element color using Edit UI Elements. But not tab's color and size. Please help. 

Thanks,

Nova 
Boryana
Telerik team
 answered on 23 Aug 2011
1 answer
207 views
I have the following problem. 
There is a table "Account" having following properties.
Number -> prim key
ParentNumber
Name
Description
isParent -> flag indicating if parent

I'm trying to bind this table with the radtreeview. Using the code:

  RadTreeView treeView = this.mView.AccountTreeView;
           
            treeView.DisplayMember = "Name";
            treeView.ParentMember = "ParentNumber";
            treeView.ChildMember = "Number";
            treeView.DataSource = this.mDataSet.Account;
           
            treeView.ExpandAll();
This works well and I have the treehierarchy (self referencing), but I would like to customize the displayMember, that not only the name is showned 
but the combination between the name and number. For example
Name = justname
Number=112222
What I need are the nodes looking like this 
node -> 22222||justname
As you can see it is not just the merging these two fields but also cutting of the first two digits from the number
Another case:
Name = nameTwo
Number=335678
node -> 5678||nameTwo
Stefan
Telerik team
 answered on 23 Aug 2011
1 answer
121 views
Hi.

I want to fill a form with data from a GridView on my main form, this form is brought up when i click on an item in a context menu. Using the standard data grid view in supplied by MS in Visual Studio 2010 my code looks something like this.
Private Sub EditToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles EditToolStripMenuItem.Click
 
       Dim frm As New frmAddEdit
       frm.GUID_User = Me.dgvUsers.Item(0, Me.dgvUsers.SelectedCells(0).RowIndex).Value.ToString()
       frm.GUID_Group = Me.dgvUsers.Item(1, Me.dgvUsers.SelectedCells(0).RowIndex).Value.ToString()
       frm.txtADName.Text = Me.dgvUsers.Item(2, Me.dgvUsers.SelectedCells(0).RowIndex).Value.ToString()
       frm.txtUserName.Text = Me.dgvUsers.Item(3, Me.dgvUsers.SelectedCells(0).RowIndex).Value.ToString()
       frm.txtEmail.Text = Me.dgvUsers.Item(4, Me.dgvUsers.SelectedCells(0).RowIndex).Value.ToString()
       frm.txtLogin.Text = Me.dgvUsers.Item(5, Me.dgvUsers.SelectedCells(0).RowIndex).Value.ToString()
       frm.txtPassword.Text = Me.dgvUsers.Item(6, Me.dgvUsers.SelectedCells(0).RowIndex).Value.ToString()
       frm.txtTelNo.Text = Me.dgvUsers.Item(7, Me.dgvUsers.SelectedCells(0).RowIndex).Value.ToString()
       frm.txtFax.Text = Me.dgvUsers.Item(8, Me.dgvUsers.SelectedCells(0).RowIndex).Value.ToString()
       frm.cbActive.Checked = IIf(Me.dgvUsers.Item(9, Me.dgvUsers.SelectedCells(0).RowIndex).Value.ToString() = "True", True, False)
       frm.GUID_Company = Me.dgvUsers.Item(10, Me.dgvUsers.SelectedCells(0).RowIndex).Value.ToString()
       frm.cbLead.Checked = IIf(Me.dgvUsers.Item(11, Me.dgvUsers.SelectedCells(0).RowIndex).Value.ToString() = "True", True, False)
       frm.cbSplit.Checked = IIf(Me.dgvUsers.Item(12, Me.dgvUsers.SelectedCells(0).RowIndex).Value.ToString() = "True", True, False)
       frm.cbTelesales.Checked = IIf(Me.dgvUsers.Item(13, Me.dgvUsers.SelectedCells(0).RowIndex).Value.ToString() = "True", True, False)
       frm.cboOffice.SelectedValue = Me.dgvUsers.Item(14, Me.dgvUsers.SelectedCells(0).RowIndex).Value.ToString()
       frm.txtAddress.Text = Me.dgvUsers.Item(15, Me.dgvUsers.SelectedCells(0).RowIndex).Value.ToString()
       frm.Text = "Edit User"
       frm.ShowDialog()
 
   End Sub

Now this works fine with the standard DataGridView but the Telerik GridView says that 'RowIndex' is not a member of 'Telerik.WinControls.UI.GridViewCellInfo'. 
My Question is: How can I get the same effect using the Telerik GridView and what is the Correct syntax for this then.

Also please bear in mind that I am new to the programming game and I am learning as I go along any and all help would be much appreciated. 
Martin Vasilev
Telerik team
 answered on 23 Aug 2011
2 answers
152 views
i have not yet implemented the recurring appointment logic in my app, and i was curious if there was a way to remove just the options int he right click context menu that refer to "Recurring" functions ?
Chad
Top achievements
Rank 1
 answered on 23 Aug 2011
1 answer
162 views
Hello,

I am new here, currently I am working on a project, and I have to make a scheduler. But I can't get any further, because I can't click at appointments to edit them or maybe delete them. Instead of opening a popup I am selecting the appointment.

To enter the appointments I have to click at 'free time' first. When I clicked on that, and cancel it I can click on my appointments again. Is there someone who can help me with this?

Sander.

Edit: I fixed it, I placed the Radscheduler1.appointments.clear at the wrong place :-)
Ivan Todorov
Telerik team
 answered on 22 Aug 2011
2 answers
120 views
It sounds like at ...

http://www.telerik.com/community/forums/winforms/gridview/radgridview-virtual-mode-filtering-grouping-sorting.aspx#1765552

... there is a way to be able to do grouping with the treeview-like look as in data bound mode but for virtual mode. The solution seemed as though it has been communicated privately for one developer instead of for everyone that maybe needing the solution. I wonder what the reasoning might have been for doing so. In any case, I am facing such a problem and looking for some guidance. Specifically, I am looking for the API to be able to render treeview in the grid as well as any example code snippet. 

Regards,
Ed
Stefan
Telerik team
 answered on 22 Aug 2011
2 answers
278 views
I have been searching for a solution to this issue on the forums but so far, have not found anything that makes the MultiColumnComboBox display the entire Gridview component without any scroll bars.  That is to say, I do not want the width of the gridview component to be constrained by the width of the combo box itself.  I am attaching a small picture of what I am looking for as an attachment (this picture came from the the following link: http://www.telerik.com/help/winforms/gridview-columns-gridviewmulticomboboxcolumn.html and is located at the bottom of the page.)  The attachment appears to use radmultiColumnComboBox control inside a grid.  I do not know if this makes any difference in the behavior of the combo box.

Any advice on how this can be done?

Thank you for reading my post and any assistance you can offer.


Stefan
Telerik team
 answered on 19 Aug 2011
1 answer
364 views
Hi

I can get selected node in SelectedNodeChanged event. But i want to, how can I get selected node in TreeView MouseDoubleClick event?

Best Regards
Stefan
Telerik team
 answered on 19 Aug 2011
1 answer
174 views
I have a dropdownlist editor as a column. I have loaded it with the values "", "s", "m"

I have an object that has an "s" stored in it...when I initialize the editor I would like to load the initial value that the object has in it....but I can't get it to work. The value of the cell is always null even after I set it.

Thoughts?

private void rgcSoil_CellEditorInitialized(object sender, GridViewCellEventArgs e)
        {
            if (e.Column.Name != "colSorM")
                return;
 
            RadDropDownListEditor editor = e.ActiveEditor as RadDropDownListEditor;
            if (editor != null)
            {
                var ee = (RadDropDownListEditorElement)((RadDropDownListEditor)this.rgcSoil.ActiveEditor).EditorElement;
                ee.BeginEdit();
                ee.DataSource = new String[] {"", "S", "M" };
                SoilType st = (SoilType)e.Row.Tag;
 
                ee.Value = st.StandardOrModified;
                ee.EndEdit();
            }
        }
Stefan
Telerik team
 answered on 19 Aug 2011
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
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?