Telerik Forums
UI for WinForms Forum
8 answers
158 views
Hi everyone,

I have looked throught many of the forum posts and other documentations pages to see if there is a known solution to my problem... I did not find anything, but that does not mean that I did not overlook it. Anyway... I'm relatively new to the programming world and I am currently taking some programming classes as Lone Star's Montgomery College, where, in one of my assignments, I am to use the Telerik Rad Controls for Windows Forms.  I downloaded and installed the trial software, but now that I have, I cannot create a new project in Visual Studio 2008.  At first I thought that it would be a simple fix by just uninstalling and reinstalling, but I still cannot create a project, nor can I even open any of my old projects.  When I try and open an old project, I simply get the error, "Unable to read the project file 'projectx.csproj'."  If I try and create a new project, it acts like it is going to, but in the status bar at the bottom of the VS window, it says, "Creating project 'WindowsFormsApplication1'... project creation failed."  I have a feeling that this is going to lead to me reinstalling VS but I'd like to avoid that if possible.  Has anyone ever experienced this before or have a possible solution to help me out... unfortunately my assignments are due on a fairly strict deadline so the sooner I could get some help, the better... really, I'd just appreciate any kind of help at this point.

Thanks in advance,

C Jordan
Stefan
Telerik team
 answered on 23 Feb 2011
6 answers
431 views
I have RadLabel with the followng code:

lblInfo.Text =

"<html><span><a href=" + url + ">Getting Started Guide</a></span></html>"
I have to problems:
1. The url is pointong to pdf file. If pdf file is not installed it does not give any error, link just does not work without any indication that it attempted to open the file.
2. The of the link is 3 words with spaces. They are shown three separate links. The screenshot is attached.
Thank you
Lily

 

Peter
Telerik team
 answered on 23 Feb 2011
2 answers
500 views
Hello,
I hope that someone can help me with this little issue.
I would like to change the color of a GroupBox Header back to the applied theme's default color.

I prgrammatically changed the border color with the following code to red to show an invalid user input (a kind of validation).

DirectCast
(.rgrb_CountryOfOrigin.GroupBoxElement.Children(1).Children(1), BorderPrimitive).ForeColor = Color.Red 

When the input is corrected the color should change back to its default value. Actually I use the desert theme.
Is there a possibillity to get a default color value for the assigned theme for the chosen control (eg GroupBox)?
If not, where can I find the theme values like colors etc?
Any help is appreciated.
Cheers Roberto
Roberto Wenzel
Top achievements
Rank 2
 answered on 23 Feb 2011
4 answers
425 views
I've been unable to find specifics in the documentation for how the underlying data rows get updated when binding an editable grid to a dataTable.  I have a problem where I retrieve a dataTable, call AcceptChanges() on it, bind it to the grid and the data shows properly.  When the user edits row cells and clicks the save button, the RowState properties on the underlying dataTable are not set to Modified as they should be.

Is there an Update Mode property or something I'm missing? I've tried clicking elsewhere inside and outside of the grid after editing and the rowState remains unchanged.  Ideas?


EDIT:  The following code appears to fix it. It's called just before saving:

foreach (GridViewRowInfo row in grd.MasterGridViewTemplate.Rows)  
{  
    DataRow dr = ((System.Data.DataRowView)(row.DataBoundItem)).Row;  
    dr.EndEdit();  

Is this the right way I should be handling this? Seems a little kludgy...Thx
Julian Benkov
Telerik team
 answered on 23 Feb 2011
1 answer
121 views
I am using a CommandBarDropDownList to trigger a refresh of the bindingsource for a GridView.  The linq query takes a little while to execute, so the UI gets frozen, which is ok.  Prior to executing the query, I would like the dropdownlist to fully collapse.  I attempt to use application.doevents, but it still will not collapse until the query runs.  See snippet below.

Thanks,
Neal

EDIT:  Tried with regular DropDownList (not in commandbar) and same behavior.  Tried with winforms combobox and the control successfully collapses.

 

Private Sub CommandBarDropDownList1_TextChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles CommandBarDropDownList1.TextChanged
    UpdateGrid()
End Sub
Private Sub UpdateGrid()
    Application.DoEvents()
    Me.Cursor = Cursors.WaitCursor
    Dim db As New DAL_DataContext
    db.Log = Console.Out
    Dim qryRep = (From item In db.RepSaleDetails Where item.RepSaleHeader.Date.Value.Year = CommandBarDropDownList1.Text Select _
              Descr = item.RepSaleHeader.Rep.LastName, _
              Amount = CInt(item.Qty * item.Price), _
              Month = item.RepSaleHeader.Date.Value.Month)
    Dim qryCust = From item In db.CustSaleDetails Where item.CustSaleHeader.Date.Value.Year = CommandBarDropDownList1.Text _
                  And item.CustSaleHeader.RefNo >= 3000 Select _
                    Descr = "Ann", _
                    Amount = CInt(item.Qty * item.Price), _
                    Month = item.CustSaleHeader.Date.Value.Month
    Dim qryInternet = From item In db.CustSaleDetails Where item.CustSaleHeader.Date.Value.Year = CommandBarDropDownList1.Text _
                      And item.CustSaleHeader.RefNo < 3000 Select _
                      Descr = "Ann Internet", _
                      Amount = CInt(item.Qty * item.Price), _
                      Month = item.CustSaleHeader.Date.Value.Month
    Dim qryAll = qryRep.Concat(qryCust).Concat(qryInternet)
    Dim MyTable = qryAll.GroupBy(Function(i) i.Descr).Select(Function(g) New TrendAnnual With _
             {.Descr = g.Key, _
              .Tot = g.Sum(Function(c) c.Amount), _
              .Jan = g.Where(Function(c) c.Month = 1).Sum(Function(d) d.Amount), _
              .Feb = g.Where(Function(c) c.Month = 2).Sum(Function(d) d.Amount), _
              .Mar = g.Where(Function(c) c.Month = 3).Sum(Function(d) d.Amount), _
              .Apr = g.Where(Function(c) c.Month = 4).Sum(Function(d) d.Amount), _
              .May = g.Where(Function(c) c.Month = 5).Sum(Function(d) d.Amount), _
              .Jun = g.Where(Function(c) c.Month = 6).Sum(Function(d) d.Amount), _
              .Jul = g.Where(Function(c) c.Month = 7).Sum(Function(d) d.Amount), _
              .Aug = g.Where(Function(c) c.Month = 8).Sum(Function(d) d.Amount), _
              .Sep = g.Where(Function(c) c.Month = 9).Sum(Function(d) d.Amount), _
              .Oct = g.Where(Function(c) c.Month = 10).Sum(Function(d) d.Amount), _
              .Nov = g.Where(Function(c) c.Month = 11).Sum(Function(d) d.Amount), _
              .Dec = g.Where(Function(c) c.Month = 12).Sum(Function(d) d.Amount)})
    GridBindingSource.DataSource = MyTable.OrderBy(Function(i) i.Descr)
    db.Dispose()
    Me.Cursor = Cursors.Default
End Sub

 

 

 

Peter
Telerik team
 answered on 23 Feb 2011
3 answers
107 views
Hello all,

When I make an appointment in dayview with the RangeFactor set to five minutes. I can make 2 appointments, say 10:00-10:10 and 10:10-11:00. When I switch to weekview with the standard RangeFactor of 30 minutes these appointsments are placed side by side and the visual representation looks like 10:00-10:30 and 10:00 to 11:00. The timevalues are correct inside the dialog and database. The visual timescale is wrong, they should not overlap, but be placed on below one another. If I set the RangeFactor to 5  minutes I cannot see al the appoints in one screen.

This sample can be reproduced by the demo radschedular (exept for the 5 minute timescale). I am using Radcontrols for Winforms Q3 2010 (2010.3.10.1215)

I could not find a answer on the forum, maybe I used the wrong search values. What am I doing wrong?

Kind regards Marc Henssen
Dobry Zranchev
Telerik team
 answered on 23 Feb 2011
1 answer
244 views
Hello,

For a GridViewComboBoxColumn, is there a way to always show the dropdown arrow, so it is obvious to the user they can change the value? See screenshot attached

Thanks
Richard Slade
Top achievements
Rank 2
 answered on 22 Feb 2011
9 answers
1.2K+ views
Hi,
I need to enable disable context menu depending on the cell that is currently right clicked on. How do I go about this?

Thanks
Deepak
Richard Slade
Top achievements
Rank 2
 answered on 22 Feb 2011
9 answers
142 views
When double clicking or more (n-clicking) on any radtreeview node, or radcontextmenuitem (at least, maybe it happens on other controls), the screen freezes for a few seconds, apparently cueing the events before even going to the event handler on the code behind. The result of this is that any action is repeated n-times.
Any workaround or help will be great!
Best Regards,

Mariano Liceaga
Richard Slade
Top achievements
Rank 2
 answered on 22 Feb 2011
19 answers
538 views
I am using a gridview that i programmatically load 2 levels at run time. My question is, i want to be able to load the child rows of the 2nd level whenever the 1st level is expanded. i was able to locate the child is expanding and expanded events. But is there a way i can then go on and attach the children of the child row to the datagrid?????
Richard Slade
Top achievements
Rank 2
 answered on 22 Feb 2011
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
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?