Telerik Forums
UI for WinForms Forum
1 answer
190 views

Hi,

I would like to know if you have an easy way to implement Undo-Redo on all node action (Moving, deleting, adding, rename, drag and drop from one control to another, etc...)?

The only way I found is to save all the control structure in xml temp file after each change but this way is absolutely not efficient... I would like to know if there is a better and faster way.

Thanks in advance for your help.

Best regards,

Fred


Victor
Telerik team
 answered on 28 Aug 2009
2 answers
932 views
Hi,
I am encountering a problem with searching radlistbox items. MyCode:
private void searchListBox(object sender, EventArgs e) 
        { 
            int count = 0
            foreach (RadListBoxItem item in this.lbLiveClients) 
            { 
                if(item.DescriptionText == this.txtFindLiveClient.Text) 
                { 
                    this.lbLiveClients.SelectedIndex = count
                    break; 
                } 
                count++; 
            } 
        } 

gives an error:

foreach statement cannot operate on variables of type 'Telerik.WinControls.UI.RadListBox' because 'Telerik.WinControls.UI.RadListBox' does not contain a public definition for 'GetEnumerator'.

Any Solution to this:
I have items that have both text and description text. I wanted to search description text for some reason. then i decided on simple for loop.

            for (int i = 0; i < this.lbLiveClients.Items.Count; i++) 
            {  
                this.lbLiveClients.Items[i]. 
            } 

but no description text property there for items there, only the text property.
Any Solution to any of this.??
Thanks in advance
Faheem Nadeem
Top achievements
Rank 1
 answered on 28 Aug 2009
3 answers
500 views
Is there a property I am missing to hide the Row Indicator?  This occupies a lot of space that I would rather not have.

Thanks
Julian Benkov
Telerik team
 answered on 27 Aug 2009
4 answers
301 views
How to Handle Inner (Child)Grid events in Rad Grid view Hierarchy (Win Forms)

How to set  Inner (Child)Grid  Heigh in Rad Grid View Hierarchy (Win Forms).
Sudhakar
Top achievements
Rank 1
 answered on 27 Aug 2009
5 answers
619 views
I have a RadGridView that is being used to edit data.  Some of the cells contain bold text. 

I am attempting to add a RadToggleButton that will be used to bold or unbold text.  When the user selects a row with bold text, I toggle the RadToggleButton to ON.  When the user selects a row not formatted with bold text, I toggle the RadToggleButton to OFF.

I need to handle the ToggleStateChanged event differently when the button is clicked than when I toggle the state programatically.

Any suggestions on how to do this?
southwynd
Top achievements
Rank 1
 answered on 27 Aug 2009
2 answers
214 views

 

Hi,

 

I am displaying customer data [Id, Name and Address] in grid view. I also need to display some calculated value “Customer Points” in the grid. For the “Customer Points” I have added a GridViewTextBoxColumn “txtCustomerPoints” to the grid.

 

 

 

For displaying data in “txtCustomerPoints” i am using the CellFormatting Event as below:

 

        private void RadGridView1_CellFormatting(object sender, CellFormattingEventArgs e)

        {

            try

            {

                string columnUniqueName = ((GridViewDataColumn)e.CellElement.ColumnInfo).UniqueName;

                if (columnUniqueName == "txtCustomerPoints " )

                {

                    if (IsColumnExistsInGrid(RadGridView1.MasterGridViewTemplate, columnUniqueName))

                    {

                        RadGridView1.GridElement.BeginUpdate();

                        e.CellElement.RowInfo.Cells[columnUniqueName].Value = "Some Calculated Value";

                        RadGridView1.GridElement.EndUpdate();

                    }

                }

            }

            catch (Exception ex)

            {

                throw ex;

            }

        }

 

 

But this generate an error on this line:

e.CellElement.RowInfo.Cells[columnUniqueName].Value = "Some Calculated Value";

 

The error is:

 

ex = {"Object reference not set to an instance of an object."}               

 

StackTrace       "   at MSMainPrj.FormsEmbedded.Booking. RadGridView1_ValueChanging(Object sender, ValueChangingEventArgs e) in D:\\Users\\Yaqub.Ahmad\\CS2\\trunk\\code\\MSMainPrj\\FormsEmbedded\\Booking.cs:line 1755\r\n   at Telerik.WinControls.UI.RadGridView.OnValueChanging(Object sender, ValueChangingEventArgs e)\r\n   at Telerik.WinControls.UI.RadGridView.CallValueChanging(Object sender, ValueChangingEventArgs e)\r\n   at Telerik.WinControls.UI.GridViewCellInfo.set_Value(Object value)\r\n   at MSMainPrj.Libraries.TelerikGridHelper.SetGridColumnValue(RadGridView grid, CellFormattingEventArgs e, String columnName, Object value) in D:\\Users\\Yaqub.Ahmad\\CS2\\trunk\\code\\MSMainPrj\\Libraries\\TelerikGridHelper.cs:line 292"      string

 

TargetSite         {Void RadGridView1_ValueChanging(System.Object, Telerik.WinControls.UI.ValueChangingEventArgs)}      System.Reflection.MethodBase {System.Reflection.RuntimeMethodInfo}

Kindly help me to update a custom column's value.

Thanks.

 


yaqub
Top achievements
Rank 2
 answered on 27 Aug 2009
6 answers
194 views
Hello,

I'm having trouble with some controls I've added to gridview cells. I've followed the procedure in your documentation to add the controls via the CellFormatting Event. I have added a RadCheckBox to one column and a RadButton to another. Everything works fine at first, but if there's enough rows for scrolling to occur, the controls will actually migrate from one row to another when scrolling is performed. In fact, if you scroll down via the scroll bar, the controls stay in their correct row, but if you scroll up, the controls seem to stay put while the rows rotate around them. 

Please help!

Thanks!
Jeremy
Julian Benkov
Telerik team
 answered on 27 Aug 2009
3 answers
332 views

private void managerGrid_ValueChanged(object sender, EventArgs e)
        {
            if (sender is GridCheckBoxCellElement)
            {
                GridCheckBoxCellElement cell = (GridCheckBoxCellElement)sender;
                RadCheckBoxEditor checkbox = cell.Children[0] as RadCheckBoxEditor;  <- Error

How???
Julian Benkov
Telerik team
 answered on 27 Aug 2009
4 answers
322 views
Hi,

I'm using RadDock and I am trying to find a way within the RadDock.DockWindowClosing event handler to know if the form on the ActiveWindow has set Cancel = true in the Form.Closing handler.  I manually close the form in the DockWindowClosing handler like this:
  103             HostWindow window = dockMain.ActiveWindow as HostWindow;
  104             Form form = window.Content.FindForm();
  105             form.Close();

The form object is the correct form. There may be a reason why the form should not be closed and will set
the Cancel property to true; I can not find a way to detect this state. I really need to be able to cancel
a DockWindowClosing event based on the underlying form closing event.
How can I do this?

Thanks,
Mike



Georgi
Telerik team
 answered on 27 Aug 2009
1 answer
142 views

I the Beta Version there was an AutoDispose Property on RadDock, that was removed with 9.2 - now I assume the right way to have AutoDispose Functionality is to set the CloseAction Property on the Document or Tool Windows as needed(?).

The docs are unclear, even the introduction text mentions the AutodDispose Property, And it can be found searching the online Reference / Docs.

Regards
Erwin
Georgi
Telerik team
 answered on 27 Aug 2009
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
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
CollapsiblePanel
LayoutControl
ShapedForm
SyntaxEditor
Wizard
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
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?