Telerik Forums
UI for WinForms Forum
5 answers
238 views

Hi !

 

I'm trying to get the code behind the formatting menu for forms like aligning, uniforming the size, spacing (vertically, horizontally).. Because I have my own application with forms and I need to control them like I can do it with Visual Studio.

 

Can anyone help me please ?

 

Thank you !

Hamza
Top achievements
Rank 1
 answered on 06 Feb 2018
11 answers
2.3K+ views
I have a form with a grid view which I have bound to a dataset (MS SQL database).  The table that I am binding to has a couple fields that have default values when adding new records.  I have figured out how to populate default values using the DefaultValuesNeeded event of the gridview control.  However this event only seems to fire if the user clicks the (click here to add new row) button at the bottom of the gridview.  I am trying to use a radButton to call a procedure to delete the row rather than use the default button at the bottom of the gridview.  I have tried using both the Add() and AddNew() functions of the gridview.  The Add() function will not work since my gridview is bound to a datasource.  The AddNew() will create a new row but it bypasses the DefaultValuesNeeded event.  I tried the code below but it didn't work - it errors out trying to set the first default value saying that no default value is specified for the second field:

Dim rowInfo As GridViewRowInfo = radGridInventoryRuns.Rows.AddNew()
rowInfo.Cells("RunYear").Value = Year(Now())
rowInfo.Cells("DateCreated").Value = Now()

 Is there anyway to mimic the behaviour of the button at the bottom of the gridview without actually clicking it.  I am using VS 2012 (vb.net) and the Q1 2014 version of the Telerik controls.
Dimitar
Telerik team
 answered on 06 Feb 2018
1 answer
597 views

Assume MultiSelect = true; And also assume they are all checkboxes.

Scenario--

I multi-select several nodes and when they are selected, I want to check any node within my selection and select all nodes that are selected..

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 06 Feb 2018
6 answers
815 views

I have my gridview working with data tables for the data sources for both the master template and the child template.  Can you tell me how to do two things?

1.  I would like to set the width for that column that expands and collapses the child rows.  (It has that [+] and [-] symbol in it.)

2. Is there a way to collapse the child rows for a parent row when I click to expand a different parent row?

 

Thank you,

Gary

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 06 Feb 2018
2 answers
142 views

I have a radgrid which has a context menu attached to it (this is not a header context menu).

I need to customize the context menu based upon which column has been clicked.

How to I retrieve the unique name of the column that has been clicked when the OnRowContextMenu  event fires in javascript?

Can you please point me to documentation that provides this information or failing that provide a code snippet.

 

e.g.

 

var TelerikRowContextMenu =  function (sender, eventArgs) {
            var objEventTarget = eventArgs.get_domEvent();
 
            var lngRowNumber = eventArgs.get_itemIndexHierarchical();

            var strColumnUniqueName = ??????????????????????????;

 

}

 

Alan
Top achievements
Rank 1
 answered on 06 Feb 2018
0 answers
150 views

Hello...

i have headache for this scenario ... i don't know what best scenario i need to use 

i have grid 

User can insert new data but if i doesn't valid it will show to another from that show master table... 

but if valid the next column on grid will fill with data...( i use LINQ) 

i have tried many solution but nothing work for me... 

help me plz... 

 

 

Hengky
Top achievements
Rank 1
Veteran
 asked on 06 Feb 2018
1 answer
525 views

Hello,

How to get row index / position on validating ... ? 

i have use this code 

       Dim baris As Integer = GridDetail.CurrentRow.Index 

and the return always -1 

how to fix this...  ?

*i use vb.net

Thanks

Hengky
Top achievements
Rank 1
Veteran
 answered on 06 Feb 2018
4 answers
235 views

After getting my listview to display custom items correctly (see http://http//https//www.telerik.com/forums/custom-listview-items) I noticed that my data is not being displayed correctly. I'm getting differing results, but often the first item in the list will mirror the last, but not all of the data. See the attached screenshot. The red values show what they should be. They are all ok except the first two values of the first item. I'm quite sure my DataSource is set up correctly as I can view it in debug. Maybe you could explain how SynchronizeProperties works, as I can't find an explanation of it in the docs. Perhaps I'm using it incorrectly. The code for creating the datasource is below.

_dataSource = new BindingList<RuleItemVisualItemDef>();
_myRule.RuleItemDefs.ForEach(def => _dataSource.Add(
    new RuleItemVisualItemDef
    {
        RuleItemId = def.RuleItemId,
        Sequence = def.Sequence,
        Name = def.Name,
        RuleItemText = GetRuleItemTextFor(def)
    }));
lstvwRuleItems.DataSource = _dataSource;
Tino
Top achievements
Rank 1
 answered on 06 Feb 2018
1 answer
101 views

I'm adding RadWebBrowserElement items to my rotator at run time.

To make it easier, I added a sample at design time and set up the properties for the embedded web browser in the property designer, eg suppressing errors, disabling links etc. I planned to copy/paste these from the designer.cs file into my factory, but I can only see the properties associated to the RadWebBrowserElement itself in the designer.cs file.

Where are they stored please?

 

 

 

Dimitar
Telerik team
 answered on 05 Feb 2018
5 answers
617 views

Hi

How can the pivot grid auto resize the width of it's columns according to the width of it's column's data.

PivotGridElement.BestFitHelper.BestFitColumns() doesn't work for me.

Basically I want to execute the best fit function (provided in context menu for any column) for all members of ColumnGroupDescriptions and RowGroupDescriptions.

Additionally, I want to hide the PivotRowDescriptorContainer, PivotFilterDescriptorContainer and PivotColumnDescriptorContainer when the pivotgrid has no data,

or remove the "Drag data items here", "Drag row items here" and "Drag column items here" message that is displayed in this case so that the user doesn't try to do so (I am not using the RadPivotFieldList).

Hristo
Telerik team
 answered on 05 Feb 2018
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
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
RibbonForm
Styling
Barcode
PopupEditor
TaskBoard
NavigationView
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Overlay
Security
LocalizationProvider
Dictionary
SplashScreen
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
SpeechToTextButton
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
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?