Telerik Forums
UI for WinForms Forum
4 answers
74 views

Hello;

I have run out of ideas!

I have a simple parent/child databound grid.

The parent has a list of people, the child has a list of stores assigned to them.

I am wanting so that if I want to assign a new store they can click on "click here to add a new row" then have it work.

The attached picture should help.

In "Cust Stop No" they should be able to type in a number, then I want to do some validation to make sure it is a valid store ID.

If it is, i want to fill in the other columns of data.

I populate the grid here:

private void button1_Click(object sender, EventArgs e)
       {
           radGridView1.DataSource = null;
 
           rep_assigned_stop_matrixTableAdapter.FillByStopDetails(first_choice_mainDataSet.rep_assigned_stop_matrix);
 
           GridViewRelation relation = new GridViewRelation(radGridView1.MasterTemplate);
           relation.ChildTemplate = childTemplate;
           relation.RelationName = "repStopRelationship";
           relation.ParentColumnNames.Add("id");
           relation.ChildColumnNames.Add("rep_id");
           radGridView1.Relations.Add(relation);
           radGridView1.DataSource = first_choice_mainDataSet.rep_info;
 
           //radGridView1.AutoGenerateHierarchy = true;
           radGridView1.AutoSizeColumnsMode = GridViewAutoSizeColumnsMode.Fill;
 
       }

Then I have tried to catch the cell change event here:

private void radGridView1_CellValueChanged(object sender, GridViewCellEventArgs e)
     {
 
         IEditableObject editbaleObject = e.Row.DataBoundItem as IEditableObject;
        
 
         DataRowView dataRowView = e.Row.DataBoundItem as DataRowView;
         var rowIndex = e.Row.Index;
         if (rowIndex == -1)
         {
             radGridView1.Rows[1].Cells["stop_name"].Value = "cityname";
 
         }

 

I am several hours in and not making any headway....please help!

Thank you,

 

Joe

Dimitar
Telerik team
 answered on 21 Apr 2015
1 answer
98 views
Is there any way to Export Excel with Column Groups.
Dimitar
Telerik team
 answered on 21 Apr 2015
1 answer
273 views

In the picture that I've attached you can see that the actual rows look fine with the white and blue color, just as i want them to look. However, the row grouping header is gray, and i can not for the life of me find a way to change the color of it. 

 

(I want to change the color of the grouping header in C# code)

 

Thanks

 

A.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 21 Apr 2015
1 answer
70 views

Hi,

if i doubleclick on the appointmen cell on the Scheduler for Winform UI the EditAppointmentDialog is shown.

Question:

How can i disable the  EditAppointmentDialog , it is possible after a DoubleClick not to popup this EditAppointmentDialog??

 

Regards,

Bledar

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 21 Apr 2015
1 answer
1.6K+ views

Hi folks.

I have a list view which can be populated with many rows of data (not databound)

Once populated I want to grab the text values of certain sub items - but the ListViewDataItem does not have a subitem property

EG:

foreach (ListViewDataItem item in radListViewPOItem.Items)

{
                    
}

Any tips on how to accomplish a simple task?

Thanks.

 

Ralitsa
Telerik team
 answered on 21 Apr 2015
2 answers
59 views

Hi,

I have a grid with multiple columns and rows and inside a method which handles cellformatting, based on some criteria which change dynamically,  set different properties to cells(including enabling/disabling , coloring and many more). but when i do scroll the grid, the cells appearance are mixed up and cells which should be enabled will be disabled and many weird appearances. So i Was wondering how it can be fixed and is there any way to update the grid on fly when scrolling

Thank you 

Cheers,

Niloofar

Niloofar
Top achievements
Rank 1
 answered on 20 Apr 2015
6 answers
908 views
Hello,

I am using Telerik Winform RadMaskedEditBox 2011.3.11.1116.  When using a MaskType "Numeric" and MaxLenght property set to 9 the MaxLenght does not work, it allows me to type more than 9 digits.  I have a need to ensure only numerics are entered but at the same time limit that value to a max of 999999.99.  I don't want the control filled with 00000000 when the position is not in use.

Doesn't seem you can use the two properties together.

Any ideas,

Regards,

Kerry
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 20 Apr 2015
11 answers
225 views
Hello,

i looked at the GridView/Export/ExportMethods Demo.
I used Export to PDF to create a pdf-file.

The created pdf-file looks mostly correct, but there are 2 errors.

Companyname:
1. GROSELLA-Restaurant not correctly exported. The name is written over the next column instead it should be wrapped to the second line.
2. LILA-Supermercado. Same error as no. 1

Kind Regards,

Ramius
Todor
Telerik team
 answered on 20 Apr 2015
2 answers
106 views

Hi,

How do I get a custom context menu to be shown when clicking in a GridView outside of a cell? For example, if there are only a few rows and I click near the bottom of the control? 

-Lou
Lou
Top achievements
Rank 1
 answered on 17 Apr 2015
8 answers
447 views
Hi everyone,
I meet a trouble that I can't multiselect all cells by mouse drag when we create a big table.

My version is 2014.1.402.20, I use radgridview.
e.g.
1. I create 10 by 10 cells table and gridview is a small one, it will show horizon scroll bar and vertical scroll bar.
2. I want to select all cells by mouse drag but not CTRL+Click.
3. I can't select all of them.

Please review my attachment. Thanks.
tony
Top achievements
Rank 1
 answered on 17 Apr 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)
Chart (obsolete as of Q1 2013)
Form
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
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
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
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
Styling
Barcode
BindingNavigator
PopupEditor
RibbonForm
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
BarcodeView
BreadCrumb
Security
LocalizationProvider
Dictionary
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
ToolbarForm
NotifyIcon
DateOnlyPicker
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?