Telerik Forums
UI for WinForms Forum
2 answers
120 views
Hi,

    i have created a sample application to produce the bug. the application contains gridview with one cell which is gridviewcheckcolumn and a rad button to show the messagebox saying whether the check box is checked or not in the gridview.
    
    when i check the checkbox and if i press the button mesage box showing checked but when i press shortcut key for the button its not working correctly.

    there is a scenarion in my project where we have shortcut key for the button and it behaves like as i said above, so any suggestions on this regard will be helpful for me to solve this issue

private void Form1_Load(object sender, EventArgs e)
       {
           GridViewDataRowInfo row = this.radGridView1.Rows.AddNew();
       }
 
       private void radButton1_Click(object sender, EventArgs e)
       {
           string name = radGridView1.Rows[0].Cells[0].Value.ToString();
           if (radGridView1.Rows[0].Cells["Select"].Value.ToString() == "True")
               MessageBox.Show("Checked");
           else
               MessageBox.Show("UnChecked");          
       }

Thanks,
Selva
Selvamani
Top achievements
Rank 1
 answered on 10 Nov 2011
1 answer
223 views
I am interested in printing data with our Telerik Rad Winform Controls. I would like to know what my options are.

  • Is there an out of the box way to print a GridView?
  • What are my options for XSLT/XML printing (via HTML)?
  • What are my options for PDF printing?

If someone can point me to docs on how to print a winforms view, or opinions/ideas from those who have done this - I would really appreciate it!

-shawn
Martin Vasilev
Telerik team
 answered on 10 Nov 2011
1 answer
269 views
Hello,
I wish that as value of property values ​​change in my editor. For example I pass a value to the ID property, I would like with Red or Blue as a possibility and if I go 2 in value to the property ID, I would like to have Green and Black. Is this possible?

In my form
private void radPropertyGrid1_EditorRequired(object sender, PropertyGridEditorRequiredEventArgs e)
{
    if (e.Item.Name == "TestSam")
    {
        PropertyGridSamEditor test = new PropertyGridSamEditor();
        test.id = 1;
        e.EditorType = test.GetType();
    }
}

In my class PropertyGridSamEditor :
public class PropertyGridSam2Editor : BaseInputEditor
    {
        public PropertyGridSam2Editor()
        {
            m_ID = 0;
        }
        public int m_ID { get; set; }
        public PropertyGridSam2Editor(int ID)
        {
            m_ID = ID;
        }
        public override object Value
        {
            get
            {
                RadDropDownListElement editor = (RadDropDownListElement)this.EditorElement;
                List<InfoSam> Isam = new List<InfoSam>();
                if (m_ID == 0)
                {
                    Isam.Add(new InfoSam(1, "Rouge"));
                    Isam.Add(new InfoSam(2, "Bleu"));
                }
                else
                {
                    Isam.Add(new InfoSam(3, "Bleu"));
                    Isam.Add(new InfoSam(4, "Noir"));
                }
                editor.DisplayMember = "Couleur";
                editor.SelectedValue = "ID";
                editor.DataSource = Isam;
                return editor.Text;
            }
            set
            {
                RadDropDownListElement editor = (RadDropDownListElement)this.EditorElement;
                if (value != null && value != DBNull.Value)
                {
                    editor.Value = value.ToString();
                }
                else
                {
                    editor.Value = "1";
                }
            }
        }
}


Regards


Ivan Petrov
Telerik team
 answered on 10 Nov 2011
8 answers
537 views
Hello,

We are using RadGridView in a read-only mode. When our customers select a row, right click and use "Copy", nothing is copied to clipboard. Why is this? What is the best way to allow the user to copy data from the GridView into clipboard?

Thanks.
Jack
Telerik team
 answered on 10 Nov 2011
1 answer
136 views
Hi,

I want to use the ribbonbar without the start menu and tabs. Reason is that I haven't got much buttons/items to put on it, so using tabs and/or start menu will be needless imho. Also I find it's using a bit too much screen space by default.

So, what I want is:
  • Use the Office 2010 blue/silver theme. The RadRibbonBarGroup title should have a background color, just like in the Office 2007 theme.
  • No tabs or start menu, so the reserved space for those should/can be collapsed (resulting in more space available on the form).
  • The height of the RadRibbonBarGroup should be a bit less (enough for an 32 icon, one line button title beneath and the group title).

If someone could provide me a (code) example to achieve this, then that would be much appreciated!
Stefan
Telerik team
 answered on 10 Nov 2011
1 answer
165 views
Hi,

I am trying to populate a column from a RadGridView with values from a dataset in this way:

Dim datListProps As New DataSet

Dim sql As string = " SELECT gala_id_val_table FROM gala_mainTable "  

    AdaptSql = New OleDb.OleDbDataAdapter(sql, ConPubs)

    AdaptSql.Fill(datListProps, "props_table")

 

Me.tabelaVotRadGridView.Columns.Add(lookUpColumn)



... and I connot find the proper way for making this.
I have attached also a picture with waht I can see on the GridViewComboBoxColumn cell

Can you hel me please
Julian Benkov
Telerik team
 answered on 10 Nov 2011
1 answer
286 views
Hi:
      
      1. How to put cell into edit mode and editing cursor to the cell contents after the last character when double-click ?
      2. How to put cell into focus state when cell end-edit?

  We now solve the tow problems as follows:
     1. Using cell double-click event & SenderKeys{"End"} 
     2. Using CellEndEdit event 

The result is:
        Occasionally , the cell which in the edit mode contents are all selected what  is 
not expected.

Greetings!
Looking forword to you!
Ajing
     
  
Stefan
Telerik team
 answered on 10 Nov 2011
8 answers
420 views
The application that we are looking to write using a docking window scheme would have to be an MDI application.
The problem I have seen with most other tools is that when you set up the "dock manager" type control to cover all of your application's main form, you lose the MDI client area.  The MDI client area becomes hidden behind the docking portion of the control set.
I downloaded the latest version of the WinForms control pack and looked in the help and found a section called "Using The r.a.d.dock In MDI Mode" but there is no text within this section.

Can you give me any examples or ideas on how your control set handles the docking ability when contained in an MDI parent form?
Our parent application window will need to have a dock manager allowing docking at top, bottom, right and left.  Our MDI Child forms will also have a dock manager that will allow at least docking at the top and bottom of that form.
I want to try this out in some detail to see how well your control set handles what we are trying to do.

Thanks for any information you can provide.

Aaron Peronto
Julian Benkov
Telerik team
 answered on 10 Nov 2011
0 answers
127 views
Hello,

I'm using the Q3 2009 WinForm controls and unfortuantely this project is way too big to convert to a newer project now. Unfortuantely, the Help guide that comes with Telerik controls isn't enough and I have a few questions:
  1. Trying to manually add a row isn't working. Using grdGrid.Rows.Add() I've tried several input parameters. I've used the custom object I built (that the DataSource is bound to a collection of) as well as creating a generic object array that contains the values the columns need. Both ways, I get the following error:
    The following exception occurred in the RadGridView:
     
    System.NotSupportedException: The list must be an IBindingList to AddNew. at System.Windows.Forms.CurrencyManager.AddNew() at Telerik.WinControls.UI.GridViewRowCollection.Add(Object[] values)
     
    To replace this default dialog please handle the DataError event.
     
  2. How closely is the DataSource tied to the Grid? I thought if I added a record to the DataSource (and even re-set the Grid's DataSource) the new row would show, but I'm wrong.

Edit: Please remove this post. It turns out I needed to use a BindableList<T>. It turns out the List<T> support is not very strong in Q3 2009.

Eric
Top achievements
Rank 1
 asked on 09 Nov 2011
3 answers
602 views
I have a form that contains a split container with 2 split panels. The top panel contains search criteria and the bottom contains a radGridView that displays the resutls.

I just completed the upgrade process to Q2 2010 SP1 and now when I click on any of the controls in the criteria panel and select the "move" grab bars the control disappears. Upon further inspection the location property gets changed to -266, -191.

I have attached a document of the screen caps.

I also undocked the entire Split Container and tried to move it. Once I grab the "move" box the location gets set to -266,-191
What am I doing wrong or is this a bug?

Nikolay
Telerik team
 answered on 09 Nov 2011
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
Documentation
SplitContainer
Map
DesktopAlert
CheckedDropDownList
ProgressBar
TrackBar
MessageBox
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
CollapsiblePanel
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
Styling
Barcode
PopupEditor
RibbonForm
TaskBoard
Callout
NavigationView
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Security
LocalizationProvider
Dictionary
SplashScreen
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?