Telerik Forums
UI for WinForms Forum
1 answer
111 views
Hi everybody,

I get an .Net Framework Exception while switching between Windows :(

System.NullReferenceException: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt. 

   bei Telerik.WinControls.UI.TableViewRowLayoutBase.InvalidateRenderColumns()

   bei Telerik.WinControls.UI.TableViewRowLayout.InvalidateRenderColumns()

   bei Telerik.WinControls.UI.RowsContainerElement.UpdateWhenColumnsChanged()

   bei Telerik.WinControls.UI.GridTableElement.ProcessTemplateEvent(GridViewEvent eventData)

   bei Telerik.WinControls.UI.GridTableElement.Telerik.WinControls.UI.IGridViewEventListener.ProcessEvent(GridViewEvent eventData)

   bei Telerik.WinControls.UI.GridViewEventProcessEntity.ProcessCollection(GridViewEvent gridEvent, PriorityWeakReferenceList list, GridEventProcessMode processMode)

   bei Telerik.WinControls.UI.GridViewEventProcessEntity.ProcessEvent(GridViewEvent gridEvent)

   bei Telerik.WinControls.UI.GridViewSynchronizationService.NotifyListeners(GridViewEvent gridEvent)

   bei Telerik.WinControls.UI.GridViewSynchronizationService.OnPostCallback(Object state)

 


I don't even know which grid it is, or how to handle it, because my application is still running whithout any evect.
Jack
Telerik team
 answered on 01 Oct 2010
8 answers
232 views
Hello,

RunExport throws now this Exception: "Cannot find any base cell element!".

My Code:

ExportToExcelML exporter = new ExportToExcelML(gridview);
            exporter.HiddenColumnOption = HiddenOption.DoNotExport;
            exporter.ExportVisualSettings = true;
            exporter.SummariesExportOption = SummariesOption.ExportOnlyBottom;
            exporter.HiddenRowOption = HiddenOption.DoNotExport;
            exporter.SheetName = "Export";

            string filename = Path.Combine(Path.GetTempPath(), "excel_export.xls");

            try
            {
                exporter.RunExport(filename);
                return filename;
            }
            catch (Exception e)
            {
                return string.Empty;
            }

I have no idea what i have to change.

Regards,
Thomas
Martin Vasilev
Telerik team
 answered on 01 Oct 2010
4 answers
550 views
Ok

I have a simple but annoying problem. 

A datatable  bound to a radgridview and 1 column is checkboxcolumn. If user clicks the checkboxcolumn, cell goes to edit mode bot not changed the value on the datatable. After press enter button or selecting a different row value changes on datasource.
so I wrote a code for close editor on value changed


  private void RouteGrid_ValueChanged(object sender, EventArgs e)
        {
 RadCheckBoxEditor editor = sender as RadCheckBoxEditor;
            if (editor != null)
            {
                (editor.EditorManager as GridViewEditManager).CloseEditor();
            }
}

But my problem is if i want to change the source all values on the grid changes except selected row or current row. I changed all the property of the rows and cells property (IsSelected,IsCurrent...) but value never changes.

Here is my code
private void btnCancelChanges_Click(object sender, EventArgs e)
        {
            RouteGrid1.CurrentRow = null;
            RouteGrid1.Enabled = false;
 
            if (MessageBox.Show("...", "...", MessageBoxButtons.OKCancel, MessageBoxIcon.Question) == DialogResult.OK)
            {
                DataRow[] Result = null;
                this.Cursor = Cursors.WaitCursor;
                foreach (DataTable routeTable in viewSalesmanInfo.RouteTableCollection)
                {
 
                    if (routeTable != null && routeTable.Rows.Count > 0 && !String.IsNullOrEmpty(routeTable.TableName))
                    {
 
                        Result = routeTable.Select("m_Current_State_Id = 0 AND Current_State_Id = -1");
                        if (Result != null && Result.Length > 0)
                            foreach (DataRow addCustomer in Result)
                                routeTable.Rows.Remove(addCustomer);
 
                        Result = routeTable.Select(
                            "(OrderRoute <> m_OrderRoute Or " +
                            "PaymentRoute <> m_PaymentRoute Or " +
                            "DeliveryRoute <> m_DeliveryRoute Or " +
                            "MergeRoute <> m_MergeRoute Or " +
                            "Route_Position <> m_Route_Position)" +
                            " OR m_Current_State_Id <> Current_State_Id");
                        if (Result != null && Result.Length > 0)
                            foreach (DataRow updateCustomer in Result)
                            {
                                updateCustomer.BeginEdit();
                                updateCustomer["Current_State_Id"] = updateCustomer["m_Current_State_Id"];
                                updateCustomer["Route_Position"] = updateCustomer["m_Route_Position"];
                                updateCustomer["MergeRoute"] = updateCustomer["m_MergeRoute"];
                                updateCustomer["OrderRoute"] = updateCustomer["m_OrderRoute"];
                                updateCustomer["PaymentRoute"] = updateCustomer["m_PaymentRoute"];
                                updateCustomer["DeliveryRoute"] = updateCustomer["m_DeliveryRoute"];
                                updateCustomer.EndEdit();
                            }
                    }
                }               
this.Cursor = Cursors.Default;
                this.RouteGrid1.MasterTemplate.Refresh();
                RouteGrid1.Enabled = true;
            }
        }

But after this selected cell value doesnt change. 

Is this a bug or is there anything wrong in my code?




Emanuel Varga
Top achievements
Rank 1
 answered on 01 Oct 2010
8 answers
416 views
I have the following code and I need to convert the value that comes from GridAggregateFunction.sum,

Dim summary As New GridViewSummaryItem("dur", " Total: {0} ", GridAggregateFunction.Sum)
           Me.grdResults.MasterTemplate.SummaryRowGroupHeaders.Add(New GridViewSummaryRowItem(New GridViewSummaryItem() {summary}))

The values in the dur column are in seconds and I need to convert that to hh:mm:ss. I have a function that will do the conversion but don't see how to call it on that value (GridAggregateFunction.Sum) before it is displayed in the grid.

I tried several things in the ViewCellFormatting and CellFormatting events but that just causes my  app to throw a TargetInvocationException error everytime I start it.

Any ideas would be greatly apprectiated.
Alexander
Telerik team
 answered on 01 Oct 2010
1 answer
149 views
Alright I have a Dock Manager with a Docked Tabbed Window and several DockWindow's Docked to the Right Side of the Winform App. Now is there any way I can make it so it WONT allow any of my other DockWindows to be able to dock to that Tabbed document? I dont see any propertys on my inheritted DockWindow/UserDockControl.
Richard Slade
Top achievements
Rank 2
 answered on 01 Oct 2010
1 answer
115 views
Hi all,

I am using Telerik RadControls for WinForms 2010Q2 on Win2003 Server, implementing in dotnet 3.5 on Visual Studio 2008. I can't find in RadControls documentation anything about dialog controls for opening files or selecting folders, thus I am using standard OpenFileDialog and OpenFolderDialog. Are there equivalent RadControls? Or is there a way to style standard dialogs like RadControls?

Thanks
Roberto
Richard Slade
Top achievements
Rank 2
 answered on 01 Oct 2010
1 answer
138 views
Hi,
I need to have different hierarchy levels to individual row of Rad Gid view in my winform application.
Like-
A
B
:..X
C
:..Y
    :..Z

As shown above  A,B,C are the Rows of same Rad Grid view but all having different hierarchy Levels
A does not have any hierarchy .
B is having  one child gird named X.
C is having one child grid name Y and every row of Y having one child grid Z.
 I am having 3 buttons in my application 1,2,3.
on button click 1 i want to add A type row to Rad grid.
on button click 2 i want to add B type row to Rad grid.
on button click 3 i want to add C type row to Rad grid.

How to perform this Operation with Rad Gid for Winfoms in Visual Studio 2008 (Dot Net Framework 3.5) Sp1
in C# .net

Regards
Gaurav


Emanuel Varga
Top achievements
Rank 1
 answered on 01 Oct 2010
6 answers
817 views
I think this is an easy one, but I'm not seeing how to do it. I want to write event handlers for the menu items in the radscheduler context menu. For example, I want to write the code for "Next View."

Anybody done this? Thanks in advance for your help. I hope you get lots of points. :)
Brennan
Top achievements
Rank 1
 answered on 30 Sep 2010
11 answers
582 views
Hi Experts,

I install the new release of Telerik Q2 2010 SP1 and it looks like the appointment description are not displayed anymore in the schedule!?!?! In your demo I obtain the same behavior.

How can I display the appointment description in the schedule with Q2 2010 SP1?

Regards,
Nadia
Nadia Sangiovanni
Top achievements
Rank 1
 answered on 30 Sep 2010
5 answers
126 views
Hello!

I want to use the RadGalleryElement on a Standard RadForm. Does anybody know how to extract/use the RadGalleryElement without a RibbonBar? Or maybe the RibbonBarGroup without a RibbonBar?

Thanks for any help!
Regards
Juergen
Nikolay
Telerik team
 answered on 30 Sep 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)
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
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
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
Barcode
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Licensing
Localization
TimePicker
ButtonTextBox
FontDropDownList
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
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?