Telerik Forums
UI for WinForms Forum
1 answer
222 views

Hi All-

The Bing! Maps accessible through the Telerik provider are VERY out of date and the OpenStreetsMap provider documentation does not illustrated how to perform the same functionality as is available for the Bing! provider.

How do we access up-to-date maps in Bing! or where can I find documenation on how to implement search and route functionality using OpenStreetMaps provider?

Thank you!

-Scott

Hristo
Telerik team
 answered on 16 Jan 2017
8 answers
283 views
Hello,
I need a recurring functionality for my project. Also I have created a custom EditAppointmentDialog, as well as a custom Appointment class derived from Telerik.WinControls.UI.Appointment. I need one custom field for my appointment.

Everything works fine except two scenarios.

1. At first I create a recurrence appointment which generates a number of occurrences in the scheduler view. Then clicking on one of the occurrences in the scheduler I get a Message Box which allows me to select whether I would like to open  this occurrence or the whole series. I select "Open this occurrence". After that LoadSettingsFromEvent() method is called. In that method I have the following code.

 protected override void LoadSettingsFromEvent(Telerik.WinControls.UI.IEvent sourceEvent)
        {
            base.LoadSettingsFromEvent(sourceEvent);

            var workSchedule = sourceEvent as WorkSchedule;

            if (workSchedule != null && !string.IsNullOrEmpty(workSchedule.WorkScheduleType))
            {
                cbbxType.Text = workSchedule.WorkScheduleType;
            }
        }

The sourceEvent object could not be casted to WorkSchedule (a derived class from Telerik.WinControls.UI.Appointment which holds my custom field WorkScheduleType), however it is not null and is easily casted to Telerik.WinControls.UI.Appointment class. that's why I cannot read and set this WorkScheduleType field which I certainly need for this occurrence.

It happens only when a recurrence exception is generated. If it is a normal or recurring appointment everything works just fine.

2. I want the following scenario. I would like to create a recurring appointment (say each week on Mondays and Thursdays at 6 p.m. I would like to go to the gym). I create a recurring appointment which generates a number of occurrences in the scheduler view. Then I want to remove a single occurrence for the next week for Thursday (I have different plans for next Thursday). I click on that occurrence in the scheduler. After that I try to delete this occurrence. The view shows me that it is deleted, however when I recheck DB and then reopen scheduler nothing changes. However an exception in DB is created.

How may I properly implement the above mentioned process?
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 16 Jan 2017
9 answers
54 views

Hi

In the ribbonbar i have placed splitbuttonelement and it has several menuitems. I have problem with the value (or index) of menu item that selected by user.i need a code to learn how can i do this and what events need to use.

 Thanks.

Dimitar
Telerik team
 answered on 16 Jan 2017
1 answer
116 views

I noticed that my below code which associates event delegates with a cell textbox editor does not signal those events. Could you please assist ?

        private void Grid_CellEditorInitialized(object sender, VirtualGridCellEditorInitializedEventArgs e)
        {

            switch (column.Name)
            {
                case "Column1":

                        VirtualGridTextBoxEditor editor = (VirtualGridTextBoxEditor)e.Editor;
                        RadTextBoxElement elmnt = (RadTextBoxElement)editor.EditorElement;
                        elmnt.Tag = editor;
                        editor.Validated += Editor_Validated;
                        editor.Validating += Editor_Validating;

 

-----------------------------------

 

        private void Editor_Validating(object sender, CancelEventArgs e)
        {

                   // NOT TRIGGERED
        }
        private void Editor_Validated(object sender, EventArgs e)
        {

                   // NOT TRIGGERED
        }

Dimitar
Telerik team
 answered on 16 Jan 2017
4 answers
734 views

I would like to hide/unhide nodes based on a bound data source item value.  In my sample project, I can assign a full data source and a filtered data source from 'All Data Source' button click or 'Filtered Data Source' button click. But hide and unhide using the node visible property in radTreeView1_NodeFormatting event triggered from the 'Visible = Primary (Hide)' and 'All Visible Unhide' don't work.  Also, the first click of 'Visible=Primary(Hide)' only formats the first 5 nodes.  It seems once a node's visible property is false, you can not set it to true programmatically.  I do not want to refresh or reload the tree view. 

It would be really great if there was some way to filter tree view based on Tag versus Text property.  Then I could simply populate the tag with true or false and filter.

 

Kim
Top achievements
Rank 1
 answered on 13 Jan 2017
1 answer
528 views

Hi Team,

           I'm facing this error "Value cannot be null. Parameter name: value" when i import the "docx" to richtextbox. I refer this Link for sample code. I can read below code for some file but some are not.

Here is sample Code

private void button1_Click(object sender, EventArgs e)
{
    RadDocument document = new RadDocument();
    IDocumentFormatProvider provider = new DocxFormatProvider();
    OpenFileDialog openDialog = new OpenFileDialog();
    openDialog.Filter = "Documents|*.docx";
    openDialog.Multiselect = false;
    DialogResult dialogResult = openDialog.ShowDialog();
    if (dialogResult ==  System.Windows.Forms.DialogResult.OK)
    {
        using (Stream stream = openDialog.OpenFile())
        {
            document = provider.Import(stream);
            radRichTextBox1.Document = document;
        }
    }           
}

 

I do not know this is the file issue or not. I'm using V2011.3.11.1219 WinForms. I attached the file that can not read from code. You need to change the extension to docx.

 

Regards,

 

Hristo
Telerik team
 answered on 13 Jan 2017
1 answer
200 views

Hi Telerik,

In RadGridView, it was possible to use  

cell.PointToScreen(cell.BoundingRectangle.Location)

to obtain the current screen position of a cell. What is the equivalent approach in RadVirtualGrid to obtain a cell's top/left from screen's point of view ?

Thank you,

Saj.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 13 Jan 2017
6 answers
2.0K+ views
Greetings Telerik,

I just tried to add a tooltip-text to a RadButton (image only), but i don't see any property for this. I assumed there's this possibility since there is a property named "ShowItemToolTips" (which is set to yes).

Is this a bug or doesn't it exist?

Many thanks,
Daniel
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 13 Jan 2017
3 answers
254 views
Hi. First, thank you beforehand. I have a problem and I do not know how to do it. I have a gridview in which, through a query, I get results in a column of player names, and another column of teams. Each player can belong to a team, but there may be players who do not belong to any team. In my interface I have a button, which when I press it, should show me in my gridview a grouping in the first column of the players belonging to the same team. And those who do not have a team, do not group them into any group, that is, I put them for example down groups of teams formed by players.
Could you tell me how to do this ???

Example:
Name           Team

J1               TeamA
J2               TeamB
J3               TeamC
J4               TeamA
J5               TeamB
J6
J7
J8               TeamC

Result in my GridView: Push Button

     Name         Team
+TeamA
      J1            TeamA
      J4            TeamA
+ TeamB
      J2             TeamB
      J5             TeamB
+ TeamC
     J3              TeamC
     J8              TeamC
J6
J7
Dimitar
Telerik team
 answered on 12 Jan 2017
2 answers
298 views

Hi,

I have a GridViewCommandColumn with buttons that are not always visible (using e.CellElement.Visibility = ElementVisibility.Hidden). When they are not visible the border lines around the cell disappear (see image 1).

I tried to fix this using EnableCustomDrawing=True and subscribing to the CellPaint event and draw the border manually, but this does not seem to work. In fact the CellPaint event seem to happen BEFORE the buttons is drawn. I came to this conclusion by drawing a black border around all cells, and got the result in image 2.

How can I fix this missing border problem?

/Per

Per
Top achievements
Rank 1
 answered on 11 Jan 2017
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
Styling
Barcode
BindingNavigator
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
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?