Telerik Forums
UI for WinForms Forum
1 answer
1.0K+ views
Hello, I need help, I trying to put a Textbox format Currency, but dont work. for example, the Textbox recive 450.00 the value is money, so I need $ 450.00, but show me only 450
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 02 Oct 2017
5 answers
145 views

i'm using this controls for display persian text...

in design time everything is OK but when it runs the text will clipped like the picture...

as you see it shows some border inner the text box...

just to say, the padding doesn't change anything...

Dimitar
Telerik team
 answered on 02 Oct 2017
3 answers
479 views

I'm having an issue with my project. I have a RadGridView populated by a Stored Procedure, I have some Cellformatting in place.
I'm getting some odd behaviour when scrolling, the formatting is being applied to more than just the first 2 columns and the more you scroll the worse it gets.

I'm using an older version but we recently purchased the latest version of telerik for winforms to test and I'm getting the same behaviour in the new project.
Any assistance would be appreciated.

My code for CellFormatting

    Private Sub DataGridView2_CellFormatting(sender As Object, e As CellFormattingEventArgs) Handles DataGridView2.CellFormatting

        If e.ColumnIndex = 0 Then
            e.CellElement.Font = RWLCompleteFont
            e.CellElement.ForeColor = Color.Black
            e.CellElement.NumberOfColors = 1
            e.CellElement.BackColor = Color.LightSteelBlue
            e.CellElement.DrawFill = True
            e.CellElement.DrawBorder = True
            e.CellElement.BorderBoxStyle = Telerik.WinControls.BorderBoxStyle.OuterInnerBorders
        End If
        If e.ColumnIndex = 1 Then
            e.CellElement.Font = RWLDetailsFont
            e.CellElement.ForeColor = Color.Black
            e.CellElement.NumberOfColors = 1
            e.CellElement.BackColor = Color.LightSkyBlue
            e.CellElement.DrawFill = True
            e.CellElement.DrawBorder = True
            e.CellElement.BorderBoxStyle = Telerik.WinControls.BorderBoxStyle.OuterInnerBorders
        End If

    End Sub

Dimitar
Telerik team
 answered on 02 Oct 2017
3 answers
100 views

Hi,

how to set styling (font size, color etc) on a value cell to be exactly the same as the cell that represents column header that value cell belongs to?

Hristo
Telerik team
 answered on 02 Oct 2017
2 answers
286 views

I'm able to save a RadGridView's properties(filters and layout) to XML and I store that XML in a SQL table(not a file).
However how do I apply the XML from SQL back to the grids layout? I can apply the layout when in file format but I'm not smart enough to figure out how to apply when in SQL format.

 

Again any help would be appreciated.

Brent

Brent
Top achievements
Rank 1
 answered on 29 Sep 2017
7 answers
543 views
hi guys,

thanks for your help in advance.

I have two questions as below.
1.  refer to the picture,  I want the label was shown on the top of bar if it is positive,  but on the bottom of bar if negative,  how to implement?
2. how to make the label of X-axis was shown in multiline if it has too many characters?   on the picture I mean the label with text "May 2012' 
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 29 Sep 2017
4 answers
356 views
I want my bar graph to always start at zero and go up if positive and down if negative like in the first attachment. My code creates a graph like the second attachment, where the bar starts at the minimum range and goes up. How do i make my bars on my graph start at zero and pivot up or down depending if the value is positive or negative?
Hristo
Telerik team
 answered on 29 Sep 2017
6 answers
923 views
Hi everyone.

I have a radGridView that has two columns that are dropdownlists.  I add these to my grid like this

string sTABS = "select tabid, tabname from tables";
dtTable = GetData(sTABS); //Procedure to get the data back as a datatable
 
GridViewComboBoxColumn tabcol = new GridViewComboBoxColumn();
tabcol.DropDownStyle = RadDropDownStyle.DropDownList;
tabcol.HeaderText = "Table";
tabcol.FieldName = "TABID";
tabcol.DataSource = dtTable;
tabcol.DisplayMember = "TABNAME";
tabcol.ValueMember = "TABID";
tabcol.Width = 150;
gvSetup.Columns.Add(tabcol);
 
string sCOLS = "Select TVID, COLNAME From Cols";
dtCols = GetData(sCOLS); //Procedure to get the data back as a datatable
 
GridViewComboBoxColumn col = new GridViewComboBoxColumn();
col.DropDownStyle = RadDropDownStyle.DropDownList;
col.HeaderText = "Columns";
col.FieldName = "TVID";
col.DataSource = dtCols;
col.DisplayMember = "COLNAME";
col.ValueMember = "TVID";
col.Width = 150;
gvSetup.Columns.Add(col);

I need to find what event and how I can have a user change the table dropdown and repopulate the column dropdown based on the value from the table dropdown?  

Thank you
Dimitar
Telerik team
 answered on 29 Sep 2017
1 answer
154 views

Hi,

I format gridview cell GridViewDecimalColumn with FormatString : {0:0,0.00}

and :

  private void gvPart_EditorRequired(object sender, EditorRequiredEventArgs e)
        {
            if (e.EditorType == typeof(GridSpinEditor)
                && (gvPart.CurrentCell.ColumnInfo.FieldName == "Cost" || gvPart.CurrentCell.ColumnInfo.FieldName == "List"))
            {
                e.EditorType = typeof(CurrencyEditor);
            }
        }

But when i tab into cell. this is problem:

https://www.screencast.com/t/sKnDuLLkH

this is i expect: 

https://www.screencast.com/t/RNwqwxUhDwCc

Can i move the cursor to the end when i focus to the cell ?

And when i input with this format with value 2.99 , it will display : 02.99. Can it make it only 2.99 ?

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 29 Sep 2017
0 answers
98 views

Hi,
I have a GridView with a child template (X) and another child template (Y)
into the child template (X) and have a decimal column (C) in (Y).
I want to SUM the decimal column (C) in (Y) into a cell of its parent row in (X).

Please attach an example

Ahmed
Top achievements
Rank 1
 asked on 28 Sep 2017
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
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?