Telerik Forums
UI for WinForms Forum
1 answer
368 views
Greetings,

I know how to do this in ASP.net by using the Telerik controls but i have some problems to do it for WinForm.

http://www.hostingpics.net/viewer.php?id=856225TELERIK2.png

Can anyone help me ?
The user must be able to click on the images to edit or to delete rows...

Thanks in advance
Ivan Petrov
Telerik team
 answered on 03 Feb 2012
2 answers
141 views
I have created a grid view and I am trying to group the items together.  I think maybe this is a bug in the older version (v. 2010.3.10.1215) I am using.   The problem is when I click on the expand button in the grid the winform locks up compltely and I have to end the program.  When I remove the self reference I see the grid is built out properly with reference to my IDs and ParentIDs.  The DataSource of my datagrid is a DataTable that I am building via code.

 

this.radGridView1.Relations.AddSelfReference(this.radGridView1.MasterTemplate, "Id", "ParentId");

Did I do something wrong or is this a known bug?


Aaron
Top achievements
Rank 1
 answered on 02 Feb 2012
8 answers
197 views
Afternoon,

I have created a table which shows sales orders by agent. The items sold can one of 9 types and appear multiple times. What I would like to know is what is the best way of getting that group value for each type?

I currently have the below code which when grouped displays the group value.

private void OrderHistory_GroupSummaryEvaluate(object sender, GroupSummaryEvaluationEventArgs e)
        {
            decimal totalRevenue = 0;
   
            foreach(GridViewRowInfo row in e.Group)
            {
                totalRevenue += (decimal)row.Cells["RevenueValue"].Value;
            }
              
            e.FormatString = String.Format("{0} : £{1:0.00}", e.Value, totalRevenue);
        }

My initial thought would be to try and get at those values but I don't think that would be the correct way of doing it. I think I need to use the foreach section to tally up the values but I am unsure as to how to do that for each type.

A point in the right direction would be greatly appreciated!

Guy
Guy
Top achievements
Rank 1
 answered on 02 Feb 2012
5 answers
287 views
quick background:
I notice that when a user tries to add a new row to a gridview, the row isn't bound to the data type until after the row is validated. This is problematic because I want to 'pre-populate' some of the fields based on what they enter in the first cell. If it was bound, it'd be simple as all I'd have to do is set the bound variable and the table would automatically populate...this doesn't appear feasible...

so I think I have, what I believe to be a work around...basically on a cell validation, I check to see if the row index == -1, if so then I cancel the edit and create a new CashReceivable object and add that to the bound list...the theory being that I'm esentially cancelling the edit and instead of adding the object via the gridview, I add it via the bound list...based on the code below, this works...

So what's my problem?
After this executes, the row gets added to the gridview just fine, the cell that I want to be selected is, however when I start typing to try the trustDGV.BeginEdit() (*note* I didn't include it in the code snipet below since it wasn't working, but I would assume I need to call this to put the cell into edit immediately mode) nothing happens...I am wanting it so as soon as this row gets added the second column goes directly into edit mode...What am I doing wrong?  *note* when I debugged it, I noticed that the currentCell rowIndex was still set to -1, even though I am speicifically setting the current row and column....it would appear as though currentCell is never being updated properly and I might need to do it during another event, but for the life of me, I dont see which event I could do it under...
 
        public ReceiptSplitWizard(String receiptNumber)
        {
            InitializeComponent();
 
            trustReceivables = new BindingList<CashReceivable>();
            trustDGV.DataSource = trustReceivables;
             
            trustDGV.CellValidated += new CellValidatedEventHandler(trustDGV_CellValidated);
            trustDGV.RowsChanged += new GridViewCollectionChangedEventHandler(trustDGV_RowsChanged);
 
             ... foreach loop here to add pre-existing receivables to the binding list to pre-populate it ...
}
 
        void trustDGV_CellValidated(object sender, CellValidatedEventArgs e)
        {
            if (e.RowIndex == -1)
            {
                if (e.Column.UniqueName.Equals("trustTargetInvoiceNumberDGVTBC"))
                {
                    CashReceivable receivable = CashReceivable.Clone(originalReceivable);
                    receivable.TXSet = null;
                    receivable.BillInvoiceNo = (String)e.Value;
                    receivable.CheckAmount = null;
                    receivable.BusinessFunction = GetBusinessFunction(receivable.BillInvoiceNo);
                    trustReceivables.Add(receivable);
                    trustDGV.MasterView.TableAddNewRow.CancelAddNewRow();
                    trustDGV.CurrentRow = trustDGV.Rows[trustDGV.Rows.Count - 1];
                    trustDGV.CurrentColumn = trustDGV.Columns[1];
                }
            }
     }
 
void trustDGV_RowsChanged(object sender, GridViewCollectionChangedEventArgs e)
        {
            GridViewDataRowInfo row = (GridViewDataRowInfo)e.NewItems[0];
 
            CashReceivable receivable = (CashReceivable)row.DataBoundItem;
 
            // if it's been distributed, then gray it out and set it readonly
            if (receivable.TXSet != null)
            {
                foreach (GridViewCellInfo cell in e.GridViewTemplate.Rows[e.NewStartingIndex].Cells)
                {
                    cell.Style.Font = new Font("Segoe UI", 8.25F, FontStyle.Italic);
                    cell.Style.ForeColor = Color.SlateGray;
                    cell.ReadOnly = true;
                }
            }
        }

Jack
Telerik team
 answered on 02 Feb 2012
1 answer
202 views
Ctrl+A (Select All)
Ctr+Y (Redo)
are not working in RadText Boxes.
Also, is there a way to change the undo being  done in RadTextBoxes to be a character at a time.
Stefan
Telerik team
 answered on 02 Feb 2012
1 answer
111 views
Hello,

I was wondering if it would be possible to create a chart where the y-axis is scaled something similar to the y-axis on a Yahoo price chart?

I would also need the axis mirrored for negative values, I know you cannot log a negative value; but I just want the scale logged.  Is something like this possible? If not, has anybody come up with a work around for using a "log scale" to view security returns, which include negative values?

Thanks for the help.
Yavor
Telerik team
 answered on 02 Feb 2012
4 answers
103 views

Good Morning.

I doubt the problem is regarding the control "Telerik.WinControls.UI.RadScheduler" componet of the software.
I will explain with details. i did a several checks
1. 9:05 - 9:07
2. 9:07 -8:09

3.9:10-8:11

I'm handling the range of one hour as follows:
(this.schScheduler.ActiveView as SchedulerDayViewBase).RangeFactor = ScaleRange
.OneHour.

It doesn’t work correctly because when I open the calender RadScheduler only show the two appointments  9:05 - 9:07  and 9:07 -9:09 and the other is that I did is hidden..

Detalis

when I open the Calender RadScheduler, it's not able to show the three appointments in the range established - it only shows one 9:05 - 9:07 and the appointment between 9:07-9:09 is hidden.. the only way to see this appointment is to drop the appointment made between 9:05 - 9:07. After that, the control shows the second appointment 9:07-9:09  - I think it is a bug.. Its a big problem because my company is selling this product and maybe its doesn't work correctly.
Perhaps there is a way to solve it? By the way, I made the tests with WinControl 2010


thanks for your help.

Ivan Todorov
Telerik team
 answered on 02 Feb 2012
1 answer
91 views
Hi Support,

Can you please look at the below link and check  whether that kind of chart[win forms] supported by telerik.

http://en.wikipedia.org/wiki/Carpet_plot

Regards,
Siva
Giuseppe
Telerik team
 answered on 02 Feb 2012
1 answer
100 views
Hi Support,

Can you please look at the below link and check  whether that kind of chart[win forms] supported by telerik.

http://en.wikipedia.org/wiki/Carpet_plot

Thanks and Regards,
Siva
Giuseppe
Telerik team
 answered on 02 Feb 2012
2 answers
137 views

how to make a gesture pan in gridview, I do not use a touchscreen monitor, I want when I click the mouse on the row can slide up and down, almost the same as "demohub" when I click on the panorama can be slide to the left and right.


Thank You.
Eko
Top achievements
Rank 1
 answered on 01 Feb 2012
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
Diagram, DiagramRibbonBar, DiagramToolBox
GanttView
Panorama
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
ProgressBar
CheckedDropDownList
TrackBar
MessageBox
Rotator
SpinEditor
StatusStrip
CheckedListBox
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
DataEntry
ScrollablePanel
ScrollBar
WaitingBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Barcode
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
NavigationView
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
Licensing
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
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?