Telerik Forums
UI for WinForms Forum
7 answers
265 views

Hello

I was looking for a way to set the active (default) child template in hierarchical radGridView programmatically.

but I could not find any property to set that.

Is there a way to do that?

hosein
Top achievements
Rank 1
 answered on 23 Feb 2011
5 answers
248 views
Good morning, i am having an odd problem when adding documentwindows to my radDock.
When i add a new tab, the tab allways open in the first position(left) of the first tab of my raddock, i have tried to change the position from "InFront" to "OnBack" but nothing changes. I use the radDock.AddDocument(documentWindow) method.

I want to know how i can make my tabs to open in the last position of the tabcontainer in my raddock instead of the first position.

Hope you can help me, best regards
Rui Silva
Richard Slade
Top achievements
Rank 2
 answered on 23 Feb 2011
3 answers
73 views
Problem with setting sort order. Please see following video: http://www.mjnet.si/SortOrder.avi
Richard Slade
Top achievements
Rank 2
 answered on 23 Feb 2011
14 answers
214 views
Hi All,

         Actually i am new to telerik controls. Am using c#. My senario is - I have a radgridview. Inside that first column and second column are comboxcolumns. Users are allowed to add rows to gridview. And then click save button to save all the rows into database. Once i select the project from my first combo column all the tasks based on that project should get binded in second combocolumn of that radgrid. I am able to bind the second column based on the first column selected value. However, My problem is- Once i go to 2nd row in the gridview. the first row's secondcolumn which i already selected goes blank. And 2nd rows value is visble. When i move to 3rd row, the first 2 rows selected value in 2nd column goes blank. I mean at a time only one row value is visible for 2nd column. Anyone kindly provide me with the solution.
Richard Slade
Top achievements
Rank 2
 answered on 23 Feb 2011
3 answers
164 views

Hello!

Mouse-wheel changes the value of read-only RadSpinEditor.

It seems this is a bug.

Thank you.

George Saveliev
Top achievements
Rank 1
 answered on 23 Feb 2011
8 answers
154 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
425 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
488 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
410 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
118 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
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?