Telerik Forums
UI for WinForms Forum
1 answer
154 views
I am using the Excel-like filtering in my Winforms application and I have a few GridViewComboBoxColumns that have their datasources set from stored procedures programatically instead of from the database table that I am using for the datasource for the rest of the columns.  Because of this, the filters are not automatically filling in the options for these columns like they do for the columns that use the main datasource.  I have used the technique described here: https://www.telerik.com/forums/custom-gridview-filter-popup to add custom options to the filters where needed, but once selected and OK is clicked, nothing happens.  When I add a break point in the FilterChanging event, I see that the column has been selected as a filter source based on the Property Name, but there is no value and no expression in the filter.  Is there something I have to do to format the values added to the DistinctListValues so that they pass a value and expression?
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 29 Apr 2020
11 answers
718 views

I am working on rewriting our grid reporting system using the Telerik GridView. I have run into one thing I have no been able to do. When I group a report, I need to show a summary row for all group levels. I have attached an example of what I need to do. In it I am grouping on two columns: View & User Id. I show a summary row for each user (pink) and then another summary row for each view (blue). 

I have tried to do the same thing with the gridview but i have  only been able to show a summary row for the lowest level group. 

 Does any one have an suggestions on how to do this?

 

 

 

Nadya | Tech Support Engineer
Telerik team
 answered on 28 Apr 2020
3 answers
175 views
First, I have prepared my data in a radTreeView control.
Then, how assign treeview to RadListFilterPopup?


Please refer the pciture from attachment.
Any way can be done?


RadHostItem h = new RadHostItem(this.radTreeView1);


void radGridView1_FilterPopupRequired2(object sender, Telerik.WinControls.UI.FilterPopupRequiredEventArgs e)
{
    if (e.Column.Name == "Store")
    {
        e.FilterPopup = new RadListFilterPopup(this.radTreeView1, true);
    }
}
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 28 Apr 2020
2 answers
76 views

Hi

I am trying to make a search function in a treeview.

Using this code will find what i am looking for:

 

       Dim result As RadTreeNode() = RadTreeView1.FindNodes("Anders And")

        result(0).RootNode.ExpandAll()
        result(0).Selected = True

but all nodes are expanded, like 'expand1.png'

I would like it to look like 'expand2.png'

Kindly Peter

 

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 28 Apr 2020
3 answers
117 views
In demo editor it is possible to select text with double-click, and right-click the text, and have Cut and Copy menu items disabled in context menu. One has to be very fast, but it's not hard to reproduce it. Sometimes even Cut is enabled and Copy is disabled. Not sure if this is a bug or by design.
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 28 Apr 2020
3 answers
105 views

In measured document of Word-inspired project we have to use IDocument interface. How do I add a new paragraph to document and set its text alignment without having to know the alignment of previous paragraph? ChangeParagraphTextAlignment method behaves differently based on the current paragraph alignment. If current is Center, and we "change" to Center the result is Left. If current is Left and we "change" to Left the result is Justify. The method really really wants to change the alignment.

So in my code I do InsertParagraph(), not knowing how the previous paragraph was aligned. How to center-align this new paragraph?

I suppose I can use ClearAllFormatting, but now here's the followup question. How to reuse all other paragraph properties from previous paragraph, like indentation and spacing, and just set text alignment to Center?

I could make two calls, "change" to Justify, and then to Center. Whatever was the starting state we should reach Center, but this looks like a hack to me. In case we want to set the alignment to Left we would have to make three calls to make sure we actually reach Left state (for instance "change" to Right, then Justify, then Left).I feel this should not be so complicated.

 

 

Dimitar
Telerik team
 answered on 28 Apr 2020
5 answers
580 views
Hi All -

I looked thru the forum but could find an example of what I need to do. And that is

empty the filter popup and populate it with my own entries.

For simplicity I only need 3 fields. The underlying column will contain only "A", "B", or blank/null so I would like the popup 
to contain only those values. Even if the column could contain "C" or "D", I don't want to filter on that.

I know this can't be too difficult but I was unable to find an example and the code I wrote didn't work properly.

Any help appreciated.
Regards,
Hugo
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 28 Apr 2020
13 answers
285 views

Hi 

Is it possible to capture/export the display of the map tool as a pdf or jpg?

Eg A method along the lines of save as xxx.pdf

thanks

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 28 Apr 2020
2 answers
264 views

     Good afternoon,  

I wasn't sure if this question belongs in the WaitingBar thread or RadLayoutControl, but here is the problem.

 

I have a standard C# UserControl, with a RadLayoutControl that is docked to the parent(UserControl).  The layoutcontrol has several items in it and that part works well.  What I would *like* to be able to do is on creation of the user control, have a waiting bar of the spin variety show over the LayoutControl until a few items that need to retrieve data are ready to be shown.  The smart tag will let me assign the WaitingBar.AssociatedControl to the RadLayoutControl, but if I call the waitBar.StartWaiting(), I can't see the bar.

I can seem to successfully have the WaitingBar appear over any of the components within the LayoutControl,  but I would really like it to go over the entire LayoutControl if possible.

I hope that makes sense, and thanks for any help you might have.

Mike

 

 

Michael
Top achievements
Rank 1
 answered on 27 Apr 2020
2 answers
147 views

Hello

I have a databound gridview in which I change two columns from standard cell to dropdown cells

So far everything is fine, when I select a value in the dropdownlist, the grid is properly updated.

However I need to validate the user's selection from the dropdown list and cancel the change if not authorized based on various conditions.

I have tried various methods, such as using the callvalidating or cellvaluechanged events but I have not managed to cancel the change when not authorized. Moreover in some cases the dropdown is no longer available.

As a workaround I perform the check in the cellvaluechanged event reload completely the grid when the change is not authorized but this is far from being efficient.

Herebelow the code snipet of the celvaluechanged event

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

        Select Case e.Column.Name
            Case "Ctrldd"
                Dim mEntry As New mEntry(MyConnectionString)
                mEntry.UpdateCtrl(context, theEntry.idEntry, e.Value)
                ShowEntryDetails(theEntry.idEntry)
            Case "HCdd"
                Dim mEntry As New mEntry(MyConnectionString)
                If mEntry.CheckHCChange(theEntry, theCompetition.Label.Scope) Then
                    mEntry.UpdateHC(context, theEntry.idEntry, e.Value)
                    ShowEntryDetails(theEntry.idEntry)
                Else
                    MessageBox.Show(My.Resources.Entry.ChangeHCNotAllowed, My.Resources.Main.WarningMsg, MessageBoxButtons.OK, MessageBoxIcon.Information)
                    'request a reload of the grid
                    RaiseEvent RefreshRequired()
                End If
        End Select

----------------------------------------------------------------------------------------------------------------------------------------------
Thanks in advance for any advice

Pierre-Jean

pierre-jean
Top achievements
Rank 1
Veteran
Iron
 answered on 24 Apr 2020
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
Documentation
SplitContainer
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
ShapedForm
SyntaxEditor
Wizard
CollapsiblePanel
TextBoxControl
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
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
SplashScreen
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
SpeechToTextButton
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?