Telerik Forums
UI for WinForms Forum
1 answer
143 views

I've written a single dialog box to handle error messages, input box, yes/no dialog with metro touch theming.

I show and hide controls and shuffle them into position as necessary.

The file shows 3 images, top one is at design time and the bottom two at run time.

My problem is that I need to catch the window layout after the theme adjusts the sizes of the controls but before they're displayed so I can perform a final shuffle. As you can see, especially on image 3, the position of the buttons, despite being anchored bottom and left/right are a long way off their original site. On image 2 I try to reposition them programatically, but the theme hasnt been fully applied and the button heights are returned to me as 24 when they're actually 32.

Is there an event which I should trap to do this please?

Hristo
Telerik team
 answered on 20 Jan 2017
2 answers
110 views

How do I change a node's checkbox state when the user clicks on the node's label text as opposed to clicking on the checkbox itself? 

This needs to work when the treeview is in Tri-state mode (needs to handle intedeterminate state as well as on/off). 

Thanks

 

Lou
Top achievements
Rank 1
 answered on 20 Jan 2017
9 answers
251 views

Hi,

Currently, I am using DontNetMagic library.. Now i want to switch to Telerik WinForms.

My requirement is to add a field (as highlighted in attached image) by inheriting any of CommandBar class in my own class.

The text (20%) will be updated as and when performs any zoom operation.

What is the recommended way to achieve the desired functionality?

 

Thanks,

Harshal

Dimitar
Telerik team
 answered on 20 Jan 2017
2 answers
85 views

Hi,

would be cool if tooltips defied for RadGridView Columns would also show in the column chooser.

Regards

Erwin

erwin
Top achievements
Rank 1
Veteran
Iron
 answered on 20 Jan 2017
1 answer
178 views

Is there a way, in the grid view, to programmatically get a list of rows that are only visible on the screen.  For example, I have 100 rows in my datasource and I only show 15 rows of in my gridview, I scroll down a few pages. I want to get a list of the rows that are visible, programmatically.  How can I do that?

 

Thanks

Dimitar
Telerik team
 answered on 20 Jan 2017
7 answers
276 views

I have a 'Person' column which I'm wanting to filter. The problem is, I'm trying to load on demand a suggestion drop down list as the user types in the filter box. But I don't want the VirtualGrid's filter to be updated as the user is typing. I want the VirtualGrid's filter to updated by the user selecting an option from a suggerstion drop down. After the user has entered at least 4 characters in the filter textbox, I query 50 items from the server to populate the suggestion drop down. As the user continues typing, the suggestion drop down will be reloaded with the new set of results. Again, no filter should be added to the VirtualGrid until the user clicks an item in the suggestion drop down. And the user should be able to use the up/down arrows to scroll through the suggestion list without it changing the text in the filter textbox as that would cause a requery and reload of the suggestion items.

 

I tried this using VirtualGridDropDownListEditor and creating a custom AutoCompleteSuggestHelper. This worked great in displaying the suggested list and reloading as the user typed. I could arrow up and down without reloading the suggestion list. But once I clicked on the item in the list, I could get the VirtualGrid to be notified on the filter being set.

I also tried using VirtualGridAutoCompleteBoxEditor but couldn't prevent it from immediately notifying the VirtualGrid of the change in the textbox without cancelling the textbox value change completely.

 

Requirements:

  • Enter text in filter textbox without adding a filter the VirtualGrid
  • OnTextChange, reload a suggestion drop down list
  • Navigate items in suggestion drop down list using arrow keys without changing textbox's text
  • On suggestion drop down list item clicked (or pressing enter) set filter to VirtualGrid
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 20 Jan 2017
1 answer
117 views

I've run into a very strange issue with binding a simple List of objects to a DropDownList. Given the following code: 

 

this.myDDL.DataSource = null//in here to make sure any pre-existing source isn't the problem
List<Person> lst = new List<Person>();
var qry = Employees.List(load); //Returns List<Person> with no errors every time
lst.AddRange(qry.ToArray()); //Proof that there are no errors.  lst.AddRange() works flawlessly on the data
this.myDDL.BindingContext = new BindingContext(); //just added this, in case it was the issue
this.myDDL.DataSource = lst;  //bombs.

 

The very strange thing is that the error thrown is an Oracle error.  Normally, I'd be pestering Oracle about it, but the weird bit is that it only throws the error when assigning the datasource.  This doesn't match Oracle error ORA:00933 (SQL Command not properly ended) at all, but that's the error that is thrown.  The unnecessary extra code above is entirely a result of me trying to isolate a cause, but the query itself that runs to fill in one of these objects is a Stored Procedure that is called in our Production environment many times a day in the exact same way.  The object itself is too simple to be the cause:

public class Person
{
      public int ID {get;set;}
 
      public string FullName {get;set;}
 
      public override string ToString()
      {
             return ID.ToString() + "(" + FullName + ")";
      }
 
}

There are no null values in any property of the objects, no nulls added to the list, and the error doesn't occur until Binding.  Does the Telerik RadDropDownList recall the constructor of each object when using a List<T> as a DataSource? If not, why would the error appear when binding instead of when the objects are initially constructed?

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 20 Jan 2017
0 answers
97 views

Hello,

When I navigate with hot keys Alt - F - R (refer attached image), I can see the sub menu, but I am not able to select any of them with help of keyboard.

below is my code:

Dim recentDocMenuitem As New RadMenuItem("&Recent Documents")
myRecentDocuments.ParentMenu = recentDocMenuitem
myRecentDocuments.ParentMenu.PerformClick()

myRecentDocuments is a object of my custom class which gets the list of documents.

I would be glad If you have any alternative in Telerik to show recently opened files, so that I can use that instead of my custom class. :)

Please suggest workaround for it.

 

Thanks,

Harshal.

harshal
Top achievements
Rank 1
 asked on 20 Jan 2017
5 answers
151 views

I have a rad view to which I am assigning data source from a SQL table which as 2 rows in it. But when I assign the data source the data is

 

  If oSQL.IsConnected Then
            Try
                ds = oSQL.GetDataSet("Select * from compliance_calculation_runs_hist order by cc_calc_id", CommandType.Text)

                If ds.Tables(0).Rows.Count > 0 Then
                    ds.Tables(0).TableName = "getSavedCalc"

                    RadGridView1.MasterGridViewTemplate.AutoGenerateColumns = False
                    RadGridView1.DataSource = ds
                    RadGridView1.DataMember = "getSavedCalc"
                End If
            Catch ex As Exception

            End Try
        End If

Gowtama Krishna
Top achievements
Rank 1
 answered on 19 Jan 2017
3 answers
80 views

I have a main form frmInnovation that contains a textbox txtInnovationID, and I have a Telerik RadGridView on the form TableSituations with a column InnovationNameID of type int32.
What I want to do is to filter the RadGridView on form load according to the txtInnovationID.

TableSituation.InnovationNameID = txtInnovationID

 

I use this code to filter strings, but how to modify to filter int32.

BindingSource bs = new BindingSource();
bs.DataSource = TableSituations.DataSource;
bs.Filter = TableSituations.Columns[2].HeaderText.ToString() + " LIKE '%" + txtInnovationID.Text + "%'";
TableSituations.DataSource = bs.DataSource;

I need also to change the code from "LIKE" to "Equals".

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 19 Jan 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)
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
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
ShapedForm
SyntaxEditor
Wizard
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
Overlay
Security
LocalizationProvider
Dictionary
SplashScreen
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
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?