Telerik Forums
UI for WinForms Forum
5 answers
329 views
Hello,

Sorry for the long subject line; I wasn't sure how else to phrase it.

First of all, here are my system details:  I am using RadControls for WinForms Q1 2009 in C# (I know that it's old, but that's what I'm stuck using for now).  I am using Visual Studio 2008 SP1 and this project is using the .NET Framework 3.5.  I have some experience with the ASP.NET and Winforms RadControls, but I am by no means an expert.

This project is using a main RadRibbonForm as an MDI parent.  It then has several child MDI RadForms which all inherit from a base RadForm.  Because I am using a RadRibbonForm, I don't have a menu strip defined.  The problem that I'm having is that I have multiple rows of minimize, maximize and close buttons appearing (Please see the screenshots).  When I first open up the application, I don't have any of the MDI children visible.  However, when I open up one of the MDI children, it opens unmaximized and I can see its title bar.  When I maximize the MDI child, I see what is shown in the screenshot ribbonformmdi01.jpg.  When I unmaximize or minimize the MDI child, I see what is shown in the screenshot ribbonformmdi02.jpg.  Finally, when I close the MDI child, I see what is shown in the screenshot ribbonformmdi03.jpg. 

I thought that by setting the the base child MDI RadForm's window state property to "Maximized" in design time, that this would solve the problem.  The screenshot ribbonformmdi04.jpg shows what I see when I open the MDI child.  It opens maximized, but I have no way of minimizing or closing the child MDI form. 

I know that I must be overlooking something.  Can anybody offer any help, please?  What am I missing?  I have been looking all over the forums but the only thing that I've been able to find is what to do if you have a RadMenu and you want to merge the child's RadMenu with the parent's RadMenu.  This obviously doesn't apply.  I have also tried without any success to set various properties in the child RadForms such as the TitleBar's visibility property but that hasn't done the trick either.  Thanks in advance for any help that you can give.

Regards,
John
Boryana
Telerik team
 answered on 10 Jun 2011
1 answer
76 views
Hello All,

I have been working with a RadGridView, and I was wondering about a few things.

One, I have a gridview that is populated when an item from a list is selected and a button is checked. When I have BestFitColumns(), the column headers are not present. If I close the table and re-open it, they then appear. Ideas (this might be a bug that was fixed in SP1--I am running the version prior to SP1)?

Second, I have the horizontal scroll bar property set in one of my gridviews, and it never appears. I have tried manually sizing the columns, so that the columns would be bigger than the window and force a scroll bar; however, this isn't working (in fact, in this particular table, it appears that the size of the columns is being controlled by something else). Ideas?

Thanks,
Jack
Telerik team
 answered on 10 Jun 2011
1 answer
172 views
Hi,
I have a problem in my application: I have a radtextbox multiline (not ReadOnly) where some text is loaded; this text contains some words within single quotes (').
When I load the whole text of my application in this textbox, the text is correctly visualized, but if I try to modify the text, the control update the content deleting completing the words within quotes and it performs actions not requested.

I think this is due to the texts within quotes.
 Is there a way to avoid this behaviour and to manage the text and the words within the quotes as pure text, avoiding the radtextbox text/character events?
I also need to manage text read from  an xml document with a xmlnode object and copied to a string: the text contains words within quotes as before.
The text of the xml document is correctly read in the xmlnode object, but the string variable doen' t store the part of text after the first single quotes character and the character itself.
Is a different object more suitable for my purpose? In my application I must use a string variable to store the xml text.

Thanks in advance
Jack
Telerik team
 answered on 10 Jun 2011
1 answer
102 views
Hi,
we are developing with Telerik Winforms controls Q3 2007.
We are trying to get the event inside GridviewComboboxColumn when selected index or selected value is changed, but we can't get this event.
We guess it must be so easy that we think it must be in front of us, but we can't see it... it's we drive us crazy.

Please, someone can help us.

Thanks in advance

Stefan
Telerik team
 answered on 10 Jun 2011
1 answer
163 views
I've either found a bug in the RadGridView or I'm using the wrong collection.

I am leveraging the MasterTemplate.DataView.CurrentPosition in order to capture the index of the selected item, which I'm placing in a form-level variable. When this item is deleted, I want the CurrentPosition so that I can highlight the next row at that same index.

The CurrentPosition works fantastic in all instances, save for when the column is Sorted. I tried grabbing the CurrentPosition both in the SortChanged() and SortChanging() events, but the CurrentPosition property does not reflect the new location of the selected row after the sort.

I tried to circumvent this by a combination of .Refresh and <grid dataview>.IndexOf(<grid dataview>.CurrentItem), but this didn't work.

FYI: The reason I used the MasterTemplate.DataView is because this also takes into account Filtering.

Anyone's feedback would be greatly appreciated!
Sean
Sean
Top achievements
Rank 1
 answered on 09 Jun 2011
1 answer
91 views
Hello All,

Is it possible to save multiple RadGridViews to the same file with their data included?

The SaveLayout/LoadLayout functions only work with the layout, and, as far as I can tell, do not provide functionality to save multiple grids to the same file.

Thanks!
Stefan
Telerik team
 answered on 09 Jun 2011
1 answer
189 views
Hi there,

Iam using a radgrid for that we are creating Parent-child relation programatically.It works fine for the first time (refer screen shot1) when loading. But if we have done any update operation or if we are again trying to load the page.It is creating multiple tables in the Child grid view(refer screen shot 2).We are calling that creating relation method again in Update operation if it is not called the changes done are not reflecting in the child grid.Here is the code how we are programatically binding.
radGrid_MultiplePI.DataSource = Nothing
            Dim ds1 As New DataSet()
            Dim ds2 As New DataSet()
            ds1 = objdalProtocolSetupWizard.displayProtocolandInstitutions(cmbProtocolNumber.SelectedValue)
            Me.radGrid_MultiplePI.MasterGridViewTemplate.DataSource = Nothing
            Me.radGrid_MultiplePI.MasterGridViewTemplate.AllowAddNewRow = False
            Me.radGrid_MultiplePI.MasterGridViewTemplate.AllowDeleteRow = False
            radGrid_MultiplePI.DataSource = ds1.Tables("Institutions")
            radGrid_MultiplePI.Columns(1).IsVisible = False
            radGrid_MultiplePI.Columns(1).Width = 150
            radGrid_MultiplePI.Columns(2).Width = 150
            Dim template As New GridViewTemplate()
            template.BeginInit()
            template.DataSource = Nothing
            radGrid_MultiplePI.MasterGridViewTemplate.ChildGridViewTemplates.Insert(0, template)
              template.AllowAddNewRow = False
            template.AllowEditRow = False
            template.AllowDeleteRow = False
            template.DataSource = ds1.Tables("Investigators")
            Dim relation As New GridViewRelation(radGrid_MultiplePI.MasterGridViewTemplate)
            relation.ChildTemplate = template
            relation.RelationName = "InstitutionInvestigators"
            relation.ParentColumnNames.Add("ID")
            relation.ChildColumnNames.Add("ID")
            template.Columns(0).Width = 100
            template.Columns(1).Width = 100
            template.Columns(0).IsVisible = False
            radGrid_MultiplePI.Relations.Add(relation)
            template.EndInit()
            radGrid_MultiplePI.Refresh()
Production release is scheduled very soon it's need to be resolved asap.Looking forward for your reply.

Thanks,
Prasad
Julian Benkov
Telerik team
 answered on 09 Jun 2011
4 answers
298 views
Hi,

I've been trying to follow the sample below and stuck on one point. I'ved copied your sample in to word as it seems the formatting is messed up.
I get this error
Error 1 The name 'task_Complete' does not exist in the current context

task.Complete +=

new EventHandler(task_Complete);

Where is the task_Complete declared?

Thanks

 



http://www.telerik.com/support/kb/winforms/track-and-status/using-radwaitingbar-to-indicate-the-status-of-long-running-operations.aspx
Nikolay
Telerik team
 answered on 09 Jun 2011
3 answers
98 views
Hello,
I
use the telerik WinForms Q2 2010sp2 version, and upgraded version Q32010 pair, only to apply the style of the GridView telerik got no style applied, blank, anyone know why this happens? Any component that has to change the GridView to apply the normal style?

The Best Regards,
Ana Faria
Jack
Telerik team
 answered on 09 Jun 2011
1 answer
145 views
Hi,
I have a issue with following Code......

private void btnFinish_Click(object sender, EventArgs e)
        {
            Configuration c = ConfigurationManager.OpenExeConfiguration(System.Reflection.Assembly.GetExecutingAssembly().Location);
            ConnectionStringsSection section =  (ConnectionStringsSection) c.GetSection("connectionStrings");
            section.ConnectionStrings["netTiersConnectionString"].ConnectionString =  connectionString;
            c.Save();
            this.Close();
        }

My program gives an error at this point:
section.ConnectionStrings["netTiersConnectionString"].ConnectionString = connectionString;

error:”object reference not set to an instance of an object”
any ideas?

Thanks in Advance…..

Stefan
Telerik team
 answered on 09 Jun 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
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
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
Licensing
VirtualKeyboard
DataLayout
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?