Telerik Forums
UI for WinForms Forum
8 answers
240 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
561 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
423 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
152 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
119 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
139 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
828 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
589 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
132 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
1 answer
180 views
Hi guys,

Are there any examples available that shows how to implement a mdi application where the main form (frame) is a RadRibbonForm and all the child forms have its own RadRibbonMenu? which would be show on the frame when the child is the active document?

For example:
1) A RadRibbonForm acting as the main frame of the application.
2) A child form called Party Form with its own PartyRibbonMenu
3) A child form called Products Form with its own ProductRibbonMenu


If u open a new party form, the form is opened as a new child window in the mdi client window and the main mdi frame window's RibbonMenu is replaced with the party form's PartyRibbonMenu.
Subsequently, if you open a new products form, the RibbonMenu is changed to the ProductRibbonMenu and if you switch between the 2 forms, the menu would change accordingly. (See attached images with child forms and their own menus).

p.s. This was previously done with Telerik Controls for Winforms 2009 Q2 but stopped working when we upgraded to the latest version.
We are in the process of reviewing the current app to see if there's any changes required to make it work with the new version.

Thanks

Jonathan



Svett
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
CollapsiblePanel
Conversational UI, Chat
DateTimePicker
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
BindingNavigator
Styling
Barcode
PopupEditor
RibbonForm
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
BarcodeView
BreadCrumb
Security
LocalizationProvider
Dictionary
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?