Telerik Forums
UI for WinForms Forum
3 answers
215 views

Hi 

I want to draw a diagram similar to the one in the attached image.

It will be great if the names of vertical lines could be frozen to the top section of the diagram.

The user should not be able to modify the diagram.

 

Dimitar
Telerik team
 answered on 17 Jan 2018
2 answers
148 views

I have a very simple grid - its blank.  No rows, no columns.  The grid control's name = gg

In Code I add one column:  GridViewTextBoxColumn() like this:

 

Dim myCol As GridViewDataColumn = Nothing

myCol = New GridViewTextBoxColumn()
myCol.DataType = GetType(String)
myCol.Name = "Test Texteditor"
myCol.FieldName = "TestText"

myCol.HeaderText = "TestText"
myCol.ReadOnly = False
myCol.IsVisible = True

gg.Columns.Add(myCol)

 

I have another method that creates a row for testing.

I've checked ReadOnly on:  Grid, Row, Column and Cell.  ALL are ReadOnly = False

but when I double-click on the cell - nothing happens.  No Text Editor nothing.  At first I thought, ok I'm creating this column dynamically so there must be some methods I'm supposed to hook into (AddHandler) and specifically I figured I'd need to hook into EditorRequired but there's no such method for a GridViewDataColumn() so I'm really stuck.

 

I'm 100% certain I'm doing something stupid and any help or nudge or shove in the correct direction would be very appreciated.

Thank you!

-Curtis

 

 

Dimitar
Telerik team
 answered on 17 Jan 2018
1 answer
399 views

Hi

I want to clear the pivotgrid contents.

I am using LocalDataSourceProvider and providing datatable as itemsource.

If I set the LocalDataSourceProvider object to null, I get NullReference exception.

I have emptied the rows and columns, but the grid does not refresh.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 16 Jan 2018
1 answer
170 views

Is there meanwhile a way to control the position of the axis crossing ? It's strictly fixed to an outside corner of the ChartArea ?

I found this old thread with an answer, may be things have changed meanwhile

https://www.telerik.com/forums/drawing-x-axis-on-chart-view-at-zero-when-negative-values-exist

RadChartView is such a rich thing, it's on wonder while such a basic feature as control the axis crossing is missing.

That means a 4 quadrant chart (going f.e. from -100 to +100 on both axis, with having the axis crossing at (0,0)) is strictly impossible ?

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 16 Jan 2018
0 answers
236 views
Symptoms:
Telerik Document Processing which is used in most of the exporters in UI for WinForms is affected after you install January 9, 2018, .NET Security and Quality Rollup (KB4055002). Applications that request a fallback font or a character that is not included in the currently selected font return the following error messages:
System.TypeInitializationException
“FileFormatException: No FontFamily element found in FontFamilyCollection that matches current OS or greater: Win7SP1”.
Inner exception originates from: CompositeFontParser






Solution 1:
Microsoft has released an update which fixes the issue. More information about it you can find here: Description of the Security and Quality Rollup for .NET Framework 4.6, 4.6.1, 4.6.2, 4.7, and 4.7.1 for Windows 7 SP1 and Server 2008 R2 SP1 (KB 4074880).

Solution 2:
To keep .NET 4.7.1 installed and maintain protection against vulnerabilities that are addressed by the January security updates, uninstall the January .NET Framework Security and Quality Rollup (KB 4055002), and then install the January .NET Framework Security-Only Update (KB 4054183). To do this, follow these steps:
1. In Control Panel, open the Windows Update item, and then select View update history.
2. In the Review your update history list, locate and select Security Update for Microsoft .NET Framework 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1 (KB4055002). Then, select Uninstall.
3. When you are prompted for confirmation to uninstall, select Yes.
4. Restart your computer if you are prompted to do this.
5. Download and install the Security Only update for .NET Framework 4.6, 4.6.1, 4.6.2, 4.7, and 4.7.1 for Windows 7 SP1 and Windows Server 2008 R2 SP1 and .NET Framework 4.6 for Windows Server 2008 SP2 (KB 4054183) for your operating system configuration from the following links:
Security Only update for .NET Framework 4.6, 4.6.1, 4.6.2, 4.7, and 4.7.1 for Windows 7 SP1 and Windows Server 2008 R2 SP1 for x86 systems (KB4054183)
Security Only update for .NET Framework 4.6, 4.6.1, 4.6.2, 4.7, and 4.7.1 on Windows 7 SP1 and Windows Server 2008 R2 SP1 for x64 systems (KB4055269)
6. Follow the installation prompts, and then restart your computer if you are prompted to do this.

Solution 3:
Roll back to the previous version of .NET Framework. To do this, follow these steps:
1. In Control Panel, open the Programs and Features item.
2. In the Uninstall or change a program list, locate and then select Microsoft .NET Framework 4.7.1, and then select Uninstall/Change.
3. Select Remove .NET Framework 4.7.1 from this computer, and then select Next.
4. Select Continue to confirm the uninstallation.
5. Select Finish after the uninstallation is finished.
6. Restart your computer if you are prompted to do this.
Desislava
Top achievements
Rank 1
Iron
 asked on 15 Jan 2018
3 answers
467 views

hi telerik

                foreach (GridViewDataRowInfo row in re_ItemregiView.Rows)
                {
                    //
                }

 

The gridview data sorted by clicking on the Gridview header. the data from the source above will have the same content but in a different order.

I want to get an ordered sequence of data on the source.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 15 Jan 2018
1 answer
172 views

Hi

When the combined width occupied by rowheaders and columnheaders is less than the width of the container of pivotgrid, horizontal scrollbar appears on the screen.

But when the row headers alone occupy width more than the width of the container of pivotgrid, horizontal scrollbar does not appear. Enabling autoscroll on the container of pivotgrid does not help in this case.

Hristo
Telerik team
 answered on 12 Jan 2018
2 answers
206 views

hi

im using 

design a radMultiComboBox with 3 column(two column is visible) and one column to select "ValueMember". use the below code for "filtering" :

1.customerlist.AutoCompleteMode = AutoCompleteMode.SuggestAppend;
2.CompositeFilterDescriptor compositeFilter = new CompositeFilterDescriptor();
3.FilterDescriptor prodName = new FilterDescriptor("FullName", FilterOperator.Contains, "");
4.compositeFilter.FilterDescriptors.Add(prodName);
5.compositeFilter.LogicalOperator = FilterLogicalOperator.Or;
6.this.customerlist.EditorControl.FilterDescriptors.Add(compositeFilter);

 

every thing work perfectly, but in my project, when user type the name that not in DB, the application show the messagebox and open new form to add item into database.

private void customerlist_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.Enter)
            {
                if (!string.IsNullOrEmpty(customerlist.Text))
                {
                    string name = customerlist.Text;
                    rollback:
                    if (_db.Customer.Any(p => p.FullName.Contains(customerlist.Text.Trim())))
                    {
                        int id = int.Parse(customerlist.SelectedValue.ToString());
                        var result = _db.Customer.First(p => p.CustomerId == id);
                        txttel.Text = result.HomeTel;
                        txtmobile.Text = result.Mobile;
                        txtaddress.Text = result.Address;
                        SendKeys.Send("{tab}");
                        str = null;
                    }
                    else
                    {
                        RadMessageBox.Show(this, "مشتری جدید باید در لیست مشتریان ثبت شود");
 
                        using (FrmAddPerson frm = new FrmAddPerson())
                        {
                            frm.txtfullname.Text = customerlist.Text;
                            frm.radGroupBox1.Enabled = false;
                            frm.radGridView1.Enabled = false;
                            frm.ShowDialog();
                        }
                        cCustomer();
                        customerlist.Text = name;
                        goto rollback;
 
                    }
                }
            }
        }

when user press enter, this code should be work, but radmulticolumncombobox.Text property, is null (" "). while must be show what's user typed in combobox.

for example, in radmulticolumncombobox.Datasource, these exist : john,david,oliver , and user input : jason => radmulticolumncombobox.Text should be = "jason", but it's null.

Mehdi
Top achievements
Rank 1
 answered on 12 Jan 2018
17 answers
1.4K+ views
I read many of the posts here on how to properly set BeginEdit to programmatically set a cell into Edit mode. However, the code is not working for me.

Here is the code I am using:
Dim currentCell = RemindersGridView.Rows(RemindersGridView.Rows.Count - 1).Cells(2)
currentCell.RowInfo.IsCurrent = True
currentCell.ColumnInfo.IsCurrent = True
currentCell.BeginEdit()

It does not work under these circumstances:
1) The second time the code is called.
I have the code in an Add button, so when the user clicks Add to add a new row, the 3rd cell is automatically opened for edit. This works the first time I click the Add button. But if I press it a second time, it does not work. I tried to call EndEdit before this code, and that did not help.

2) If the cell is a drop down list.
If the cell to automatically open for edit is a drop down list, the code does not work. It does not show the comboBox editor.

Any tips for fixing either of these issues is appreciated!

thanks!
Hristo
Telerik team
 answered on 12 Jan 2018
1 answer
4.3K+ views

hi,

in a winforms app, i am using a RadGridView with MultiSelect = true and i am trying to create a column with check-boxes that will be checked for each row that is selected.
i want this column to work in both ways:
  1) the check-boxes should update themselves each time the list of selected rows is changed.
  2) the user should be able to select additional rows by checking the check-boxes in this column.

currently i was able to implement the first request (the check-boxes are updating themselves according to the selected rows), but not the second one.

i subscribed to the SelectionChanged event of the grid, i unchecked the previously selected check-boxes and then checked the ones from the currently selected rows. here is the code:


        private readonly List<GridViewRowInfo> previouslySelectedRows = new List<GridViewRowInfo>();

        private void HandleGridSelectionChanged(object sender, EventArgs e)
        {
                UnCheckPreviouslySelectedRows();
                CheckCurrentlySelectedRows();
                StoreCurrentlySelectedRows();
        }

        private void UnCheckPreviouslySelectedRows()
        {
            foreach (GridViewRowInfo row in previouslySelectedRows)
            {
                row.Cells["Select"].Value = false;
            }
        }

        private void CheckCurrentlySelectedRows()
        {
            IEnumerable<GridViewCellInfo> cells = radGridView1.SelectedRows
                .Select(x => x.Cells["Select"]);

            foreach (GridViewCellInfo cell in cells)
            {
                cell.Value = true;
            }
        }

        private void StoreCurrentlySelectedRows()
        {
            previouslySelectedRows.Clear();
            previouslySelectedRows.AddRange(radGridView1.SelectedRows);
        }

did someone implement something similar?
can someone help me with the second task (to let the user select/unselect rows by checking/unchecking the check-boxes)?

thank you,
alez

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 12 Jan 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
PdfViewer and PdfViewerNavigator
CommandBar
ListControl
Carousel
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
Label
AutoCompleteBox
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
Wizard
CollapsiblePanel
LayoutControl
ShapedForm
SyntaxEditor
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
SmartPasteButton
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?