Telerik Forums
UI for WinForms Forum
1 answer
150 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
89 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
178 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
285 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
91 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
139 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
6 answers
161 views
I am aware of how to add special days, however, I would like to hide the text of the day on the calendar. 

So if my hostitem is a picture, the picture is displayed, but the day number is not. 

when the day number is displayed, it sometimes make the image confusing. 


Thanks!
Ivan Todorov
Telerik team
 answered on 09 Jun 2011
11 answers
848 views
I have an application with a toolwindow on the left and i'd like to disable the close button. Is it possible to do this?
Or is it possible to cancel the event ?

Thank you
Stefan
Telerik team
 answered on 09 Jun 2011
1 answer
123 views
Ok, I'm not sure how to explain this, but, I have a list of "Special Days" that span 2 weeks on both sides of the displayed calendar.

For days that are "vacation" the image shown is the plane. However if the last days of the previous month is also a vacation day. The images do not show up. (See image attached).

Any work around for this?

Thanks!!
Ivan Todorov
Telerik team
 answered on 09 Jun 2011
2 answers
118 views

Using WindowsXP Pro SP3.. VisStudio 2010 Premier

I've updated to 2011 Q1, and the project to .net 4.0 client..  and now on the form I am using a chart on I am getting..

"The type or namespace name 'Charting' does not exist in the namespace 'Telerik'"

On using Telerik.Charting;

Please help! it's killing my install.

Thanks Matt
Giuseppe
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)
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
Diagram, DiagramRibbonBar, DiagramToolBox
GanttView
Panorama
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
ProgressBar
CheckedDropDownList
TrackBar
MessageBox
Rotator
SpinEditor
StatusStrip
CheckedListBox
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
DataEntry
ScrollablePanel
ScrollBar
WaitingBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Barcode
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
NavigationView
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
Licensing
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
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?