Telerik Forums
UI for WinForms Forum
1 answer
119 views
hi sir
I asked a question that how I can align screentip of RadButtonelements of Radribbonbar from right; but unfortunately you didn't answer and deleted it,
I asked again.I want to align right edge of ScreenTip to right edge of Radbuttonelement , because the screentip text is writhen by right to left language.
please help me If there was a solution.
Stefan
Telerik team
 answered on 03 Feb 2012
1 answer
226 views
Good afternoon,

I am using the component radpropertygrid and select the color need to hide tabs System and Web color picker, but I'm not succeeding.

How to perform this process on the properties of the component colors?

Thank you,
Thiago 

http://farm8.staticflickr.com/7032/6797461491_ce940494ed_z.jpg
Ivan Petrov
Telerik team
 answered on 03 Feb 2012
1 answer
395 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
172 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
261 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
375 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
247 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
150 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
136 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
121 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
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
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
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
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?