Telerik Forums
UI for WinForms Forum
2 answers
188 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
292 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
137 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
115 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
156 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
6 answers
4.7K+ views
When a property is changed through my property grid, I want to make sure the tree is up to date.

private void radPropertyGridNode_PropertyValueChanged(object sender, PropertyGridItemValueChangedEventArgs e)
{
     radTreeView.Refresh();
}

Refresh() does not work.
Invalidate() does not work.
Update() does not work.

Hovering the control using the mouse does work.

How can I programmatically update the tree so that it fires the NodeFormatting event (where my nodes are updated)?
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 15 Jan 2021
2 answers
240 views

I want to distinguish between: 

A) Tab close.

B) Tab being dragged out into a new parent window  

 

Both of the above call: TabRemoving, TabRemoved

What is the proper event or technique to distinguish between A and B?

n/a
Top achievements
Rank 1
Veteran
 answered on 14 Jan 2021
3 answers
316 views

I am using your drag and drop service between grids.  Code is working fine for 10 rows.  Lager multirow selections error out.  I have experimented and have determined that if the rows are not showing in the grid I get this error.  For example, if my grid visually shows 10 rows and I select all of those rows and drag them to another grid all works fine.

If I select the first row and scroll down to select the 11th row while holding down the shift key, all eleven rows are selected.  However dragging then to the other grid I get an error in the svc_PreviewDragDrop method on the line:      var dragGrid = rowElement.ElementTree.Control as RadGridView;

 

Error Message below:

Date Time:1/9/2021 6:45:16 PM
Exception Name:Object reference not set to an instance of an object.
Event Name:System.NullReferenceException: Object reference not set to an instance of an object.
   at SmartView_V2.frmMainForm.svc_PreviewDragDrop(Object sender, RadDropEventArgs e) in C:\Users\claud\Documents\Visual Studio 2019\Projects\SmartView V2\frmMainForm.cs:line 2387
Control Name:svc_PreviewDragDrop
Form Name:frmMainForm

 

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 14 Jan 2021
4 answers
107 views

Hi, I have a loop where I am filling the grid and immediatelly print the grid. All printed documents have the same grid values of the last loaded records to the grid DataSource. Is there something I can do to properly print the grid with correct cell values from actual records?

foreach (var run in _runsToPrint)
{
    FillReportedAnalytesGrid();
    PrintPreview.PrintGrid(rgvReportedAnalytes, run);
}
 private void FillReportedAnalytesGrid()
{
    var records = provider.GetReportedResults();
    rgvReportedAnalytes.DataSource = null;
    rgvReportedAnalytes.DataSource = records;
    rgvReportedAnalytes.BestFitColumns(BestFitColumnMode.AllCells);
    rgvReportedAnalytes.Refresh();
}

 

public static void PrintGrid(RadGridView view, string run)
{
    var document = new RadPrintDocument();
    view.Print(false, document);
}
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 14 Jan 2021
1 answer
120 views

Are there any options to make a tooltip in which you can place Text, Buttons, etc.?

Something like this:

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 14 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
ListView
ComboBox and ListBox (obsolete as of Q2 2010)
Form
Chart (obsolete as of Q1 2013)
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
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
CollapsiblePanel
LayoutControl
ShapedForm
SyntaxEditor
Wizard
TextBoxControl
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
WaitingBar
GroupBox
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
RibbonForm
Styling
Barcode
PopupEditor
TaskBoard
NavigationView
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Overlay
Security
LocalizationProvider
Dictionary
TreeMap
StepProgressBar
SplashScreen
Flyout
Separator
SparkLine
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
SpeechToTextButton
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
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?