Telerik Forums
UI for WinForms Forum
17 answers
960 views
Hello,

I have a form with 3 "drop down" selectors that are used to filter a data grid. They have quite a few records in them. The first one has 1800, second has 4100 and the third has 12800.

I have tried quite a few drop down objects. The default .net combobox control, then the raddropdownlist. The data returned from the query is fast but the binding to the control is slow for the .net object. The raddropdownlist is extremely fast and I was going to use that except for two things. First, I can't seem to get the control to "text align=left" so when a value that's wider then the control is chosen your cursor goes off the object. Second it doesn't have multiple columns. After I read the "Auto Complete" doesn't work for the multicolumncombobox, I wasn't going to use it.

But then I went through the demo and the filtering functionality is good enough to simulate auto complete even if the user still has to choose a selection, they sacrifice the auto population for the multiple column view.

I've tried to use the multicolumncombobox for the 1800 record control and it is slow to respond. Even after it binds the data, changing selections or filters has some hiccups. The box is bound to an .xsd with three columns in it and only refreshes when the form loads. Is there something I can toggle to improve performance of the suggestion popup box?

Alternately, if there is a way to set the "text align=left" on the raddropdownlist control, the speed of that object is unmatched and I would rather use that.

Thank you
George
Telerik team
 answered on 24 Feb 2014
5 answers
1.1K+ views
Hallo Telerik Team,

I would like to know how I add a list of images to a ListView as Icon View. The path images are in a List<string> and they are into:
C://Documents/Pic/.
How can I do that? The images paths are saved in a dataTable in a database.

Thank you very much.

Best regards,

Alfonsina Mello


Stefan
Telerik team
 answered on 24 Feb 2014
3 answers
136 views
Hello!

In my desktop application I´m trying to implement telerik winform controls.

when I have used radbutton I´ve got a problem. I´m not able to click on the buttons.

This is the code I´ve used fot a button which is not clickable in my case:

//this.btnNew.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); 
this.btnNew.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(39)))), ((int)(((byte)(119)))), ((int)(((byte)(169))))); 
this.btnNew.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnNuevo.BackgroundImage"))); 
//this.btnNew.FlatAppearance.BorderColor = System.Drawing.Color.White; 
//this.btnNew.FlatStyle = System.Windows.Forms.FlatStyle.Popup; 
      this.btnNew.Font = new System.Drawing.Font("Verdana", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel); 
this.btnNew.ForeColor = System.Drawing.Color.White; 
this.btnNew.ImageAlignment = System.Drawing.ContentAlignment.MiddleLeft; 
this.btnNew.ImeMode = System.Windows.Forms.ImeMode.NoControl; 
this.btnNew.Location = new System.Drawing.Point(512, 417); 
this.btnNew.Margin = new System.Windows.Forms.Padding(0); 
this.btnNew.Name = "btnNuevo"
this.btnNew.Size = new System.Drawing.Size(90, 35); 
this.btnNew.TabIndex = 42
this.btnNew.Text = "Nuevo"
this.btnNew.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText; 
//this.btnNew.UseVisualStyleBackColor = false

The commented lines are because radbuttons don´t recognize those properties. They were used before with windows form controls.

do you know why button can´t be clickable?

Than you in advance.
Stefan
Telerik team
 answered on 24 Feb 2014
2 answers
831 views
I have a radGridView on a form which has cell and row validation implemented. No problem with that, works well.

The problem arises when I leave a row incomplete and then click on the Save button elsewhere on the form. The RowValidating code snippet below does not work, because once the focus moves away from the GridView to the Save button, the 'if (row != null)' check always returns false, and the RowValidating code is never executed.

private void radGridView1_RowValidating(object sender, RowValidatingEventArgs e)
    {
        var row = e.Row as GridViewDataRowInfo;
 
        if (row != null)
        {
            var value = row.Cells["cboUnit"].Value.ToString();
            if (string.IsNullOrEmpty(value))
            {
                e.Cancel = true;
                row.ErrorText = "Unit Number is a required field";
            }
 
            else
            {
                row.ErrorText = string.Empty;
            }
     }
}


How can I retain focus in the grid to ensure that the entire grid validates before allowing the user to leave the grid?
Peter
Top achievements
Rank 1
 answered on 21 Feb 2014
2 answers
121 views
I see in the examples application that row details can be used for editing.

Specifically, it says "Row Details can also be used for providing a more convenient editing environment for the end user."

I can't find any documentation, examples, videos or posts about this functionality though. Has anyone used this or know where to find information on it?

Thanks.
George
Telerik team
 answered on 21 Feb 2014
1 answer
158 views
Hello,

I am trying to format a cell. I am returning a Boolean value and instead of displaying a true or false in the cell I want to display a 1 for true and a 0 for false. I have this in the cell formatting event and I have two columns, the first returns the true/false value which I am reading and then displaying the 1,0 in another column. It works fin when the true/false column is visible but when I hide it I do not see the 1,0 in the other column.

Here is what I have:
​ //Cell formatting for start bit visual indication. The Start column has been hidden.
if (e.CellElement.ColumnInfo.HeaderText == "Start")
{
if ((bool)e.CellElement.RowInfo.Cells["Start"].Value == true)
{
e.CellElement.RowInfo.Cells["StartBit"].Value = "1";
}
else
{
e.CellElement.RowInfo.Cells["StartBit"].Value = "0";
}
}


Can this be done in the expression editor for the true/false column or what is the best way to achieve this.

Thank you,

chom
Dimitar
Telerik team
 answered on 21 Feb 2014
3 answers
139 views
I am trying to add a page programatically and I am unable to see newly added page.

However, I have noticed the PageIndex is increasing.

The following is the code:

Telerik.WinControls.UI.RadPageViewPage page1= new Telerik.WinControls.UI.RadPageViewPage();

page1.Text = "Search";

RadPageView1.Pages.Add(page1);


What I found is Page1 visible property is set to false.

Can anyone help me on this.

Thanks
Charan.
Stefan
Telerik team
 answered on 21 Feb 2014
1 answer
94 views
Hi,
i want to know how can i retrieve values of edit recurrence form after i press button ok in edit appointment form
 to reflect in radscheduler and save values of recurrence form in sql db
Dimitar
Telerik team
 answered on 20 Feb 2014
1 answer
254 views
We have a problem about the ‘RadRepeatButton’ on the touchscreen computer. We have tried the ‘repeat button application’ under the ‘buttons’ tab in the ‘Demo Applicaion – RadControls for WinForms Q3 2013’ on Windows 8 but the button works only when we double tap. When we tried the same application on Windows 7 the button works properly as soon as we tap on it. Does the ‘Rad RepeatButton’ not work on Windows 8? Or does this button works when you double tap on it. We think it should operate when you touch it.

The problem we experience occurs only when we tap on the  touchscreen. Other than that, when we use the mouse, it operates properly on both operating systems.

What can we do in order to make the rad repeat button operate when we tap and hold on it (not double tap) on Windows 8?
George
Telerik team
 answered on 20 Feb 2014
1 answer
151 views
Hello everyone,


I have a little problem with your calculated columns.
I need to get all calculated cells with value less than 0, but when I iterate to get the values < 0 I get fewer results. I guess is something related to the moment when is refreshed the calculated value. 

how can I get the count of cells with value < 0

right now I am making a linq query like this:

grid.Rows.OfType<GridViewDataRowInfo>().Count(x => Convert.ToDouble(x.Cells["columnName"].Value) <= 0);

but I get only 5 results. It seems that the refresh event of the calculated cells is fired when I scroll down, is that correct? can I force the program to calculate all of them?

thanks :)
George
Telerik team
 answered on 20 Feb 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
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
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?