Telerik Forums
UI for WinForms Forum
3 answers
138 views
I am experiencing the follow problem with the MultiColumn ComboBox control.
First I setup the MultiColumn ComboBox as follows:

 
CategoryRadMultiColumnComboBox.DataSource = _categoriesBindingSource; 
CategoryRadMultiColumnComboBox.DisplayMember = "CategoryName"
CategoryRadMultiColumnComboBox.ValueMember = "CategoryId"
CategoryRadMultiColumnComboBox.DropDownStyle = Telerik.WinControls.RadDropDownStyle.DropDownList; 
 
RadMultiColumnComboBoxElement categoriesElement = CategoryRadMultiColumnComboBox.MultiColumnComboBoxElement;          
categoriesElement.EditorControl.MasterGridViewTemplate.AutoGenerateColumns = false;       
categoriesElement.EditorControl.MasterGridViewTemplate.AutoSizeColumnsMode = GridViewAutoSizeColumnsMode.Fill;           
categoriesElement.EditorControl.MasterGridViewTemplate.Columns.Clear(); 
categoriesElement.Columns.Add(CreateGridViewDataColumn("StandardId")); 
categoriesElement.Columns.Add(CreateGridViewDataColumn("CategoryId")); 
categoriesElement.Columns.Add(CreateGridViewTextBoxColumn("#""CategoryNumber", 30, 30)); 
categoriesElement.Columns.Add(CreateGridViewTextBoxColumn("Name""CategoryName", 100)); 

On the SelectedIndexChange event of another ComboBox I set the filter for the datasource as follows:

private void StandardRadMultiColumnComboBox_SelectedIndexChanged(object sender, EventArgs e) 
            RadMultiColumnComboBox cbo = (RadMultiColumnComboBox)sender; 
            _categoriesBindingSource.Filter = String.Format("StandardId = '{0}'", cbo.SelectedValue.ToString()); 
             
            RadMultiColumnComboBoxElement categoriesElement = CategoryRadMultiColumnComboBox.MultiColumnComboBoxElement; 
             
            if (categoriesElement.Rows != null && categoriesElement.Rows.Count == 0 && CategoryRadMultiColumnComboBox.SelectedItem != null
            { 
                CategoryRadMultiColumnComboBox.SelectedItem = null
                CategoryRadMultiColumnComboBox.SelectedValue = null
                CategoryRadMultiColumnComboBox.Text = " "
            }             

Now when the filtering results in 0 rows in the DataSource the Text property retains the previous value and I can not seem to clear it not matter what properties I change.
Jack
Telerik team
 answered on 16 Mar 2011
1 answer
128 views

Hello,

I'm a new developer of winforms.
I'm trying to insert, update and delete records from the following xml file using the treeview control (I'm using the 2009.3.9.1203 version):

"

<?xml version="1.0" encoding="utf-16"?>
<uTemplateData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://********************************************">
  <GoodData xmlns:dppp2="http://***************************************************************************">
      
    <dppp2:LVPrm>
      <dppp2:Bnr i:nil="true" />
      <dppp2:CCount>2</dppp2:CCount>
      <dppp2:OSV>8542</dppp2:OSV>
      <dppp2:ParentId>0</dppp2:ParentId>
      <dppp2:RMM>2048</dppp2:RMM>
      <dppp2:bName i:nil="true" />
      <dppp2:bFvr>CHK</dppp2:bFvr>
      <dppp2:customSName></dppp2:customSName>
      <dppp2:hst>V42</dppp2:hst>
      <dppp2:mPath i:nil="true" />
      <dppp2:nNames xmlns:dppp4="http://********************************************************">
        <dppp4:string>MyName</dppp4:string>
      </dppp2:nNames>
      <dppp2:nGuids xmlns:dppp4="http://*********************************************************">
        <dppp4:string>My2Name</dppp4:string>
      </dppp2:nGuids>
      <dppp2:pArch>None</dppp2:pArch>
      <dppp2:sType>ATUP</dppp2:sType>
      <dppp2:uUM>false</dppp2:uUM>
      <dppp2:vtName>5u_4{Counter}</dppp2:vtName>
      <dppp2:vtType>mor</dppp2:vtType>
      <dppp2:trIp xmlns:dppp4="http://**********************************************************">
        <dppp4:mAd>73111160</dppp4:mAd>
        <dppp4:mFam>InterNetwork</dppp4:mFam>
        <dppp4:mHsh>0</dppp4:mHsh>
        <dppp4:mNmb xmlns:dppp5="http://*********************************************************">
          <dppp5:uShort>0</dppp5:uShort>
          <dppp5:uShort>0</dppp5:uShort>
          <dppp5:uShort>0</dppp5:uShort>
          <dppp5:uShort>0</dppp5:uShort>
          <dppp5:uShort>0</dppp5:uShort>
          <dppp5:uShort>0</dppp5:uShort>
          <dppp5:uShort>0</dppp5:uShort>
          <dppp5:uShort>0</dppp5:uShort>
        </dppp4:mNmb>
        <dppp4:mScpId>0</dppp4:mScpId>
      </dppp2:trIp>
      <dppp2:tCrName>ctii_rl</dppp2:tCrName>
      <dppp2:tEName>Nwa</dppp2:tEName>
      <dppp2:tPName>AutoDefault</dppp2:tPName>
    </dppp2:LVPrm>
      
    <dppp2:LVPrm>
      <dppp2:Bnr i:nil="true" />
      <dppp2:CCount>2</dppp2:CCount>
      <dppp2:OSV>8542</dppp2:OSV>
      <dppp2:ParentId>0</dppp2:ParentId>
      <dppp2:RMM>2048</dppp2:RMM>
      <dppp2:bName i:nil="true" />
      <dppp2:bFvr>CHK</dppp2:bFvr>
      <dppp2:customSName></dppp2:customSName>
      <dppp2:hst>V42</dppp2:hst>
      <dppp2:mPath i:nil="true" />
      <dppp2:nNames xmlns:dppp4="http://********************************************************">
        <dppp4:string>MyName</dppp4:string>
      </dppp2:nNames>
      <dppp2:nGuids xmlns:dppp4="http://*********************************************************">
        <dppp4:string>My2Name</dppp4:string>
      </dppp2:nGuids>
      <dppp2:pArch>None</dppp2:pArch>
      <dppp2:sType>ATUP</dppp2:sType>
      <dppp2:uUM>false</dppp2:uUM>
      <dppp2:vtName>5u_4{Counter}</dppp2:vtName>
      <dppp2:vtType>mor</dppp2:vtType>
      <dppp2:trIp xmlns:dppp4="http://**********************************************************">
        <dppp4:mAd>7311160</dppp4:mAd>
        <dppp4:mFam>InterNetwork</dppp4:mFam>
        <dppp4:mHsh>0</dppp4:mHsh>
        <dppp4:mNmb xmlns:dppp5="http://*********************************************************">
          <dppp5:uShort>0</dppp5:uShort>
          <dppp5:uShort>0</dppp5:uShort>
          <dppp5:uShort>0</dppp5:uShort>
          <dppp5:uShort>0</dppp5:uShort>
          <dppp5:uShort>0</dppp5:uShort>
          <dppp5:uShort>0</dppp5:uShort>
          <dppp5:uShort>0</dppp5:uShort>
          <dppp5:uShort>0</dppp5:uShort>
        </dppp4:mNmb>
        <dppp4:mScpId>0</dppp4:mScpId>
      </dppp2:trIp>
      <dppp2:tCrName>ctii_rl</dppp2:tCrName>
      <dppp2:tEName>Nwa</dppp2:tEName>
      <dppp2:tPName>AutoDefault</dppp2:tPName>
    </dppp2:LVPrm>
      
  
  </GoodData>
</uTemplateData>

 

"
You see that the above xml is more complex than the xml file which supported the treeview (XMLSerialization demo).
So, I'm asking you as new developer of winforms to help me step by step in order to insert, update and delete records from the above xml.

If the treeview is not intended for supporing such xml files, Please, guide me how to achieve the requirement using another control.

It is appreciated to send me a code with an explaination.

Regards,
Bader

Martin Vasilev
Telerik team
 answered on 16 Mar 2011
3 answers
175 views

Hello,

I'm a new developer of winforms.
I'm trying to insert, update and delete records from the following xml file using the radgridview control (I'm using the 2009.3.9.1203 version):

"

<?xml version="1.0" encoding="utf-16"?>
<uTemplateData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://********************************************">
  <GoodData xmlns:dppp2="http://***************************************************************************">
      
    <dppp2:LVPrm>
      <dppp2:Bnr i:nil="true" />
      <dppp2:CCount>2</dppp2:CCount>
      <dppp2:OSV>8542</dppp2:OSV>
      <dppp2:ParentId>0</dppp2:ParentId>
      <dppp2:RMM>2048</dppp2:RMM>
      <dppp2:bName i:nil="true" />
      <dppp2:bFvr>CHK</dppp2:bFvr>
      <dppp2:customSName></dppp2:customSName>
      <dppp2:hst>V42</dppp2:hst>
      <dppp2:mPath i:nil="true" />
      <dppp2:nNames xmlns:dppp4="http://********************************************************">
        <dppp4:string>MyName</dppp4:string>
      </dppp2:nNames>
      <dppp2:nGuids xmlns:dppp4="http://*********************************************************">
        <dppp4:string>My2Name</dppp4:string>
      </dppp2:nGuids>
      <dppp2:pArch>None</dppp2:pArch>
      <dppp2:sType>ATUP</dppp2:sType>
      <dppp2:uUM>false</dppp2:uUM>
      <dppp2:vtName>5u_4{Counter}</dppp2:vtName>
      <dppp2:vtType>mor</dppp2:vtType>
      <dppp2:trIp xmlns:dppp4="http://**********************************************************">
        <dppp4:mAd>73111160</dppp4:mAd>
        <dppp4:mFam>InterNetwork</dppp4:mFam>
        <dppp4:mHsh>0</dppp4:mHsh>
        <dppp4:mNmb xmlns:dppp5="http://*********************************************************">
          <dppp5:uShort>0</dppp5:uShort>
          <dppp5:uShort>0</dppp5:uShort>
          <dppp5:uShort>0</dppp5:uShort>
          <dppp5:uShort>0</dppp5:uShort>
          <dppp5:uShort>0</dppp5:uShort>
          <dppp5:uShort>0</dppp5:uShort>
          <dppp5:uShort>0</dppp5:uShort>
          <dppp5:uShort>0</dppp5:uShort>
        </dppp4:mNmb>
        <dppp4:mScpId>0</dppp4:mScpId>
      </dppp2:trIp>
      <dppp2:tCrName>ctii_rl</dppp2:tCrName>
      <dppp2:tEName>Nwa</dppp2:tEName>
      <dppp2:tPName>AutoDefault</dppp2:tPName>
    </dppp2:LVPrm>
      
    <dppp2:LVPrm>
      <dppp2:Bnr i:nil="true" />
      <dppp2:CCount>2</dppp2:CCount>
      <dppp2:OSV>8542</dppp2:OSV>
      <dppp2:ParentId>0</dppp2:ParentId>
      <dppp2:RMM>2048</dppp2:RMM>
      <dppp2:bName i:nil="true" />
      <dppp2:bFvr>CHK</dppp2:bFvr>
      <dppp2:customSName></dppp2:customSName>
      <dppp2:hst>V42</dppp2:hst>
      <dppp2:mPath i:nil="true" />
      <dppp2:nNames xmlns:dppp4="http://********************************************************">
        <dppp4:string>MyName</dppp4:string>
      </dppp2:nNames>
      <dppp2:nGuids xmlns:dppp4="http://*********************************************************">
        <dppp4:string>My2Name</dppp4:string>
      </dppp2:nGuids>
      <dppp2:pArch>None</dppp2:pArch>
      <dppp2:sType>ATUP</dppp2:sType>
      <dppp2:uUM>false</dppp2:uUM>
      <dppp2:vtName>5u_4{Counter}</dppp2:vtName>
      <dppp2:vtType>mor</dppp2:vtType>
      <dppp2:trIp xmlns:dppp4="http://**********************************************************">
        <dppp4:mAd>7311160</dppp4:mAd>
        <dppp4:mFam>InterNetwork</dppp4:mFam>
        <dppp4:mHsh>0</dppp4:mHsh>
        <dppp4:mNmb xmlns:dppp5="http://*********************************************************">
          <dppp5:uShort>0</dppp5:uShort>
          <dppp5:uShort>0</dppp5:uShort>
          <dppp5:uShort>0</dppp5:uShort>
          <dppp5:uShort>0</dppp5:uShort>
          <dppp5:uShort>0</dppp5:uShort>
          <dppp5:uShort>0</dppp5:uShort>
          <dppp5:uShort>0</dppp5:uShort>
          <dppp5:uShort>0</dppp5:uShort>
        </dppp4:mNmb>
        <dppp4:mScpId>0</dppp4:mScpId>
      </dppp2:trIp>
      <dppp2:tCrName>ctii_rl</dppp2:tCrName>
      <dppp2:tEName>Nwa</dppp2:tEName>
      <dppp2:tPName>AutoDefault</dppp2:tPName>
    </dppp2:LVPrm>
      
  
  </GoodData>
</uTemplateData>

"
You see that the above xml is more complex than the xml file which supported the radgridview.
So, I'm asking you as new developer of winforms to help me step by step in order to insert, update and delete records from the above xml.

If the radgridview is not intended for supporing such xml files, Please, guide me how to achieve the requirement using another control.

It is appreciated to send me a code with an explaination.

Regards,
Bader

Martin Vasilev
Telerik team
 answered on 16 Mar 2011
2 answers
96 views
Hi,
I have encountered some problems:
First, I change my grid's theme to Telerik, at runtime Column Headers's theme still remains unchanged but other parts are effected.
and the user have to hover mouse over the header to see the theme's effect on grid. this happens only one time, at form load.

Second, In a comboobox column the cell doesn't show the correspond value of combobox.

Third, While I have handled DataError, CellValidating, RowValidation Events, why still NoNullAllowedException and DupplicatePrimaryKeyException throws by the application? this happen when I click somewhere on the Form or Grid (this really happens just test it).

Fourth, Do I have to write code to change combobox column' Right To Left property for each Grid of My App?

And more unsolved problems in the near future,
Special thanks to Telerik Team,  for lots of time you pay to me.

Alexander
Telerik team
 answered on 16 Mar 2011
3 answers
293 views
Using the gridview controls is there a way to create a parent child relationship and all the grids to handle the table design that they are populated with.  For instance if someone adds a row to the parent and that violates the constraints of the table will the grid display that or do I have to handle all of that on my own? When the user changes rows in the parent the child grid should automatically on it's own query the table and repopulate.  Is this possible with telerik?  My boss thinks the grids should act like the oracle forms or Access forms with the underlying datasource.  Will that functionality work with Telerik Winform controls?

Thank You
Richard Slade
Top achievements
Rank 2
 answered on 16 Mar 2011
6 answers
231 views
When setting day bigger than 12, following error occours:
14.3.2011 0:00:00 is not a valid value for DateTime.
I have tried to set FormatString to {0:dd/MM/yyyy}, then FormatInfo to sl-SI and then both, but nothing works. Windows regional settings are set to Slovenian.
Stefan
Telerik team
 answered on 16 Mar 2011
6 answers
151 views
I use RadMenu in my Windows Application.  If the application run in WinXP, the text in the menu item can be displayed completely.
However, in Win7, only part of the text is displayed (e.g. only "Men" is displayed instead of "Menu Item").  When the mouse over the menu item, it can be displayed (e.g. "Menu Item").

Is it a bug in Win7 or if there is any setting?

Best Regards,
Emily
Nikolay
Telerik team
 answered on 16 Mar 2011
3 answers
253 views

I need a button with 3 images and 3 labels.

Thank you very much.

-----------------------

- Image1   label1 -

- Image2  label2  -

- Image3 label3   -

----------------------- 

Stefan
Telerik team
 answered on 16 Mar 2011
2 answers
78 views
Can I use in radDropDownList webmethod  for data source for AutoCompleteDataSource property ?

If yes, can you give some help code

Thank for effort answer me

Best Regards
Zlatko
Peter
Telerik team
 answered on 16 Mar 2011
2 answers
74 views
I am evaluating this control for a project and we need to be able to have the scheduler devided in 30 minuttes. You have this functionality in the ajax version (MinutesPerRow), is this functionality not available for the win forms version?

Best R, Thomas
Dobry Zranchev
Telerik team
 answered on 16 Mar 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?