Telerik Forums
UI for WinForms Forum
1 answer
126 views

Hello, i have a radchartview with Donut series.

I want to change the background of exported image , use this code to change the background 

p_oRadChart.BackColor = Color.Red;
p_oRadChart.ChartElement.BackColor = Color.Red;

It did change the Chart background on UI, but when the exported image background doesn't change.  

string sTempFile = Path.Combine(Path.GetDirectoryName(Application.ExecutablePath),"temp.jpeg");
string sTempFileLine = Path.Combine(Path.GetDirectoryName(Application.ExecutablePath), "tempLine.jpeg");
radChartView1.ExportToImage(sTempFile, new Size(690, 360), System.Drawing.Imaging.ImageFormat.Jpeg);
radChartView2.ExportToImage(sTempFileLine, new Size(690, 250), System.Drawing.Imaging.ImageFormat.Jpeg);

Telerik.ChartView version is 2017.3.912.40

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 20 Jan 2021
1 answer
56 views

How do I limit the number of characters shown when the text is too long?

For the text "Very Long Text Very Very Long" to take the form "Very Long Text ..."

OR text "VeryLongTextVeryVeryLong" to take the form "VeryLongTextV..."

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 20 Jan 2021
1 answer
348 views

How can I disable editing on the desired nodes? Tried through CustomRadTreeViewEditor as below but without success.

public override void BeginEdit()
        {
            TreeNodeElement nodeElement = this.OwnerElement as TreeNodeElement;
            if (nodeElement.Data.Level == 0)
            {
                base.EndEdit();
                return;
            }
            base.BeginEdit();
        }
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 20 Jan 2021
4 answers
269 views

I can no longer drag a column header to the group by box at the top.  Not sure when this stopped working.  When I click on the column header it is highlighted, but I can not drag it.   Does it have something to do with the drag and drop of rows I added to my app. I am using your provided service for the row drag and drop.  I believe I have everything enabled.

 

                dgvFiles.ShowGroupPanel = true;
                this.dgvFiles.AllowSearchRow = true;
                dgvFiles.Columns[1].AllowGroup = false;  // prevent grouping of Path Column
                dgvFiles.Columns[2].AllowGroup = true;//filename
                dgvFiles.Columns[3].AllowGroup = true;// length
                dgvFiles.Columns[4].AllowGroup = true; // catagory

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 19 Jan 2021
1 answer
62 views

i'm trying to compare 2 listview items to check for duplicates

 

one listview is in a form and the other one is in a different open form

 

i get this error :

 

System.InvalidOperationException: 'Collection was modified; enumeration operation may not execute.'

 

how to solve this error please 

invoicesnew master = (invoicesnew)Application.OpenForms["invoicesnew"];
            if (master.radListView1.Items.Count == 0)
            {
                foreach (ListViewDataItem a1234 in radListView1.Items)
                {
                    ListViewDataItem item = new ListViewDataItem();
                    item.SubItems.Add(a1234["Column 0"].ToString());
                    item.SubItems.Add(a1234["Column 1"].ToString());
                    item.SubItems.Add(a1234["Column 2"].ToString());
                    item.SubItems.Add(a1234["Column 3"].ToString());
                    item.SubItems.Add(a1234["Column 4"].ToString());
                    item.SubItems.Add(a1234["Column 5"].ToString());
                    item.SubItems.Add(a1234["Column 6"].ToString());
                    item.SubItems.Add(a1234["Column 7"].ToString());
                    master.radListView1.Items.Add(item);
                    this.Close();
                }
            }
            else
            {
                foreach (ListViewDataItem item in radListView1.Items)
                {
                    foreach (ListViewDataItem a1234 in master.radListView1.Items)
                    {
                        if (item["Column 0"].ToString() == a1234["Column 0"].ToString() && item["Column 1"].ToString() == a1234["Column 1"].ToString())
                        {
 
                            master.radListView1.FilterDescriptors.Clear();
                            master.radListView1.FilterDescriptors.LogicalOperator = FilterLogicalOperator.Or;
                            master.radListView1.FilterDescriptors.Add("Column 0", FilterOperator.Contains, item["Column 0"].ToString());
                            master.radListView1.FilterDescriptors.Add("Column 1", FilterOperator.Contains, item["Column 1"].ToString());
                            master.radListView1.EnableFiltering = true;
                            master.radListView1.SelectedIndex = 0;
 
                            decimal totalin = Convert.ToDecimal(item["Column 7"].ToString());
                            decimal countin = Convert.ToDecimal(item["Column 5"].ToString());
                            decimal totalin1 = Convert.ToDecimal(a1234["Column 7"].ToString());
                            decimal countin1 = Convert.ToDecimal(a1234["Column 5"].ToString());
                            alltotal = (totalin1 + totalin).ToString();
                            allcount = (countin1 + countin).ToString();
                            List<ListViewDataItem> saveSelectedItems = new List<ListViewDataItem>();
 
                            foreach (ListViewDataItem eachItem in master.radListView1.SelectedItems)
                            {
                                saveSelectedItems.Add(eachItem);
                            }
 
                            foreach (ListViewDataItem item3 in saveSelectedItems)
                            {
                                master.radListView1.Items.Remove(item3);
                            }
 
 
 
 
                            ListViewDataItem item1 = new ListViewDataItem();
                            item1.SubItems.Add(item["Column 0"].ToString());
                            item1.SubItems.Add(item["Column 1"].ToString());
                            item1.SubItems.Add(item["Column 2"].ToString());
                            item1.SubItems.Add(item["Column 3"].ToString());
                            item1.SubItems.Add(item["Column 4"].ToString());
                            item1.SubItems.Add(allcount);
                            item1.SubItems.Add(price);
                            item1.SubItems.Add(alltotal);
                            master.radListView1.Items.Add(item1);
                          
 
                        }
                        else
                        {
                            master.radListView1.EnableFiltering = false;
                            calculate();
                            ListViewDataItem item1 = new ListViewDataItem();
                            item1.SubItems.Add(radLabel13.Text);
                            item1.SubItems.Add(radLabel29.Text);
                            item1.SubItems.Add(radLabel15.Text);
                            item1.SubItems.Add(radDropDownList3.Text);
                            item1.SubItems.Add(radLabel24.Text);
                            item1.SubItems.Add(radMaskedEditBox3.Text);
                            item1.SubItems.Add(price);
                            item1.SubItems.Add(total);
                            master.radListView1.Items.Add(item1);
                            this.Close();
                        }
                    }
                }
            }
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 19 Jan 2021
2 answers
128 views

When I type text in the search box, several non-matching rows are selected.  The number that shows to the right in the search box, but the actual number of rows selected is wrong.  I am using the following event code to get the selected rows. I am writing the number of rows selected to the console.  I have attached a screenshot of the issues.

 private void TableSearchRow_SearchProgressChanged(object sender, SearchProgressChangedEventArgs e)
        {
            GridViewSearchRowInfo searchRow = sender as GridViewSearchRowInfo;

            if (e.SearchFinished && searchRow.CurrentSearchResultsCount > 0)
            {
                foreach (GridSearchResultCellInfo cellInfo in e.Cells)
                {
                    cellInfo.RowInfo.IsSelected = true;
                }
            }
            Console.WriteLine(dgvFiles.SelectedRows.Count().ToString());
        }

Claude
Top achievements
Rank 1
Iron
Veteran
 answered on 18 Jan 2021
2 answers
184 views
Hello,
Using the RadDock
Can you please suggest what strategy should I apply for when the Properties "panel" collapses and the content of the "Simogram" is resized?

Perhaps that when said "panel" collapses, use the event that is fired when that panel has finished collapsing (can you tell me which event it is?) And do the corresponding operations to redraw the content of the Simogram. And redraw the Simogram when we maximize that panel.

Another option might be to have the controls inside the Simogram "panel" stretch or shrink automatically (perhaps using some properties of those internal controls), but I have no idea how to do that.

I have attached an image.

Thanks a lot!!

Nadya | Tech Support Engineer
Telerik team
 answered on 18 Jan 2021
7 answers
91 views

Hi Guys

I need to pass a list of addresss which i want to display on a bing map similar to 

currently I use the following for a single address string

 Dim request As Telerik.WinControls.UI.Map.Bing.SearchRequest = New SearchRequest()

        request.Query = addresses(0)
        request.SearchOptions.Count = 10
        request.SearchOptions.QueryParse = True

 

what  approach i should use for multiple address??

Ideally I would like to use a data table which lists an  address in each row of the datatable along with some additional data for displaying on a callout (no geo coordinates) and then add a pin for each address onto the map

 Many Thanks

Andre

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 18 Jan 2021
3 answers
50 views

Hello,

I am trying to figure out how to make the Suggested Actions not scroll off of the screen in Windows forms.

 

Can you help show how I can get these to be posted vertical?

Thanks -Tim

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 18 Jan 2021
1 answer
98 views

Hi, I need to retrieve the text contents of AutoCompleteBox in Javascript (client side).

I tried this but it just alerts me nothing (blank result):

<script>

function CheckOE() {
            alert(document.getElementById('RadAutoCompleteBox1').value);
        }

</script>

<telerik:RadAutoCompleteBox RenderMode="Lightweight" runat="server" ID="RadAutoCompleteBox1" ClientID="RadAutoCompleteBox1" 
            autopostback="true"
            DataSourceID="blah" DataTextField="blah" DataValueField="blah" InputType="blah" Width="100%"
            AllowCustomEntry = "false"
            DropDownWidth="150px"
            onfocusout="CheckOE()"
            >

Any idea?

Thanks!

Nadya | Tech Support Engineer
Telerik team
 answered on 15 Jan 2021
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?