Telerik Forums
UI for WinForms Forum
1 answer
131 views

I want to print my GridView,when i set gv.PrintStyle.FitWidthMode = PrintFitWidthMode.FitPageWidth, the header text can not wrap automatically. The row text can wrap automatically, but its height can not grow automatically, how to do, thanks.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 19 Feb 2016
1 answer
97 views
Hello everybody , my question is very simple, how to add a checkbox control to my ListControl ? , some property must be enabled or should I create through code? 
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 19 Feb 2016
1 answer
111 views

Hi,

 I have a form with a radGridView (with 4 columns), the radGridView datasource is a datatable which i update every one second.

When i try to resize any column the width is being reset instead of stretching according to the mouse position.

 

Here is the test application code :

 

Random rndRandom = new Random();

private void RadForm1_Load(object sender, EventArgs e)
{
    radGridView1.AutoGenerateColumns = false;

    timer1.Start();
}



private void timer1_Tick(object sender, EventArgs e)
{
    DataTable dt = new DataTable();
    dt.Columns.Add("AAA1", typeof(int));
    dt.Columns.Add("AAA2", typeof(int));
    dt.Columns.Add("AAA3", typeof(int));
    dt.Columns.Add("AAA4", typeof(int));

    for (int i = 0; i < 20; i++)
    {
        DataRow dr = dt.NewRow();

        dr["AAA1"] = rndRandom.Next();
        dr["AAA2"] = rndRandom.Next();
        dr["AAA3"] = rndRandom.Next();
        dr["AAA4"] = rndRandom.Next();

        dt.Rows.Add(dr);
    }

    radGridView1.DataSource = dt;
}

 

Is there anyway to sort this issue?

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 18 Feb 2016
7 answers
224 views

Hi!

 

How can I delete string ("Any") in Scheduler Resources?

This this how I add my own strings

                            for (int i = 0; i < temp.Length; i++)
                            {
                                radDropDownList5.Items.Add(temp[i].ItemArray[3].ToString());
                                Resource resource = new Resource();
                                resource.Id = new EventId(i);
                                resource.Name = temp[i].ItemArray[3].ToString();
                                //resource.Color = colors[i];
                                //resource.Image = this.imageList1.Images[i];
                                MessageBox.Show(temp[i].ItemArray[3].ToString());
                                this.radScheduler1.Resources.Add(resource);
                            }

But I results I see this (attach screenshot)

 

Best regards, Me!

yurinkomarov
Top achievements
Rank 1
 answered on 18 Feb 2016
5 answers
134 views

I am implementing a detail child row in a grid as per the example at in ..\QuickStart\GridView\Hierarchy\TabbedChildViews

I have a simplified view with a single row and two columns, row height 100 and column 1 width 350, column 2 width 600 (excluding the image)

I am looking for some pointers on how to get the height of the row/cell to scroll when the height of the contained content exceeds the row height. Also how to get the cell to correctly wrap the text?

Currently I am getting the row rendered as in the image, which is incorrect. It is not wrapping the text correctly as the characters are vanishing off the right edge of the first cell. Also, the content loaded into the cell is a lot higher than the cell/row height ( in the provided image the cell field has 15+ lines of text) , but the scroll bar does not allow scrolling for the entire content. How could this be achieved?

 The Cells are added to the view as :

viewDef.RowTemplate.Rows(0).Cells.Add(New CellDefinition(column.FieldName, 0, 1, 1))

And the CellFormatting code for the cell is :

e.CellElement.Text = ("<html>" + e.CellElement.RowInfo.Cells(columnSpec.FieldName).Value.ToString().Replace(" ", "&nbsp;") + "</html>")
e.CellElement.TextAlignment = ContentAlignment.TopLeft
e.CellElement.Padding = New Padding(3)
e.CellElement.TextWrap = True
e.CellElement.AutoSizeMode = RadAutoSizeMode.Auto
e.CellElement.AutoSize = True

 

The e.CellElement directives have been added via trial and error.

Thanks,

 Mark

 

Hristo
Telerik team
 answered on 17 Feb 2016
5 answers
103 views

 The following code works:

 view.ColumnGroups.Add(new GridViewColumnGroup("AutoPOD"));
            view.ColumnGroups.Add(new GridViewColumnGroup("Addresses"));
            view.ColumnGroups[0].Rows.Add(new GridViewColumnGroupRow());
            view.ColumnGroups[0].Rows.Add(new GridViewColumnGroupRow());
            view.ColumnGroups[1].Rows.Add(new GridViewColumnGroupRow());
            view.ColumnGroups[1].Rows.Add(new GridViewColumnGroupRow());
           

 Is there a way to replace it with something like this, short of using variables:

 view.ColumnGroups.Add(new GridViewColumnGroup("AutoPOD"));
            view.ColumnGroups.Add(new GridViewColumnGroup("Addresses"));
            view.ColumnGroups["autoPOD"].Rows.Add(new GridViewColumnGroupRow());
            view.ColumnGroups[0].Rows.Add(new GridViewColumnGroupRow());
            view.ColumnGroups["Addresses"].Rows.Add(new GridViewColumnGroupRow());
            view.ColumnGroups[1].Rows.Add(new GridViewColumnGroupRow());

We have a lot of groups and having the name right there would help code readability a lot.

 

Thanks,

 

Joe

Stefan
Telerik team
 answered on 17 Feb 2016
4 answers
117 views

Hi All

I have implemented the gantview in a test winforms application, and I am just wondering if someone can assist me.

On the View, I drag a Task (Child) Item, and thus changes the start or end date.

Now a very Basic need, is that the Summary (Parent) gets updated too.

Here is a toned down version:

void radGanttView1_SelectedItemChanged(object sender, GanttViewSelectedItemChangedEventArgs e)
{
    try
    {
             if (e.Item.End > e.Item.Parent.End)
             {    
                    e.Item.Parent.End = e.Item.End;

            } 

           if (e.Item.Start < e.Item.Parent.Start)
          {
              e.Item.Parent.Start = e.Item.Start;
         }
     }
   catch { }
}

(View1)

Now this "WORKS" in the sense that if I click off the selected child (View2) , and then back on to it, the  Summary does update (View3), but I need it to be immediately

 

Regards

 

Marius

 

 

 

Marius
Top achievements
Rank 1
 answered on 17 Feb 2016
0 answers
113 views

Hello All...

I need help about MCCB...

Why the data always change to blank after i click new button or edit button 

hope attached picture help to explain the problem 

 Here the code i write on Form_load 

ds = New DataSet("Daftar")
 
        Tblanggota = ds.Tables.Add("Anggota")
        With Tblanggota
            .Columns.Add("KODE", GetType(String))
            .Columns.Add("NAMA", GetType(String))
        End With
        'fill TblAnggota
 
        Using conn As New OleDbConnection(str)
            conn.Open()
            Using cmd = conn.CreateCommand()
                'mengisikan data Anggota.
                Dim query = <sql>
                                 SELECT KodeAnggota as KODE, NamaAnggota as NAMA FROM MstAnggota ORDER BY KodeAnggota
                             </sql>.Value()
                cmd.CommandText = query
                Dim adapter = New OleDbDataAdapter(cmd)
                adapter.SelectCommand = cmd
                Tblanggota.Rows.Add(New Object() {"", ""})
                adapter.Fill(Tblanggota)
            End Using
            With CmbAnggota
                .DataSource = Tblanggota
                '.SelectedValue = ""
                .AutoSizeDropDownToBestFit = True
                .BestFitColumns()
                .AutoFilter = True
                .DisplayMember = "KODE"
                .ValueMember = "KODE"
                .Text = ""
                TxtNamaAnggota.Text = ""
 
                'Dim filter As New FilterDescriptor()
                'filter.PropertyName = Me.CmbAnggota.DisplayMember
                'filter.[Operator] = FilterOperator.Contains
                'Me.CmbAnggota.EditorControl.MasterTemplate.FilterDescriptors.Add(filter)
                'CmbAnggota.MultiColumnComboBoxElement.EditorControl.EnableCustomFiltering = True
 
                'AddHandler CmbAnggota.MultiColumnComboBoxElement.EditorControl.CustomFiltering, AddressOf CmbAnggota_CustomFiltering
                'AddHandler CmbAnggota.KeyDown, AddressOf CmbAnggota_KeyDown
 
 
            End With
 
            conn.Close()
        End Using
 
        TxtNamaAnggota.DataBindings.Add("Text", Tblanggota, "NAMA")

I have tried to move the code on button_click event. but the i got the same result.

 

Thanks before

Hengky
Top achievements
Rank 1
Veteran
 asked on 17 Feb 2016
1 answer
74 views

Hi, I got an issue with the RadMaskedEditBox with standard phone mask (999) 000-0000. It works well when we enter only digits, but when we hit the keys like 123123-1234, the '-' skips the next character so I got text like this "(123) 123-_123". I'm not really familiar with telerik controls and I tried to find some way to avoid this without success. So is there a property or something else to avoid this problem or is there a real issue with the control itself. 

Thank you very much. 

Dimitar
Telerik team
 answered on 15 Feb 2016
1 answer
211 views

Hi Support,

I change my export to excel function to be able to have xlsx format instead of xls. So I change my ExportToExcelML to use GridViewSpreadExport function.

Everything works properly except the group column start in column B instead of column A. My users prefer when the data start in column A. You can see the difference between the old and the new format.

Is it possible that the group column start in column A like it was before?

Regards,

Nadia

Dimitar
Telerik team
 answered on 15 Feb 2016
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
Documentation
SplitContainer
Map
DesktopAlert
CheckedDropDownList
ProgressBar
TrackBar
MessageBox
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
CollapsiblePanel
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
Styling
Barcode
PopupEditor
RibbonForm
TaskBoard
Callout
NavigationView
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Security
LocalizationProvider
Dictionary
SplashScreen
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?