Telerik Forums
UI for WinForms Forum
1 answer
201 views
Hello!

I found the following problem with the latest (v.2011.2 11.712) RadDropDownList:

The drop-down list is bound to the BindingSource. When I assign the binding source's DataSource to a list, the drop-down list control shows the first item but the SelectedItem and SelectedValue fields are still set to null as well as the SelectedIndex is set to -1. In the earlier version the fields were set to the corresponding values. If I assign the drop-down list's DataSource to a list directly, it works well.
using System;
using System.Collections.Generic;
using System.Windows.Forms;
  
namespace Test
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
  
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);
  
            List<Data> list = new List<Data>();
            list.Add(new Data() { Value = "A" });
            list.Add(new Data() { Value = "B" });
            list.Add(new Data() { Value = "C" });
  
            radDropDownList1.ValueMember = radDropDownList1.DisplayMember = "Value";
            radDropDownList1.DataSource = bindingSource;
            bindingSource.DataSource = list;
        }
    }
  
    public class Data
    {
        public string Value { get; set; }
    }
}

This is very upsetting issue, because a lot of already tested code places becomes unstable unexpectedly. 

Thank you.
Peter
Telerik team
 answered on 21 Jul 2011
4 answers
84 views
how can i select all text when i click the text on CommandBarDropDownList1 ?

thanks for your help..
ricric
Top achievements
Rank 1
 answered on 21 Jul 2011
1 answer
306 views
I am building an application where users r coming from database in combobox on combobox1_Enter event.
I am also populating from another table rights for the particular user as per
selectedvaluechanged event of the same comboobx in datagridview.The problem comes when I reselect
same user error is"object not set to an instance of an object" this does not happen if I click buton for
populating usersrights in gridview when i select value in combobox.Can anybody help me with this?
here is the code:
private void UsersCombox_Enter(object sender, EventArgs e)
        {
            ds = null;
            UsersCombox.SelectedIndex = -1;
            SqlConnection mycon = new SqlConnection("Data source=DOTNET1;integrated security=true;initial catalog=examcollectiondata");
            SqlDataAdapter adap = new SqlDataAdapter("select * from createuserTbl", mycon);
            ds = new DataSet();
            adap.Fill(ds, "createusertbl");
            UsersCombox.DataSource = ds;

            UsersCombox.ValueMember = "CreateUserTbl.UserName";

            ds.AcceptChanges();


            ds.GetChanges();
            UsersCombox.Refresh();
        }

private void UsersCombox_SelectedValueChanged(object sender, EventArgs e)
        {
           //error when reselecting value in combobox
            SqlConnection mycon = new SqlConnection("data source=dotnet1;initial catalog=ExamCollectionData;integrated security=true");
//error comes in the line below
            SqlDataAdapter adap = new SqlDataAdapter("select DiffForms,selectdata,insertdata,updatedata,deletedata,viewreports from useraccesstbl where users='" + UsersCombox.SelectedValue.ToString() + "'", mycon);

            DataSet ds = new DataSet();
            adap.Fill(ds, "useraccesstbl");

            dataGridView1.DataSource = ds;
            dataGridView1.DataMember = "useraccesstbl";
Peter
Telerik team
 answered on 21 Jul 2011
5 answers
893 views
Has anyone else gotten this error after saving the form with the RichTextBox and reopening the designer in Vs2010?

at System.ComponentModel.ReflectPropertyDescriptor.SetValue(Object component, Object value)
at Microsoft.VisualStudio.Shell.Design.VsTargetFrameworkPropertyDescriptor.SetValue(Object component, Object value)
at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializePropertyAssignStatement(IDesignerSerializationManager manager, CodeAssignStatement statement, CodePropertyReferenceExpression propertyReferenceEx, Boolean reportError)
at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeAssignStatement(IDesignerSerializationManager manager, CodeAssignStatement statement)
at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeStatement(IDesignerSerializationManager manager, CodeStatement statement)
Svett
Telerik team
 answered on 21 Jul 2011
1 answer
362 views
I've seen a lot of examples of the Gridview for Winforms but looking around I found a little demo for WPD that I liked for the RadGridview for WPF.  Can the tabs in the WPF for silverlight can be achieved in the regular Gridview for Winforms.  I've attached a small pic with the highlighted tabs , i haven't found anything or any examples on how to achieve this in Winforms. 

Is this planned to be added as a new feature?


thank you

Jose
Ivan Petrov
Telerik team
 answered on 20 Jul 2011
1 answer
129 views
Hi,

I was testing the summary row to see if it could be useful for me.

So I set up a simple COUNT expression test. Desperately the summary item is always empty.

Maybe I missed some main information in the documentation? Do I have to do some additional work for this in an event or something else? Or maybe I'm using it in the wrong event? I also tested with some AggregateEXprssions, but the result was the same. I see the row, but it is empty. The result was also the same when I used the code where I'm initializing the grid's content.

My code is like this:

private

 

void rGrid_DataBindingComplete(object sender, GridViewBindingCompleteEventArgs e)

 

{

    ...

GridViewSummaryItem

 

summaryItem = new GridViewSummaryItem();

 

summaryItem.Name =

"name_Guid";

 

summaryItem.Aggregate =

GridAggregateFunction.Count;

 

 

 

GridViewSummaryRowItem summaryRowItem = new GridViewSummaryRowItem();

 

summaryRowItem.Add(summaryItem);

 

this.rGrid.SummaryRowsTop.Add(summaryRowItem);

 


}

Thanx

Nadine
Alexander
Telerik team
 answered on 20 Jul 2011
5 answers
167 views
Dear Sir,
web Recurrence Rule format is not in coincide with the Windows Recurrence Rule format. Is it possible
to convert the rule format in accordance with the windows format.
I have to convert the rule format as same as the windows format from web fromat


web format
DTSTART:20100325T110000Z  DTEND:20100325T113000Z  RRULE:FREQ=WEEKLY;COUNT=4;INTERVAL=1;BYDAY=TH  

windows format
FREQ=WEEKLY;COUNT=10;RECCURENCESTART=20100324T103000Z;BYDAY=WE,SA;WKST=SU

By
S Suriya NArayanan
Ivan Todorov
Telerik team
 answered on 20 Jul 2011
1 answer
141 views
Hi!

I just saw the demo of the RichTextBox component. I found it quite brilliant and with a perfect timing for a project of ours. However the only thing we needed more is the "table support", since if with the demo I try to open a .docx with a table, nothing appears in the document (or rather just the text put in the table, but no table borders, cells or whatever). Is it just because it's a beta version, or you will provide such functionality in the next releases (2011Q3 or next)?

Just to know.
Thanks!!
Stefan
Telerik team
 answered on 20 Jul 2011
7 answers
201 views
I have a simple grid in which one of the columns is a drop down to a reference table.  I get them both to bind fine but when I leave the dropdown box it returns to it's original value.  Textbox columns work just fine.

I am dynamically creating all the columns including the drop down:

GridViewLookUpColumn jurisComboBoxColumn = new
GridViewLookUpColumn();

jurisComboBoxColumn.HeaderText = "MISSO";
jurisComboBoxColumn.Width = 100;
jurisComboBoxColumn.FieldName = "JurisdictionID";
jurisComboBoxColumn.DataSource = _jurisCodes;
jurisComboBoxColumn.ValueMember = "ID";
jurisComboBoxColumn.DisplayMember = "Name";
jurisComboBoxColumn.UniqueName = "jurisComboBox";
userListGridView.MasterGridViewTemplate.Columns.Add(jurisComboBoxColumn);

Am I missing something?

Thanks in advance,
Al
Martin Vasilev
Telerik team
 answered on 20 Jul 2011
1 answer
77 views
I was saw drag&drop event in treeview control.
I want to make gridview control like self-Reference in DEMO.
Drag&drop event in The gridview control that is possible?
Svett
Telerik team
 answered on 20 Jul 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
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?