Telerik Forums
UI for WinForms Forum
7 answers
414 views
With the RadDropDownList, I can style the drop down list using VisualListItemFormat, remove the sizing handles using DropDownSizingMode, etc.

How do I style the drop down for the autocomplete box? I've styled ItemLists in the actual theme files I have as well, but those themes seem to only apply to the parent control (IE DropDownList or AutoCompleteBox) not the drop down itself.
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 18 Dec 2015
12 answers
359 views

I have two problems with Filtering.

1) I need to set grid.Columns[i].FilterDescriptor.Expression to a string value, but as the Expression is Read Onlyso I cannot do this. Note: I don't want to use grid.FilterDescriptors.Add(.....).

 

2) Why does the grid.FilterDescriptors.First(.....).Value return null? The PropertyName and Operand is OK, but Value is null.

Dimitar
Telerik team
 answered on 18 Dec 2015
3 answers
188 views

I currently have the Winforms flavor of the Telerik UI SDK. I wish to take advantage of some of the WPF-like feature available in the Telerik UI for Winforms. Specifically ContainerNode. How do I get this downloaded and installed or is it already a part of the installed WinForms and if so where can I pull the reference DLL from. This example indicates that ContainerNode is a part of WPF

Namespace: Telerik.Pivot.Core.Fields
Assembly: Telerik.Pivot.Core (in Telerik.Pivot.Core.dll) Version: 2015.3.1103.1050 (2015.3.1103.1050)

which I don't have. The code I want use is involved in managing the displayed parts of a DATE field in the field list control:

Private Sub LocalDataSourceFieldDescriptionsProvider_ContainerNodeAdded(ByVal sender As Object, ByVal e As ContainerNodeEventArgs)
'Use the name of the DateTime property, in our case it is Date
If e.ContainerNode.Name = "Date" Then
For Each containerNode In e.ContainerNode.Children
Dim fin As FieldInfoNode = TryCast(containerNode, FieldInfoNode)
If containerNode.Name = "Date.Year" Then
'Remove Year from the DateTime tree
TryCast(fin.FieldInfo, PropertyFieldInfo).AutoGenerateField = False
End If
Next containerNode
End If
End Sub

Hristo
Telerik team
 answered on 17 Dec 2015
4 answers
372 views

1. How can I hide the drop indicator line? I didn't find anything about it, how to customise it.

2. Can I indicate the drop target row instead (e.g. with other colors), where the dragged row should be placed? When yes, how I can customise it?

Michail
Top achievements
Rank 1
 answered on 17 Dec 2015
4 answers
157 views
How can I tell when a user has modified the Conditional Formatting of a Grid
 using the Conditional Formatting Form
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 17 Dec 2015
3 answers
124 views

Hi, Im still working on my project that uses GanttView. Data are linked to sql server database using a dataset. My problem occurs when I try to add a child or sibling item, because the new item does not appear until the data are saved to db, and I query again.

Of course I'm using the 'ItemChildIdNeeded' event, to assign the correct id

integerIdCounter = My last Id...

Private Sub RadGanttView1_ItemChildIdNeeded(sender As Object, e As Telerik.WinControls.UI.GanttViewItemChildIdNeededEventArgs) Handles RadGanttView1.ItemChildIdNeeded
        Me.integerIdCounter += 1
        e.ChildId = Me.integerIdCounter
 End Sub

What am I doing wrong?

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 17 Dec 2015
1 answer
183 views

I am trying to left align the text in the column chooser. When I walk through it debugging, I can see the value successfully get updated but the content is still middle aligned when shown. What is the correct way to left align the text in column chooser?

This is what I am currently doing, the positioning portion works correctly but not the content alignment.

private void ConfigureOrderGrid()
{
        orders_radGridView.ColumnChooser.Shown += (o, args) =>   orders_radGridView.ColumnChooser.SetPosition();
}
 
public static void SetPosition(this GridViewColumnChooser chooser)
{           
    var gridPoint = chooser.GridRootElement.PointToScreen(new Point(0));
    var x = gridPoint.X + chooser.GridRootElement.Size.Width;
    chooser.DesktopLocation = new Point(x, gridPoint.Y);
    chooser.StartPosition = FormStartPosition.Manual;
    chooser.ColumnChooserControl.ColumnChooserElement.TextAlignment =   ContentAlignment.MiddleLeft;
}

 

Stefan
Telerik team
 answered on 17 Dec 2015
1 answer
118 views

Hi

When I collapse/expand the Rad Ribbon Bar, I will see an extra line under every tab.
Is this a bug? How can I solve it?

I have attached an image for more detailed information.

Hristo
Telerik team
 answered on 17 Dec 2015
3 answers
643 views
I need to go through the siblings of a select row when a certain change is made. This selected row is a ChildGridViewTemplate. How do I either get all of the siblings of this row or get the parent of this row so that I can get all of the children of the parent to do the check.

Thank you,
Susan
Dimitar
Telerik team
 answered on 16 Dec 2015
2 answers
1.0K+ views

Hello,

 

I have an radgridview that its bound to an datatable from code behind. From code I setup columns and from designer I have one checkbox column.

When I run the app and mark that checkbox column I want to change the text value of one of the other columns. But when I try to change the value of the other column it say "Column "name" its readonly." I check the status of the cell and its says readonly = false;

 private void BindGrid()

{

var result = SqlClass.JT_Batch_GetBatches();

            
            grid_Batch.MasterTemplate.AllowAddNewRow = false;
            this.grid_Batch.AutoGenerateColumns = false;
            this.grid_Batch.AllowEditRow = true;
            this.grid_Batch.MasterTemplate.AllowAddNewRow = false;
            this.grid_Batch.MasterTemplate.AutoGenerateColumns = false;
            this.grid_Batch.MasterTemplate.AllowEditRow = true;
            this.grid_Batch.MasterTemplate.AllowDeleteRow = false;
            this.grid_Batch.MasterTemplate.AllowCellContextMenu = false;
            this.grid_Batch.MasterTemplate.ShowFilterCellOperatorText = false;
            this.grid_Batch.MasterTemplate.ShowHeaderCellButtons = true;
            this.grid_Batch.MasterTemplate.EnableFiltering = false;
            this.grid_Batch.EnableFiltering = true;
            this.grid_Batch.MasterTemplate.ShowFilteringRow = false;
            

            this.grid_Batch.TableElement.BeginUpdate();
            
                        
            try
            {
                using (SqlConnection conn = SqlClass.GetConnection())
                {
                    SqlCommand cmd = new SqlCommand();
                    cmd.CommandText = "GetBatches";
                    cmd.CommandType = CommandType.StoredProcedure;
                    cmd.Connection = conn;

                    SqlDataReader reader = cmd.ExecuteReader();
                    DataTable val = new DataTable();
                    val.Load(reader);                  
                    

                   GridViewTextBoxColumn batch = new GridViewTextBoxColumn("Batch");
                    batch.Width = 161;
                    batch.ReadOnly = true;

                    grid_Batch.MasterTemplate.Columns.Add(batch);

                    GridViewTextBoxColumn comment = new GridViewTextBoxColumn("Comment");
                    comment.Width = 215;
                    comment.ReadOnly = true;

                    grid_Batch.MasterTemplate.Columns.Add(comment);

                    GridViewDateTimeColumn created = new GridViewDateTimeColumn("Created");
                    created.Width = 86;
                    created.ReadOnly = true;

                    grid_Batch.Columns.Add(created);

                    GridViewTextBoxColumn Frequency = new GridViewTextBoxColumn("Frequency");
                    Frequency.Width = 129;
                    Frequency.ReadOnly = true;

                    grid_Batch.MasterTemplate.Columns.Add(Frequency);

                    GridViewTextBoxColumn Status = new GridViewTextBoxColumn("Status");
                    Status.Width = 139;
                    Status.ReadOnly = false;

                    grid_Batch.Columns.Add(Status);

                    GridViewDecimalColumn tran = new GridViewDecimalColumn("# Tran.");
                    tran.Width = 60;
                    tran.ReadOnly = true;

                    grid_Batch.MasterTemplate.Columns.Add(tran);

                    GridViewDecimalColumn Total = new GridViewDecimalColumn("Total");
                    Total.Width = 82;
                    Total.ReadOnly = true;
                    Total.FormatString = "{0:$#,###0.00;($#,###0.00);0}";

                    grid_Batch.MasterTemplate.Columns.Add(Total);

                    GridViewTextBoxColumn SOURCDOC = new GridViewTextBoxColumn("SOURCDOC");
                    SOURCDOC.Width = 0;
                    SOURCDOC.ReadOnly = true;
                    SOURCDOC.IsVisible = false;

                    grid_Batch.MasterTemplate.Columns.Add(SOURCDOC);
                   
                    this.grid_Batch.DataSource = val.DefaultView;

}

private void grid_Batch_CellEndEdit(object sender, GridViewCellEventArgs e)
        {
            if (e.Column.Name == "select")
            {
                var row = grid_Batch.CurrentRow.Cells;                                                         
                
                GridViewCellInfo cell = row[5] as GridViewCellInfo;

                if (bool.Parse(row["select"].Value.ToString()) == true)
                    cell.Value = "MArked"; //HERE I GET THE ERROR MESSAGE!!!!!!!!!
                
                else
                    row[5].Value = "Available";       
            }
        }

 

Thanks,

Ed

Dimitar
Telerik team
 answered on 16 Dec 2015
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?