Telerik Forums
UI for WinForms Forum
4 answers
298 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
201 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
231 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
106 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
134 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
848 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
88 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
686 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
1 answer
122 views
Hi,

I get this exception trying to filter a column on a radgridview setup as "Excel-like" mode.

The colum shows the "Duration" and it is a "TimeSpan" databind type.

Any help would be appreciated.

Thanks

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 10 Nov 2014
3 answers
479 views
Hi there.

I'm currently evaluating Telerik for an upcoming personal project.

The attached image is a very crude mock up of the type of look I'd like to achieve with the list view control, but I'm running into a few walls. Most other controls I've been able to work my way around but no so far with ListView.

I'm the control to show all items in ViewType ListView, Each item will have a thumb nail image, and I'd like to display a main header text (Series Name) with associated sub text of differing fonts and sizes. This is where I'm stumbling, any assistance would be greatly appreciated.

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