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

Im trying to bind datatable in GridView GridViewMultiComboBoxColumn

GridViewMultiComboBoxColumn col = new GridViewMultiComboBoxColumn();
      col.DataSource = dtCash;
      col.DisplayMember = "Name";
      col.ValueMember = "td";
      col.FieldName = "Id";
      col.Name = "Description";
      col.HeaderText = "Name";
      col.DropDownStyle = RadDropDownStyle.DropDown;
      this.gridView.Columns.Add(col);

bool isColumnAdded;
    private void gridView_CellEditorInitialized(object sender, GridViewCellEventArgs e)
    {
      if (this.gridView.CurrentColumn is GridViewMultiComboBoxColumn)
      {
        if (!isColumnAdded)
        {
          isColumnAdded = true;
          RadMultiColumnComboBoxElement editor = (RadMultiColumnComboBoxElement)this.gridView.ActiveEditor;
          editor.AutoFilter = true;

          editor.EditorControl.MasterTemplate.AllowAddNewRow = false;
          editor.EditorControl.MasterTemplate.AllowCellContextMenu = false;
          editor.EditorControl.MasterTemplate.AllowColumnChooser = false;
          editor.EditorControl.MasterTemplate.AutoGenerateColumns = false;
          editor.EditorControl.MasterTemplate.AutoSizeColumnsMode = GridViewAutoSizeColumnsMode.Fill;
          editor.EditorControl.MasterTemplate.AllowRowResize = false;

          GridViewTextBoxColumn colCode = new GridViewTextBoxColumn();
          GridViewTextBoxColumn colName = new GridViewTextBoxColumn();
          colCode.FieldName = "Code";
          colCode.HeaderText = "Code";
          colCode.Name = "Code";
          colName.FieldName = "Name";
          colName.HeaderText = "Name";
          colName.Name = "Name";
          colName.IsVisible = false;
          editor.EditorControl.MasterTemplate.Columns.AddRange(new GridViewDataColumn[] {
            colCode,
            colName});
          editor.AutoSizeDropDownToBestFit = true;

          FilterDescriptor filterDescriptor = new FilterDescriptor();
          filterDescriptor.PropertyName = "Name";
          filterDescriptor.Operator = FilterOperator.Contains;
          editor.EditorControl.MasterTemplate.FilterDescriptors.AddRange(new FilterDescriptor[] {
            filterDescriptor});
        }
      }
    }


I Set the AutoGenerateColumns to true to show only two columns i want.. but when i run, all columns coming from the datable also shows.

I dont know exactly what is wrong with my code.
Saif
Top achievements
Rank 2
 answered on 10 May 2014
2 answers
145 views
I want the button has bottom border only,   how can I do it by Theme?
Jacky
Top achievements
Rank 1
 answered on 09 May 2014
1 answer
113 views
Hi All,
I want ot use Row Details feature of RadGridView, but I need to show or hide this section upon value of one of the row's cell (during data entry) or value of a property of bound object (at startup); is there any way?

Thanks
Ivan Petrov
Telerik team
 answered on 08 May 2014
1 answer
114 views
When radribbonform is maximized,  the taskbar can't popup when taskbar is autohide.
this issue occurs on Win7 & Win8.

Is something wrong with me?
Stefan
Telerik team
 answered on 07 May 2014
1 answer
70 views
Is it possible to have the property items expand above the Category name instead of below?  So an example might be like this:
---  Tax property items show above "Taxes" category name  ---
          City Tax:        $500.00
          State Tax:      $1000.00
          Federal Tax:  $2000.00
Taxes

---  Instead of current way where Tax property items show below the category name  ---
Taxes
          City Tax:        $500.00
          State Tax:      $1000.00
          Federal Tax:  $2000.00

I would use this method to sum-up all of the taxes, and have the "Taxes" category name show the total of all taxes listed above it.  Ie:  "Taxes =   $3500.00"
Thank you.
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 07 May 2014
2 answers
203 views
Hi,

Users can change theme on runtime on our project. But i want to RadTitleBard theme doesn't change anytime. Is this possible?

I use the code that below to change application theme.

ThemeResolutionService.ApplicationThemeName = (sender as RadioButton).Tag.ToString();
..
..

and after i set the code that below. But TitleBar theme doesn't change to "TelerikMetroBlue"

radTitleBar1.ThemeName = "TelerikMetroBlue";

Tanser
Top achievements
Rank 1
 answered on 07 May 2014
2 answers
190 views
Hey all,

Is there any way to display the tabs in a RadPageView on multiple lines?   I can't find the tabstrip from newest version.
I have about 20 tabs on the RadPageIVew Strip,  that is hard to bear to scroll them. 

Any suggestions / comments are appreciated.
Jacky
Top achievements
Rank 1
 answered on 07 May 2014
1 answer
239 views
Hi,

Is it possible to only show months and year for the calendar and not show the days of the year.  We only want the uses to select months and years for the input.
Stefan
Telerik team
 answered on 07 May 2014
2 answers
253 views
I'm having a issue with the hot tracking of input controls hosted on a WindowsFormsHost in an WPF application.

The situation is a host that has half a dozen RadTextBoxes on it, stacked vertically. We have our own custom theme which hot tracks the mouse movement by changing the border of the text boxes - much in the same way that the Windows 7 theme does, going from grey to blue when the mouse moves over the control.

If I now move my mouse up and down the form, going back and forth over the text boxes, the border colour changes don't always change correctly. It basically seems a little random. There are no issues with any of this functionality if I'm using the controls in a WinForms applications. 

I'm not sure whether this is a WindowsFormsHost problem not catching the hover events properly, or a problem with hosted telerik controls, but any help would be appreciated. 

Thanks
Jason
Top achievements
Rank 1
 answered on 06 May 2014
7 answers
231 views
Hi,

I use Dock control for MDI Child Form. When i add new a Child Form, it is adding to dock but don't focus new document. This has changed after last upgrade.

Thanks your help. 

Best Regard
Stefan
Telerik team
 answered on 05 May 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?