Telerik Forums
UI for WinForms Forum
2 answers
159 views
When I paste clipboard data into a RadGridView cell without entering cell edit mode, the grid view automatically resets the scrollbar position to the top.  If I paste data while in cell edit mode, the scroll position does not change.

I need to be able to paste data without entering cell edit mode because I am typically pasting data into a range of cells, and not just a single cell.  How can I prevent the scroll position from changing when I paste data while not in cell-edit mode?

Thanks,

Brian
Brian
Top achievements
Rank 1
 answered on 12 Nov 2014
2 answers
393 views
I had developed a Winform app with using Telerik RadGridview before.
All clients use it without any problem.
But a few days ago, a client called me and told that it crashes anytime when he/she clicked any row in gridview.

We haven't thought that it could be related to telerik dll because any other clients use it successfully...
So we made a thorough search on net and tried any cause/solution possibilities but it didn't work out.
Even, we made the client format the machine and installed the system fresh again but after a short time, it started to crash... 

The most interesting side of the issue is that it happens only whenever i click, double-click or select any row in radGridview...
it just crashes and try to close the app directly...

I use 8.0.0.0 version of Telerik components which is bought in 2008, i believe

The error is very odd! couldn't think any solution to overcome...

What can i do to work the app out? Urgent help, please???

----------------------------------------------------------------------------------------------------------------------------------------------------

The event log of the machine shows me the below error log:

Windows Error Reporting
Problem signature:
  Problem Event Name: CLR20r3
  Problem Signature 01: Menu.exe
  Problem Signature 02: 2013.2.814.2
  Problem Signature 03: 520bcf56
  Problem Signature 04: mscorlib
  Problem Signature 05: 4.0.30319.19075
  Problem Signature 06: 515a73c2
  Problem Signature 07: 2b00
  Problem Signature 08: 0
  Problem Signature 09: 5O2O3I2ORVH4ZJ0NRQ1HQUEQ4B3YAU4U























George
Telerik team
 answered on 12 Nov 2014
4 answers
328 views
So I have a RadGridView  that is bound to a "BindingSource." The bindingsource is populated using a SqlDataAdapter.
The data being pulled in has an auto-incrementing Identity Column (ID) as it's primary key. 

I have successfully bound the grid, I can edit records and successfully see the changes in the database. However when I add a record, the data is successfully added to the database, but in the grid the "ID" field shows a value of "0" instead of the actual new value. How do i refresh the grid to show the new information? 

Thank you!
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 12 Nov 2014
1 answer
225 views
Hi Telerik Support,


We are creating theme for our windows application so far we got most of the controls to work as per our requirement but now we are facing some issue for RadTextBox null text.

FYI, i have created this theme in Visual style builder. If possible then please provide help for visual style builder first. If its not possible in theme then code will also work.

I have attached image with this post. Please check it for reference to the problem.

In normal TextBox you can see text entered by me which is "not null text" and it is displaying properly. I mean padding on top and bottom is proper in it.
But when you check another textbox which is having null text i mean text which is coming as placeholder is not proper. if you will zoom it and see closely then you will find that bottom padding is low compare to Top padding.

Please help me to find a solution for this.

Thank You,
Elke
Dimitar
Telerik team
 answered on 12 Nov 2014
2 answers
256 views
I want to change the
backcolor of a listViewDataItem, then later on, change it back to the standard
color (ie white if it's not selected or the standard selection color of it's
selected).

I'm using this code to change the backcolor:

previewedListItem.BackColor = Color.Gold
previewedListItem.BackColor2 = Color.Gold
previewedListItem.BackColor3 = Color.Gold
previewedListItem.BackColor4 = Color.Gold

and this code to change it back:

previewedListItem.BackColor = Color.FromArgb(0, 0, 0, 0)
previewedListItem.BackColor2 = Color.FromArgb(0, 0, 0, 0)
previewedListItem.BackColor3 = Color.FromArgb(0, 0, 0, 0)
previewedListItem.BackColor4 = Color.FromArgb(0, 0, 0, 0)

The problem is that once I've changed it back, if the user selects that item,
it stays white instead of showing the selection color. How can I change the
color back in a way that will still show the selection color if the item is
selected?
Stefan
Telerik team
 answered on 12 Nov 2014
1 answer
137 views
In the UI for ASP.Net, the drop down control has an option 'AllowCustomText' which seems to be what I need for the UI for WinForms.  My users want to be able to select an item from a drop down box or type in a value that is not in the list.  I do not want the value they enter to be saved in the list.  Right now, when I set the drop down to 'DropDown' (as opposed to DropDownList) the user can edit the text, but as soon as they tab off the cell, it replaces what they typed with the nearest entry in the drop down.

I have seen some threads that discuss solutions, but they seem so cumbersome and all of them have the typed in value being added to the drop list.

Isn't there an easier way to implement this functionality?  (I'm on UI for WinForms 2014 Q1)
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 10 Nov 2014
6 answers
151 views
This (to me) seems to be a bit of an odd one.

I have a RadTreeView, if I set the SortOrder to None,  then Drag'n'Drop features work .. as i'd expect.

If I set the SortOrder to Ascending;  then Drag'n'Drop appears to be switched off?


Am I missing something?   Is there a setting I need,  or do I have to either implement my own custom sorting or custom drag'n'drop?

Thanks
Brian.
David
Top achievements
Rank 1
Iron
Iron
Veteran
 answered on 10 Nov 2014
1 answer
911 views
Hi,

Is there a way to change a rowfont to Bold based on the criteria in the records?

Example: 
Where I have code "c2.RowFont.Bold = True", it gives me error that Property Bold is read only.

Private Sub SetConditions()
     Dim c1 As New ConditionalFormattingObject("Forecolor Black", ConditionTypes.Equal, "0", "20", True)
     c1.RowForeColor = Color.Black
     grd1.Columns("trd_typ").ConditionalFormattingObjectList.Add(c1)

     Dim c2 As New ConditionalFormattingObject("Forecolor Blue", ConditionTypes.Equal, "3", "", True)
     c2.RowForeColor = Color.Blue
     c2.RowFont.Bold = True
     grd1.Columns("trd_typ").ConditionalFormattingObjectList.Add(c2)

     grd1.TableElement.Update(False)
End Sub
Dimitar
Telerik team
 answered on 10 Nov 2014
1 answer
106 views
I want to programmatically tell the grid when to show the [+] hierarchy expand button.  Can this be done or do all the rows have to have this enabled?

I have a databound master and a load-on-demand child.  My problem is that not all rows make sense to have this template shown.  Below is how I am approaching this now. 

GridViewTemplate template = new GridViewTemplate();
 template.Columns.Add(new GridViewTextBoxColumn("Account"));
template.Columns.Add(new GridViewTextBoxColumn("CRM Opp ID"));
 gvAttainment.MasterTemplate.Templates.Add(template);

template.HierarchyDataProvider = new GridViewEventDataProvider(template);
 this.gvAttainment.RowSourceNeeded += new GridViewRowSourceNeededEventHandler(gvAttainment_RowSourceNeeded);

...

void gvAttainment_RowSourceNeeded(object sender, GridViewRowSourceNeededEventArgs e)
{
            
            switch (e.ParentRow.HierarchyLevel)
{

case 0:
                        //Query DB for data and display here
                        GridViewRowInfo row = e.Template.Rows.NewRow();
                        row.Cells["Account"].Value = from DB
Dimitar
Telerik team
 answered on 10 Nov 2014
1 answer
747 views
Hi.
I have a radgridview with a multi columns  and one column is a combobox , i want to validation row when user select a item in combobox on ValueChanged event in radgrid . how can i get value a cell (combobox) in radgridview on ValueChanged event  ?
plz help me .
Stefan
Telerik team
 answered on 10 Nov 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
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
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
RibbonForm
Styling
Barcode
PopupEditor
TaskBoard
NavigationView
Callout
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
SpeechToTextButton
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?