Telerik Forums
UI for WinForms Forum
1 answer
116 views
If I have a list of objects that supports IEditableObject then I see some strange results when I remove a row.
The EndEdit function is called on the next element in the list or the previous if I remove the last element. The MS DataGrid does not call the EndEdit function when deleting a element.

Best Regards
Ole Oscar Johnsen
Julian Benkov
Telerik team
 answered on 02 Apr 2010
3 answers
85 views
I'm seeing some strange behaviour when you put items in the right column of the start menu and you have childitems in the left column.

The popup for the childitems of the left always sits at the top and if you're left column item is further down to the bottom, there is a disconnect between the two of them. Trying to move the mouse from the left column item to it's child items popup, closes the popup before you get there. When there are no items in the right column, the popup stays, but when you have items in the right column, they receive the focus, and it closes the popup.

To reproduce:

Create a new RadRibbonForm
Add 4 items to the StartMenuItems
Add 1 subitem to the last item of the StartMenuItems
Add 4 items to the StartMenuRightColumnItems

Now, when you hover over the last StartMenu item, you can't get to the child item.

Tim
Tim Weckx
Top achievements
Rank 1
 answered on 01 Apr 2010
1 answer
312 views
Hi !

I have a grid with many columns . When I click add new row I would like to have some default values in some of my columns. How I can do that ?

Best regards,
Mihai
Julian Benkov
Telerik team
 answered on 01 Apr 2010
4 answers
311 views

Hi

I’m very new with the telerik, I’m trying to find a control from radGridview.I implements in .Net Grid control ( sample code is given below) But I cant do the same in radGridView. Can anyone give me any idea to implement this in radGridview. I need your help.

Code snippets:

        foreach (GridViewRow row in dgrdInbox.Rows)

        {

          

            CheckBox cbBox = (CheckBox)row.FindControl("cbYesNo");

             

           if (cbYesOrNo.Checked)

            {

                  // Do something

}

else

{

// Do something

}

                    }

 

 

Thanks in advanced. 

Md. Marufuzzaman

Johny
Top achievements
Rank 2
 answered on 01 Apr 2010
2 answers
106 views
I am using Q1 2010 and am a bit perplexed by the new visual style builder. I understand how it works I just can't get it too do what I want. This is what I want to do:

  1. Load the default theme for the combobox.
  2. Make null item text a different color.
  3. When a null value is selected the border of the combobox is yellow.

This is probably easy and intuitive but I had finally conquered the old style builder and just don't have the time to tamper around with this one until I get it right. Any insight on this would be great. Thanks!
Todd Miller
Top achievements
Rank 1
 answered on 01 Apr 2010
2 answers
129 views
I have a collection of say invoices that has a collection of invoice details or line items and a collection of payements.  I want to bind the gridview to the collection without manually creating all of the columns and such.  When I use the Invoice collection as the datasource I do not get the children of invoice, only the single column.  I am setting autoGenerateHeirarchy.  Do I need to define the relationships to accomplish this, even though they are well defined already?

Thanks




Julian Benkov
Telerik team
 answered on 01 Apr 2010
3 answers
965 views
I'm having an issue with  RadGridView1_RowsChanged event. Normally this event will trigger if I modify the row content and moved to another row. If the row contains a cell with NULL values and I clicked on that cell and without editing I moved to another row, then also the RadGridView1_RowsChanged event triggered which is causing me issue. What I'm trying to do in my project is that I need to get the edited row details and update that to database on a button click. If I go through a null cell and moved to another row then also RadGridView1_RowsChanged event triggerd and my edited row index valu will change and I'm not able to save the details to database.  Some part of my code is given below. Can anybody help me?
 private void radGridHome_RowsChanged(object sender, GridViewCollectionChangedEventArgs e)  
        {  
            try  
            {  
                if (isGridLoadCompleted)  
                {  
                    isRowsChanged = true;  
                    //Getting the edited rows index   
                    previousRowIndex = e.NewStartingIndex;  
                    if (!arrRowChangedIndex.Contains(e.NewStartingIndex))  
                    {  
                        arrRowChangedIndex.Add(e.NewStartingIndex);  
                    }  
                    Console.WriteLine("RowsChanged @ " + e.NewStartingIndex + e.OldStartingIndex + "  ");  
                }  
            }  
            catch (Exception ex)  
            {  
                WriteLogFile(ex.ToString(), "radGridHome_RowsChanged");  
            }  
        }  
 
 private void radGridHome_CurrentRowChanged(object sender, CurrentRowChangedEventArgs e)  
        {  
            try  
            {  
                if (isGridLoadCompleted && isRowsChanged && chkSaveExitingRow.Checked)  
                {  
                    // Updating the edited row details to datatbase  
                    UpdateCustomerOrderInfo(chkSaveExitingRow.Checked, false, previousRowIndex);  
                    isRowsChanged = false;  
                }  
                arrPastRowValue.RemoveRange(0, arrPastRowValue.Count);  
            }  
            catch (Exception ex)  
            {  
                WriteLogFile(ex.ToString(), "radGridHome_CurrentRowChanged");  
            }  
        } 
Svett
Telerik team
 answered on 01 Apr 2010
1 answer
328 views
Can you tell me how I get the grid view to wrap text and force the height of the cell to match the amount of text - IE exactly like in Excel where you select cell properties and select "wrap text"??

I really need a solution that is defined in the front end like the show/hide columns, expand widths etc, so the settings can be saved on the users end.

Can you tell me what i am looking for to achieve this?

Thanks





Svett
Telerik team
 answered on 01 Apr 2010
1 answer
310 views
Hi Experts,

I add decimal columns into my grid. My application is base on the example GridView/Columns/Column type example.

My problem is when I try to set the appropriate DecimalPlaces no change appear to the grid view. For example, it show 500.000 instead of 500.

I try to do a modification to the code of the Telerik Grid example and change the numeric column decimal places from 0 to 2 and I got the same result then in my application; decimal place didn't change and the numeric column still show 0 decimal places...

What I am doing incorrectly?

Thanks
Nadia
Julian Benkov
Telerik team
 answered on 01 Apr 2010
2 answers
233 views
If I set the

 

 

MasterGridViewTemplate.AddNewRowPosition =

PinnedRowPosition.Top, then the Value changing event does not fire. It fires only if it is set to bottom... Please advise


Thanks
Deepak

 

Svett
Telerik team
 answered on 01 Apr 2010
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
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?