Telerik Forums
UI for WinForms Forum
1 answer
60 views

Hi,

I try to add checkboxes to page.

I try to this code, but it is not working:

var nve = this.radNavigationView1.NavigationViewElement;
                foreach (var item in nve.Items) {
                    RadCheckBoxElement cb = new RadCheckBoxElement();
                    cb.ToggleStateChanged += cb_ToggleStateChanged;                
                    item.ButtonsPanel.Children.Add(cb);
                }

Thanks in advance!

 

Nadya | Tech Support Engineer
Telerik team
 answered on 25 Oct 2023
1 answer
93 views

I have a Form with 4 group boxes each containing 2 radio buttons - Yes and No - obviously each set mutually exclusive. The IsChecked properties of each are bound to boolean values. All 8 properties are set to false. However, when the form displays, the first Yes button is checked. Even when I unbind them and explicitly set them all to false, the first option is set t true.

s there any way for all buttons to be set to false?

Thanks

Carl

Nadya | Tech Support Engineer
Telerik team
 answered on 25 Oct 2023
8 answers
423 views

Hi,

 

Is it possible to use paging and just retrieve data for each page (i.e if you go to a new page the data for that page will be loaded)?

 

The issue i'm having right now is that the result from the server (currently with WCF) has contain all the records in order for the paging to work, however, I dont want to send all the data at once.

 

Maybe there is a way to manipulate the TotalPages-property to think it has more data in the result?

Giovanni
Top achievements
Rank 1
Iron
Iron
Iron
 answered on 24 Oct 2023
1 answer
52 views
I have a RadWizard control in my project and I set the BackColor property to a custom color. Whenever I make any changes to the code in the cs file of the RadWizard the BackColor property resets to white. Is there some reason this may be occurring or is this a bug?
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 24 Oct 2023
1 answer
60 views
I am trying to remove the default top left gear icon and bottom left help text and icon from the RadWizard but I am unable to locate them in the control's properties. Is this something I am able to do or are these static to the control and unable to be changed?
Dinko | Tech Support Engineer
Telerik team
 answered on 24 Oct 2023
2 answers
52 views

There is nothing in the docs about this after four hours of searching. I can only conclude there isn't support for this functionality but find that difficult to believe.

 

Thanks,.

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 24 Oct 2023
2 answers
1.8K+ views

I experienced this message while trying to publish:

 

Unable to load the service index for source https://nuget.telerik.com/v3/index.json.

Response status code does not indicate success: 401 (Unauthorized).

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 23 Oct 2023
1 answer
127 views

What I'm trying to achieve is a RadGridView with expanding/collapsing hierarchy rows that uses load on demand data that I get from my server using a REST API call. A separate REST call is started every time a RowSourceNeeded event is fired for a row. The problem is that the GUI thread does not seem to wait for my call and the row tries to expand then immediately collapses again (so basically the whole expand operation does not wait until my data is loaded) after which the grid starts behaving erroneously, which includes;

    - the application hangs for a few seconds when I click an expanded hierarchy row

   - clicking a hierarchy row makes the whole grid scroll down a bit

 

Leaving the async API call out for testing purposes and filling the row below with dummy data immediately solves all these problems, so I'm certain it is the cause of these problems.

private async void radGridView1_RowSourceNeededAsync(object sender, GridViewRowSourceNeededEventArgs e)
        {
            MainJobObject mainJobObject = e.ParentRow.DataBoundItem as MainJobObject;

            //make the RESTAPI call here to retrieve the attachments of this job
            List<IJobDocument> mainJobObjectAttachments = await FillMainJobObjectWithAttachmentsFromBackend(mainJobObject.JobId);

            foreach (IJobDocument attachment in mainJobObjectAttachments)
            {
                GridViewRowInfo row = e.Template.Rows.NewRow();
                row.Cells["MainJobID"].Value = mainJobObject.JobId;
                row.Cells["Status"].Value = attachment.StatusObject.Status;
                row.Cells["UploadDate"].Value = attachment.StatusObject.UploadDate;
                row.Cells["AttachmentID"].Value = attachment.IJobDocumentId;
                row.Cells["AttachmentType"].Value = attachment.AttachmentType;
                row.Cells["ServisnyTechnik"].Value = attachment.ServisnyTechnik;
                row.ErrorText = attachment.Error;

                e.SourceCollection.Add(row);
            }
        }
Dinko | Tech Support Engineer
Telerik team
 answered on 23 Oct 2023
1 answer
51 views

I am attempting to add a RadSyntaxEditorElement to Telerik Chat UI for Winforms using 2023.3.1010 Trial.

I receive a null reference exception in RadSyntaxEditorElement.cs > SyncZoomComboText line 1312. It says base.Dispatcher = null. (see attached image).

 

Is it possible to add the SyntaxEditorElement to chat?  If, not do you have any other recommendations for display code in chat?

 

Here is my test code modified from the examples found on your site.

        public class MyCodeMessageItemElement : TextMessageItemElement
        {
            protected override Type ThemeEffectiveType
            {
                get
                {
                    return typeof(TextMessageItemElement);
                }
            }

            protected override LightVisualElement CreateMainMessageElement()
            {
                return new CustomCodeMessageBubbleElement();
            }

            public override void Synchronize()
            {
                base.Synchronize();
                CustomCodeMessageBubbleElement bubble = this.MainMessageElement as CustomCodeMessageBubbleElement;
                bubble.DrawText = false;
            }
        }



        public class CustomCodeMessageBubbleElement : ChatMessageBubbleElement
        {
            protected override Type ThemeEffectiveType
            {
                get
                {
                    return typeof(ChatMessageBubbleElement);
                }
            }

            //RadTextBoxControlElement textBoxElement;
            RadSyntaxEditor radSyntaxEditor;
            RadSyntaxEditorElement radSyntaxEditorElement;

            public RadSyntaxEditor SyntaxEditor1
            {
                get
                {
                    return this.radSyntaxEditor;
                }
            }

            protected override void CreateChildElements()
            {
                base.CreateChildElements();
                radSyntaxEditorElement = new RadSyntaxEditorElement();
                radSyntaxEditorElement.ZoomComboBox.Enabled = false;
                //radSyntaxEditor.ContextMenuOpening += textBoxElement_ContextMenuOpening;
                this.Children.Add(radSyntaxEditorElement);
            }

            //private void textBoxElement_ContextMenuOpening(object sender, TreeBoxContextMenuOpeningEventArgs e)
            //{
            //    foreach (RadItem item in e.ContextMenu.Items)
            //    {
            //        if (item.Text.Contains("&Copy"))
            //        {
            //            item.Visibility = ElementVisibility.Visible;
            //        }
            //        else
            //        {
            //            item.Visibility = ElementVisibility.Collapsed;
            //        }
            //    }
            //}

            public override string Text
            {
                get
                {
                    return base.Text;
                }
                set
                {
                    base.Text = value;
                    this.radSyntaxEditor.Text = value;
                }
            }
        }

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 20 Oct 2023
12 answers
1.7K+ views
I have a RadListBox control and I want to select items based on the value of the item (which is stored in my database). How can I accomplish this with the control?
Dess | Tech Support Engineer, Principal
Telerik team
 updated answer on 18 Oct 2023
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
ComboBox and ListBox (obsolete as of Q2 2010)
ListView
Chart (obsolete as of Q1 2013)
Form
PageView
MultiColumn ComboBox
TextBox
RichTextEditor
Menu
PropertyGrid
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
Diagram, DiagramRibbonBar, DiagramToolBox
GanttView
Panorama
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
ProgressBar
CheckedDropDownList
Rotator
TrackBar
MessageBox
SpinEditor
StatusStrip
CheckedListBox
Wizard
ShapedForm
SyntaxEditor
TextBoxControl
LayoutControl
CollapsiblePanel
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
DataEntry
GroupBox
ScrollablePanel
WaitingBar
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Barcode
ColorBox
Callout
FilterView
PictureBox
VirtualKeyboard
NavigationView
Accessibility
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
Licensing
BreadCrumb
Security
LocalizationProvider
Dictionary
Overlay
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
Flyout
ToolbarForm
NotifyIcon
Rating
TimeSpanPicker
BarcodeView
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
+? more
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?