Telerik Forums
UI for WinForms Forum
2 answers
253 views

Hello,

May somebody help me undestand this:

Let be a grid with one column only and 3 rows.

 

While I know that it is possible to have a customized editor ar row level, by means of the "EditorRequired", is it possible to have on the displaying side, not while editing, something like this:

if (Row == 0) display the cell with a Checkbox

if (Row == 1) display the cell with a TextBox

if (Row == 2) display the cell with a CustomControl, like a progress bar for example?

 

Thank you.

 

Tomaso
Top achievements
Rank 1
 answered on 22 Sep 2017
1 answer
1.5K+ views

I have a GridView in my Winform application and its datasource is bound to a list of custom objects. Let's assume this custom object has 2 fields: name and ID, so the gridview has also 2 columns: name and ID. (name first, then the ID). 

 

Now I want to select the row that has the given ID.

How can I select it? gridView1.Rows[0].IsSelected = true; is not OK here, because I don't know the index of the row.

The GridView has DataSource set this way (of course this is a simple example):

 

List<MyObject> myList=new List<MyObject>();
myList.Add(new MyObject("name1", 1));
myList.Add(new MyObject("name2", 2));
gridView1.DataSource = myList;

Thanks for your help

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 22 Sep 2017
4 answers
653 views
I have created a summary row like this:

private void radGridView1_Initialized(object sender, EventArgs e)
       {
           this.radGridView1.SummaryRowsBottom.Add(new GridViewSummaryRowItem(new GridViewSummaryItem[]{
           new GridViewSummaryItem("Balance", "{0}", GridAggregateFunction.Sum)}));
           this.radGridView1.MasterTemplate.ShowTotals = true;
           this.radGridView1.MasterView.SummaryRows[0].PinPosition = PinnedRowPosition.Top;
       }
 and I have formatted the text in this way:
private void radGridView1_ViewCellFormatting(object sender, CellFormattingEventArgs e)
    {
           
        if (e.CellElement is GridSummaryCellElement)
        {
            e.CellElement.TextAlignment = ContentAlignment.MiddleRight;
            Font summaryFont = new Font("Segoe", 9, FontStyle.Bold);
              
            e.CellElement.Font = summaryFont;
        }
    }
How can I set the format string like this {0:R #.##,##}?
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 22 Sep 2017
0 answers
98 views

hi ,

I am using custom cell in gridview. Custom cell contains 1 textbox and 1 label. So now how can i get event when i tab into this custom column. I want when in normal mode it will display label , and when in edit mode it will display textbox. Now i am using SetCotentCore to visible/hide control but how can i catch event when i tab in gridview.

https://www.screencast.com/t/75Qy9E3s

Bao
Top achievements
Rank 1
 asked on 21 Sep 2017
5 answers
389 views

Hi there,

Is there any rad control that similar with window's CheckedListBox?


Thanks.
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 21 Sep 2017
3 answers
388 views

Hello.

I'm trying to create automated tests for RadGridView using TestStack.White, test should click on row. Code:

var searchResults = window.Get<Table>(SearchCriteria.ByAutomationId("searchResults"));
var row = searchResults.Row[0];

searchResults is found, but rows are always empty, even if there are rows on grid.

Also, when I review the form using Visual UI Automation verify (https://msdn.microsoft.com/ru-ru/library/jj160544.aspx), it shows strange information, no automation ids for elements and so on. So, it seems like it is not possible to write automated tests for RadGridView.Is this true, or if not, is there some guidance how to do this?

Ralitsa
Telerik team
 answered on 21 Sep 2017
2 answers
114 views

After the user selects an image file from the browse editor, I'd like to display it in a button, much like the example in the Telerik documentation. I've tried different calls to the button's methods including: Update, Refresh, and Invalidate. Nothing has worked. What am I missing?

 

1.Private Sub radLogoFile_ValueChanged(sender As Object, e As EventArgs) Handles radLogoFile.ValueChanged
2.    btnLogoImage.Image = System.Drawing.Image.FromFile(radLogoFile.Value)
3.    btnLogoImage.Update() 'Invalidate 'Refresh
4.End Sub
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 20 Sep 2017
4 answers
248 views

Hello,

I am using Visual Studio 2015.

I want a fresh project of ListView Checked Listbox (Winform Source)

 

I know there is a source code :C:\Program Files (x86)\Telerik\UI for WinForms Q2 2016\Examples\RichTextEditor\QuickStart\ListView\CheckedListBox

 

But i am unable to use it on my winform. It showing errors. I don't know why ?

 

Anyway can anyone help me to just give me ListView\CheckedListBox project in winform that i can open with Visual Studio and RUN.

 

Thanks

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 20 Sep 2017
12 answers
338 views
Hi,

The grid I am using in my app has a summary row added in the bottom. It also has the AllowNewRowPosition set to bottom. This causes the "Click here to add a new row" to appear in the bottom. The user is requesting that I move the Summary row to the bottom most position and have the "Click here to add a new row" appear right before the Summary Row.

has anyone done this? Any help on this would be greatly appreciated.


Thanks!
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 20 Sep 2017
1 answer
138 views
I have a Spanish based language site: http://www.ensayostube.com/ with informations about different topics.

I want to implement a simple responsive css/html dropdown list (mobile and desktop) for my site on pages like this on the right side:
http://www.ensayostube.com/documentos/ingenieria/electronica/3.php
 of the site categories :

Biología
Ciencia
Física
Francés
Gramática
Inglés
Literatura
Matemáticas
Ordenador
Pedagogía
Química

i want to be on dropdownlist.

But the dropdown shold be SMALL on MOBILE and bigger on desktop or tablets

How can i do that?

I need some html/css code suggestions, to make this.

Thanks all
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 20 Sep 2017
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)
Chart (obsolete as of Q1 2013)
Form
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
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
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
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
Styling
Barcode
BindingNavigator
PopupEditor
RibbonForm
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
BarcodeView
BreadCrumb
Security
LocalizationProvider
Dictionary
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
ToolbarForm
NotifyIcon
DateOnlyPicker
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?