Telerik Forums
UI for WinForms Forum
4 answers
312 views
Hi Guys, 
I have to find out if the printed gridview is out of margin (inside the RadPrintDocument or not) to switch the orientation to landscape,
then reduce font size if gridview stills out.
thanks in advance.
Ralitsa
Telerik team
 answered on 16 Apr 2014
3 answers
210 views
Hi,

How could I get the RadAutoCompleteBox  in TokenValidating event? The sender is an AutoCompleteBoxViewElement....
Thank you.
Dimitar
Telerik team
 answered on 16 Apr 2014
0 answers
89 views
I have a gridview which has 1st column as checkboxcolumn. I have a button which clears all checked rows from the grid, below is the code for the same.
foreach (GridViewRowInfo row in gridView.Rows)
{
   row.Cells["bool_helper"].Value = false;      
}
But, if all the rows are selected using the header checkbox cell and then the clear button is clicked, the checks from the rows are removed but not from the header check box. I am also not able to set value for the header cell as below. Please suggest.
this.gridView.MasterView.TableHeaderRow.Cells[0].Value = false;
Priyam
Top achievements
Rank 1
 asked on 15 Apr 2014
1 answer
300 views
Hi there,

Another databindings question concerning RadCheckBox. I've seen a few floating around, but for some reason I just cannot get it to work.

First, I create a bindingsource, a button and a checkbox in designer. On load I do the following in codebehind:

private MyEntities dbContext = new MyEntities();
 
private void ManageClientsForm_Load(object sender, EventArgs e)
{
    radCheckBox1.DataBindings.Add("IsChecked", bindingSource1, "active");
 
    Client c = (from c in dbContext.Clients
                where c.Id = 1000
                select c).First();
 
    bindingSource1.DataSource = c;
}
 
private void radButton1_Click(object sender, EventArgs e)
{
    if (bindingSource1.DataSource == null) { return; }
 
    Client c = (Client)bindingSource1.DataSource;
 
    bool hasChanges = (from c in dbContext.ChangeTracker.Entries<Clients>()
                       where c.Entity == c & c.State != System.Data.Entity.EntityState.Unchanged
                       select c).Any();
 
    if (hasChanges)
    {
        dbContext.SaveChanges();
    }
}

hasChanges returns always false. The other textboxes I have bound in similar fashion have no problems.

I use EF6 and the field 'active' is a bit column (which is seen as bool due to EF, therefore no parse/format). I also changed the threestate-property of the checkbox to false.

Any ideas as to how I can fix this?

Thanks in advance,

Jasper Gielen
George
Telerik team
 answered on 15 Apr 2014
3 answers
327 views
Will there be support in the future to allow vertically oriented labels on bar charts?  Or does that feature currently exist and I'm missing it?

(see attached)

Thank you
Dimitar
Telerik team
 answered on 15 Apr 2014
1 answer
215 views
i was use Weifon luo for Docking and i want to know how to Show or Load Form in DockPanel or RadDock Panel  Like that Code i use it in weifun luo

public partial class Form2 : DockWindow                //  i try that in RadDock but there`s Error in Form Designer and it Crashed .

{
....... any code
}

and in Main Form that i use as Main Docking i should write that

public partial class Form1:Form
{
Form2 f2=new Form2();
f2.show(DockPanl1,Dockstate.Left) ;       // or in Telerik RadDock as    Raddock1,Dockposition.Right ........... etc   .. 


please i need fast answer Thanks ADMINS .
}
Stefan
Telerik team
 answered on 14 Apr 2014
4 answers
413 views
Hi,

I want to upload 1 file so I try to find a Find upload control. I checked all telerik controls but didn't find any control about file upload. Is there telerik control used as a file upload ?
Stefan
Telerik team
 answered on 14 Apr 2014
1 answer
174 views
When the DropDownStyle is set to "DropDown" on the RadDropDownList, the control will not accept a <TAB> focus.  The issue appears to be caused by the hosted textbox having its TabStop set to False.  Is this a bug or by design?  

This workaround appears to fix the issue.  Thoughts?
RadDropDownList1.DropDownStyle = Telerik.WinControls.RadDropDownStyle.DropDown
 
Dim oTextbox As HostedTextBoxBase
oTextbox = Dropdownlist.DropDownListElement.EditableElement.TextBox.TextBoxItem.TextBoxControl
oTextbox.TabStop = True

Stefan
Telerik team
 answered on 14 Apr 2014
1 answer
290 views
Is there any way to import fonts? Our designer wants us to use Open Sans font. It's not available in Visual Style Puilder or for any Winforms controls.
Stefan
Telerik team
 answered on 14 Apr 2014
1 answer
116 views
Hi,

Apologies if this is a daft question, I usually get involved with web stuff.

We have a MatchLevelID Column in our RadGridView.
The MatchLevelID can either be 0, 1, 2 or 3
What we would like to do is set the background colour of the Cell depending on the MatchLevelID.
To do this, we are subscribing to the CellFormatting Event.
Here is the code we have so far :

private void rgv_CellFormatting(object sender, CellFormattingEventArgs e)
        {
            if (e.CellElement.ColumnInfo.Name == "MatchLevelID")
            {
                var cellInfo = e.CellElement.RowInfo.Cells[e.CellElement.ColumnIndex];

                var matchLevelID = (int) cellInfo.Value;

                switch (matchLevelID)
                {
                    case 0:
                        e.CellElement.BackColor = Color.Red;
                        break;
                    case 1:
                        e.CellElement.BackColor = Color.Orange;
                        break;
                    case 2:
                        e.CellElement.BackColor = Color.Yellow;
                        break;
                    case 3:
                        e.CellElement.BackColor = Color.Green;
                        break;
                }
            }
        }

What is happening is that the background colour is only being set in the MatchLevelID Cell for the Row that the Cursor is hovering over.
As soon as we move the Cursor to another Row the background colour for the new Row is changed and the colour for the old Row is lost.
Ideally we would like the colour to be set for all the Cells in the MatchLevelID Column when the Grid loads.

Any ideas ?
Stefan
Telerik team
 answered on 14 Apr 2014
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
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?