Telerik Forums
UI for WinForms Forum
1 answer
203 views
I try add sourse to DropDownList, but this dosn't return result...
Object r is List<CultureInfo>
           
DataTable dtLangs = new DataTable();
dtLangs.Columns.AddRange(new DataColumn[] {new DataColumn("ID"), new DataColumn("Name")} );
AppSetting.Instance.Languages.Select( r => dtLangs.Rows.Add(r.TwoLetterISOLanguageName, r.DisplayName));
 
this.ddlLanguage.DataSource = dtLangs;
this.ddlLanguage.DisplayMember = "Name";
this.ddlLanguage.ValueMember = "ID";
Dimitar
Telerik team
 answered on 30 Jul 2013
16 answers
1.5K+ views
Hi,
I having difficuty to change the radbutton back color. I tried radbutton1.backcolor=color.red. This method is not working. Please help.
thanks so much
Peter
Telerik team
 answered on 30 Jul 2013
5 answers
417 views
Hi,

I would like to filter my Radgridview and then iterate thru filtered rows. Can't be more simple... I use Winform Q3-2010

I have no problem to apply the filter. The RadGridView display only filtered rows. It is OK
But when I want to iterate in them, I read all the rows !!! 

Here my code

Dim serveursource As String = "SRV-13-1;SRV-59-2"
  Dim f As Integer
  Dim words As String() = serveursource.Split(New Char() {";"c})
  Dim strRowFilter As String
  Dim filter As New FilterDescriptor()
  filter.PropertyName = "Dest_Serveur"
  filter.[Operator] = FilterOperator.IsEqualTo
  filter.IsFilterEditor = True
  RadGridView1.EnableFiltering = True
  ' Use For Each loop over words and display them
  Dim word As String
  For Each word In words
      If word <> "" Then
          filter.Value = word
          Me.RadGridView1.FilterDescriptors.Add(filter)
          f = 0
          For Each rowInfo As GridViewRowInfo In RadGridView1.Rows
              f += 1
          Next
          MsgBox(word & "Nb of rows:" & Me.RadGridView1.Rows.Count.ToString & ">>" & f.ToString)
      End If
  Next
What is wrong ?

Thanks
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 30 Jul 2013
3 answers
80 views
Hello

Actually i am new to rad controls and i am binding a gridview with a data table.
my gridview makes rows but didn't show data.

my cs code is
    DataTable tblSrc = new DataTable();
               tblSrc.Columns.Add("Title");
               tblSrc.Columns.Add("Time");
               tblSrc.Columns.Add("PrimaryArtist");
               tblSrc.Columns.Add("Album");
               tblSrc.Columns.Add("PrimaryGenre");
               tblSrc.Columns.Add("Rating");
               tblSrc.Columns.Add("Status");
 
               DataRow dr;
               for (int i = 0; i < 5; i++)
               {
                   dr = tblSrc.NewRow();
 
                   dr["Title"] = "asd";
                   dr["Time"] = "asd";
                   dr["PrimaryArtist"] = "Add To PlayList";
                   dr["Album"] = "asd";
                   dr["PrimaryGenre"] = "asd";
                   dr["Rating"] = "asd";
                   dr["Status"] = "asd";
                   tblSrc.Rows.Add(dr);
               }
 
               //DataSet ds = APS.GetAllPodcastsByPublisherId(73);
               this.Gv_SongList.DataSource = tblSrc;
 Pleases anybody tell me why this happen??
any solution?
Qaiser
Top achievements
Rank 1
 answered on 30 Jul 2013
7 answers
1.5K+ views
Hello,
I'm trying to create a dialog form without title bar and use theme ("Windows8"). Shaped form for some reason uses another window background color, and applying theme doesn't change it. I tried to derive my form from RadForm and hide TitleBar with:
this.FormElement.TitleBar.Visibility = ElementVisibility.Collapsed;

Title bar is hidden. But when I apply "Windows8" theme to my application, my dialog has different border, where TitleBar should be. Also bottom border becomes 1px height, and when TitleBar is visible it is same as left and right borders.

How to accomplish desired look from the attached file?

Thank you.
George
Telerik team
 answered on 30 Jul 2013
1 answer
199 views
Can anyone help me with creating static text column with colspan (no summary for this cell).

Thanks
Dimitar
Telerik team
 answered on 30 Jul 2013
1 answer
132 views
Hi,
I can assign ContextMenuStrip to a radGridView. 
Now I have a Hierarchical Grid, what should i do if i want to assign ContextMenuStripA to master and ContextMenuStripB to detail?  

Dimitar
Telerik team
 answered on 30 Jul 2013
1 answer
158 views
Hello,

We are using Rad Controls Professional Q2 2013. We have a radgridview on a radform that is returning the incorrect selectedrows information.

When the user selects a single row and clicks 'OK', the radgridview.selectedrows property returns a value of nothing. When the user selects multiple rows and clicks 'OK', the selectedrows property returns all selected rows except the the last selected row.

The selectionMode is set to FullRowSelect, and multiSelect is set to True.

When we changed the selectionMode to CellSelect and interrogated the radgridview.selectedcells property, the results were correct. This workaround, however, is not suitable for other radgridviews in our project.

Please advise if there is a fix for this problem.

Many thanks,
Jane
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 29 Jul 2013
3 answers
1.4K+ views
Hello,

is there a simple way to show a "Loading Data" animation when asynchroniously fetching data?
In our application we create a RadTabPage with detailed information about a previously double clicked GridViewItem. This RadTabPage contains an empty RadGridView bound to a properly typed DataBindingsource. Until the data was successfully fetched from our database -- which can be time consuming -- the end user only sees this empty grid.

To communicate to the user that some data will appear, it would be great to overlay the grid with a spinner animation or some textual hint.

We would prefer a generic approach which only affects the GridView itself so that it can be wrapped into an extension method or extended class.


Kind regards,
Andreas Haeusler
George
Telerik team
 answered on 29 Jul 2013
1 answer
159 views
I must be missing something.  In the designer and when the application runs, the column header row looks to be about 35px high.  If I add "MessageBox.Show(myGridView.TableElement.TableHeaderHeight.ToString());" after InitializeComponent() runs, the message shows a value of 20.  If I add "myGridView.TableElement.TableHeaderHeight = 20;" after InitializeComponent() runs, then the column header height looks like 20px.  Am I missing something here?

Thank you,
Gary
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 29 Jul 2013
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
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
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?