Telerik Forums
UI for WinForms Forum
8 answers
113 views

Hello,

 

I want to binding some properties to gridview programmatically. I have object hierarchy like that:

public class CLASS_A
{
      String propA;
      int propB;
      CLASS_B propC;
}
 
public class CLASS_B
{
      String propA;
      int propB;
      bool propC;
}

 

The datasource will be a list of CLASS_A, and i want to bind propA from CLASS_A and some properties of CLASS_B.

There is no problem to binding properties from CLASS_A with field name, but I try same doing something like "propC.propA" but doesnt work.

What I am doing wrong?

 

Thank you and Regards!!!

 

 

Hristo
Telerik team
 answered on 11 Oct 2018
12 answers
1.3K+ views
Hello guys,

I'm exporting hierarchical grid to Excel.
The problem is that while exporting the grid it's loosing the formatting of the columns.
Is there any property to set that keep format the same as grid has?
I have more then 50 columns with a different format .. do I have to format it twice for the grid view and for the Excel ?

Can I use ExcelCellFormatting event to copy format of the grid cells to Excel?        

Thank you ,
Victoria.
Hristo
Telerik team
 answered on 11 Oct 2018
5 answers
172 views

Hi, 

is there a way to have AutoEllipsis on selecteded item ?

it works fine with items in list but not on selected.

Thanks for your help :)

OD
Top achievements
Rank 1
 answered on 11 Oct 2018
0 answers
116 views

Hello ... 

I have question about rotator ... 

can rotator insert with other form (in this case i have 3 forms, and i want to insert it all) that i have made 

i have form with gridview, can it be insert into rotator... 

 

can i have the example ? please 

Thanks before. 

Hengky
Top achievements
Rank 1
 asked on 11 Oct 2018
3 answers
260 views

I'm trying to install Telerik UI and it always seems to roll back action when it's on Extracting files.

 Is it a .NET Framework issue, I don't know..

Please help?

Hristo
Telerik team
 answered on 11 Oct 2018
1 answer
239 views

Is there a simple way, by setting a property, that the items that are checked that show up in the checked list area, (not in the drop down list) stay sorted as they are sorted in the Drop Down and not sort based on the order they checked them in the list? 

 

If not, what would be the best way to make this happen?

 

 

Thanks

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 10 Oct 2018
5 answers
454 views

This is how I populate my ListView:

 

List<Users> ListUsers = (List<Users>)FormData.Resp;
 
lv.Items.Clear();
 
foreach (var User in Users)
{
                    ListViewDataItem ListViewDataItem = new ListViewDataItem();
                    lv.Items.Add(ListViewDataItem);
 
                    ListViewDataItem[0] = User.ID.ToString();
                    ListViewDataItem[1] = User.BenutzerID;
                    ListViewDataItem[2] = User.Nachname;
                    ListViewDataItem[3] = User.Vorname;
                    ListViewDataItem[4] = User.EMailAdresse;
}

 

 

After selecting Items, the "Text" property of CurrentItem, SelectedItem or SelectedItems[0] is always empty. I tried also to get the Text by "lv.Items[lv.SelectedIndex].Text", but where is also the text property empty. But the SelectedIndex is correct.

Sebastian
Top achievements
Rank 1
 answered on 10 Oct 2018
3 answers
238 views

Hello,

I did all the steps in the documentation, I do not load the selected resource of the appointment, but if they are saving in the database the 3 tables

I need help, what am I doing wrong

I leave the code and attach images

 

        public radForm1()
        {
            InitializeComponent();

            AppointmentsTableAdapter appointmentsTableAdapter = new AppointmentsTableAdapter();
            appointmentsTableAdapter.Fill(testDataSet.Appointments);

            ResourcesTableAdapter resourcesTableAdapter = new ResourcesTableAdapter();
            resourcesTableAdapter.Fill(testDataSet.Resources);

            AppointmentsResourcesTableAdapter appointmentsResourcesTableAdapter = new AppointmentsResourcesTableAdapter();
            appointmentsResourcesTableAdapter.Fill(testDataSet.AppointmentsResources);

        }

  private void radButtonSave_Click(object sender, EventArgs e)
        {
            AppointmentsTableAdapter appointmentsTableAdapter = new AppointmentsTableAdapter();
            AppointmentsResourcesTableAdapter appointmentsResourcesTableAdapter = new AppointmentsResourcesTableAdapter();

            TestDataSet.AppointmentsResourcesDataTable deletedChildRecords =
                this.testDataSet.AppointmentsResources.GetChanges(DataRowState.Deleted)
                as TestDataSet.AppointmentsResourcesDataTable;

            TestDataSet.AppointmentsResourcesDataTable newChildRecords =
              this.testDataSet.AppointmentsResources.GetChanges(DataRowState.Added)
              as TestDataSet.AppointmentsResourcesDataTable;

            TestDataSet.AppointmentsResourcesDataTable modifiedChildRecords =
            this.testDataSet.AppointmentsResources.GetChanges(DataRowState.Modified)
            as TestDataSet.AppointmentsResourcesDataTable;

            try
            {
                if (deletedChildRecords != null)
                {
                    appointmentsResourcesTableAdapter.Update(deletedChildRecords);
                }
                appointmentsTableAdapter.Update(this.DataSet.Appointments);

                if (newChildRecords != null)
                {
                    appointmentsResourcesTableAdapter.Update(newChildRecords);
                }

                if (modifiedChildRecords != null)
                {
                    appointmentsResourcesTableAdapter.Update(modifiedChildRecords);
                }

                this.DataSet.AcceptChanges();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            finally
            {
                if (deletedChildRecords != null)
                    deletedChildRecords.Dispose();

                if (newChildRecords != null)
                    newChildRecords.Dispose();

                if (modifiedChildRecords != null)
                    modifiedChildRecords.Dispose();

            }
        }

 

Emmanuel
Top achievements
Rank 1
 answered on 10 Oct 2018
16 answers
1.6K+ views
Hi,

I`m new to Telerik, so please help!

I have a GridView with several columns of different types..Two of these column types are GridViewComboBoxColumn..

The content in the GridViewComboBoxColumn cell can be unique for each row. And the content in the GridViewComboBoxColumn cell depends on another cell. 
If I change the value in one cell, I want the GridViewComboBoxColumn cell to update automaticly when the editing ends.

How can I achieve this?

Please help!
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 10 Oct 2018
1 answer
282 views

Hello, 

I am relatively new here, and would need help with how i can set different ContextMenusStrip based on selected child template in my RadGridView.

I am using one GridView with four child templates and would want each of them to be assigned a different ContextMenuStrip to ease  the operations around the data in each template. So my barrier now is now to programatically check which template is currently selected (focused) and bind the ContextMenuStrip accordingly or at least disable some buttons in it based on desired output

 

Thanks in advance for looking into this

Jules R

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 10 Oct 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?