Telerik Forums
UI for WinForms Forum
20 answers
1.7K+ views
Hi

I need to know the best way to call a client detail form by clicking on a row in a RadGridView. I'm not sure what code to put in the Click event.

My RadGridView shows 15 columns of Client data and stores the Client ID column in the first column of the Grid. I want to click on a row and then call a detail form and pass it the selected Client's ID.

I'm using VB.Net.

Many thanks
Nikolay
Telerik team
 answered on 24 Sep 2008
1 answer
244 views
I'm currently using the RadGridView.Rows.Add(new object[]) method to create a new row in a GridView on a button click.  Calling the Rows.Add method will trigger the SelectionChanged event twice, as expected, but a problem occurs when I try to access the properties of the newly added row via the  RadGridView.SelectedRows[0].Cells[0] properties.  I only get default values for the cells, and not the actual values that I provided in the Rows.Add(new object[]) call.

Is this a known issue, or is there a different way to get the Objects that have been added?

Thanks,
Chris
Martin Vasilev
Telerik team
 answered on 24 Sep 2008
4 answers
126 views
Hi Telerik Team,
Please do guide me if I can add an image along with Text in RadToolStripLabelElement? If yes then please guide how can I?
What a want is to display an image followed by a label at toolstrip (ImageBeforeText )

Regards,
Haroon.
Haroon
Top achievements
Rank 1
 answered on 24 Sep 2008
9 answers
1.0K+ views
I am developing on a Windows Server 2003 box using Visual Studio 2005. I installed the RadControls for WinForms 2008 SP1 on top of a previous Winforms installation from early 2007. My existing WinForm application works fine after installing the new Telerik update. However, I'm not seeing the RadForm class. I created a new project, added a reference to Telerik.WinControls to my new project and then proceeded to edit the default form to inherit from Telerik.WinControls.RadForm. The problem is "RadForm" is in red because VS2005 cannot find a reference to the class. I thought maybe I had to add a using clause but that didn't seem to help. Did my installation not work correctly, fogetting to register something, or am  missing something simple? Thanks.
Nick
Telerik team
 answered on 24 Sep 2008
1 answer
263 views

Hi,

I have created a framework for our application (CMXUIFramework.Dll). All user controls are in this dll, which may comprise of one of more UI controls. This DLL can be now referenced for a stand alone app as well as an Outlook integration app. On one of the controls I have used is Microsoft’s TreeView control and everything works fine, however, when I replace the Microsoft’s TreeViewControl with a Telerik Treeview control, at runtime I get object not set to an instance of an object.

Is there anything I should know about when displaying Telerik’s controls on a form in this manor?

Thanks

P

Jordan
Telerik team
 answered on 24 Sep 2008
1 answer
165 views
I have a Windows Form GridView object that I am populating.  I need to allow the user to change the order of items in the list.  To do this, I have two buttons, MoveUp and MoveDown to let them.  For simplicity sake, I have left out a lot of error checking code from my post.

My problem is that I am calling the GridElement.BeginUpdate() and GridElement.EndUpdate() methods, and for the MoveUp it works just fine, however, oddly enough, the MoveDown causes a flicker effect, which is not supposed to happen (I think) if I am using these methods correctly.

Here is the portion of my code that is doing this action, as you can see the same code is running in both instances, I am just passing in a different change:

private

void btnMoveUp_Click(object sender, EventArgs e)
{
    MoveCurrentItem(-1);
}

private void btnMoveDown_Click(object sender, EventArgs e)
{
    MoveCurrentItem(1);
}

private void MoveCurrentItem(int indexChange)
{
    if (radgvScriptsList.SelectedRows.Count == 1)
    {
        radgvScriptsList.GridElement.BeginUpdate();
        
        MultiScriptFile
file = GetSelectedFile();
        int oldIndex = Files.IndexOf(file);
        Files.Remove(file);
        Files.Insert((oldIndex + indexChange), file);
        radgvScriptsList.Rows[(oldIndex + indexChange)].IsCurrent =
true;
      
        radgvScriptsList.GridElement.EndUpdate();
    }
}

Jack
Telerik team
 answered on 24 Sep 2008
2 answers
288 views
What I'm trying to do is AutoGenerateColumns at the end of the predetermined columns of the radgrid.  It works fine the first time the form loads, but if i change the dataset to bring back an extra column of AutoGenerated data the grid doesn't show any of the AutoGeneratedColumns anymore.  However if I remove an AutoGenerated column of data from the dataset the grid will still display the correct AutoGenerated columns of data. 

I have tried setting the radGrid.DataSource to null as well as the MasterTemplate.DataSource, before I rebind the grid with the new fields for the AutoGeneratedColumns, but that doesn't seem to work either...
Vassil Petev
Telerik team
 answered on 24 Sep 2008
3 answers
233 views
I would like to enable/disable button's on my form based on whether the user clicks the master row or the child row.
I am trying the following code, but this does not seem to work correctly in all the conditions.

What is the correct way to do this?
-------------------
GridViewSelectedRowsCollection selectedRows = this.rgResults.SelectedRows;
foreach (GridViewRowInfo selectedRow in selectedRows)
{
GridViewDataRowInfo selectedDataRow = selectedRow as GridViewDataRowInfo;
if (selectedDataRow != null)
{
bool isMaster = (selectedDataRow.ViewTemplate.ChildGridViewTemplates.Count == 1);
if (isMaster)
{
//Enable button1
//Disable button2
}
else
{
//Enable button2
//Disable button1

}

Jack
Telerik team
 answered on 23 Sep 2008
7 answers
223 views
I just downloaded the Q2 2008 RadControls for WinForms and I cannot find any documentation for the RadMultiColumnCombobox.  I am not finding anyting in Documentation Help file or in the Examples.  Am I missing something?
Nick
Telerik team
 answered on 23 Sep 2008
3 answers
238 views
What I am trying to do would be to either when the user is leaving the cell or when the user is leaving the row I want to validate the data entered and if they fail the validation then to not allow the user to leave either the cell or row.  I would like to be able to pop a message and inform the user of the error and then set the cursor to when the error exists. 

Is this possible?
Martin Vasilev
Telerik team
 answered on 23 Sep 2008
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
PdfViewer and PdfViewerNavigator
CommandBar
ListControl
Carousel
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
Label
AutoCompleteBox
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
SyntaxEditor
Wizard
CollapsiblePanel
LayoutControl
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
WaitingBar
GroupBox
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
NavigationView
BindingNavigator
RibbonForm
Styling
Barcode
PopupEditor
TaskBoard
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Overlay
Security
LocalizationProvider
Dictionary
TreeMap
StepProgressBar
SplashScreen
Flyout
Separator
SparkLine
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
SpeechToTextButton
SmartPasteButton
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?