Telerik Forums
UI for WinForms Forum
2 answers
76 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
142 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
260 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
113 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
91 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
146 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
77 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
2 answers
234 views

HI,

I am using RadCheckedDropDownList.

I want to disable edit possibility in EditableElement.

User can only check options by opening list (arrow button).

So i change DropDownListElement.EditableElement.Enabled to false.

But how can i remove "X" button next to each option in EditableElement?

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 19 Jan 2017
1 answer
471 views

Hi.

I've got a text column that has multiple lines in some of the cells.  When I auto-size the rows those rows show up very tall to display all the text, but I prefer to show just the top line and keep the row height the same as the rest.  My first problem is that I can't find out what that height should be.  Every time I look at Rows[n].Height I see -1.

It's not a perfect solution anyway, but I'm still curious about that value.  For a better solution, I'd like some way of finding out the proper height of a single row given the font I'm using.

Thanks in advance for any help.

Dimitar
Telerik team
 answered on 19 Jan 2017
1 answer
173 views

Hi,

I'm using the PdfViewer with succes but when a pdf is loaded that pdf is also locked in the filesystem.
is there some way to prevent that?
So I would like to load the pdf and then disconnect form the file while the content is still in de PdfViewer.

Regards
Didier

Dimitar
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
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
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
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?