Telerik Forums
UI for WinForms Forum
2 answers
90 views

I am exporting my grid to pdf.

The grid is showing 2 columns properly formatted to currency (E.g., $100.50) however, when I export to PDF they appear only as 100.5 (no dollar sign or proper decimal (2)... just 100.5 instead of $100.50  

The grid is displaying them as $100.50

How do I get the proper currency formatting to be written into the PDF?

Nadya | Tech Support Engineer
Telerik team
 answered on 24 Nov 2023
1 answer
116 views

Hello!

RadPageView has a setting called "ItemSpacing" that adjusts the gap between RadPageViewPage controls.

Is there any way to get a similar result for RadDock?

 

Cheers!

C

 

Nadya | Tech Support Engineer
Telerik team
 answered on 24 Nov 2023
1 answer
179 views

Hi 

I am using RadGridView with sorting enabled. Also Allowing resize columns.

But when I am double clicking on column text in header, it do sorting but also have extra behavior to expand (resize) the column width based on data, which we do not want.

Is there any way we can stop this behavior?

 

 

Dinko | Tech Support Engineer
Telerik team
 answered on 23 Nov 2023
1 answer
79 views

Hi, I'm using a RadDataFilter to filter data on a RaGridView.

For datetime columns I've noticed some problems.

First, in the control the date is displayed in english format (see first attached image). When I try to change the value a datetimepicker appears and in this case the date is in italian format (according to my pc settings).

Second, I've noticed when the radDataFilter.Expression is generated the date is in english format, including time, and it is inside a couple of #, i.e the expression generated is like:

[myDate] >= #11/20/2023 14:55:07# 

I would like to have only the date without time, is it possible?
And  how can manage this expression to generate the SQL expression, cause the # is not accepted.

 

Thank you in advance for any help.

Nadya | Tech Support Engineer
Telerik team
 answered on 23 Nov 2023
3 answers
180 views

Hi, I'm using a RadDataFilter connected to a RaGridView.

For the string column by default is available the "Is in list" filter.

But, if I try to use it, a single textbox is showed and when the filter is applied, and the generated filter expressioin is like "[FieldName] IN 1234" where 1234 is the exaxt text I digited, without quotes.
I think I've not understand how to use this filter, so can anyone suggest to me the correct way to use it?

Alternatively, how can I remove/hide this kind of filter (I do not really need to use this filter)?



Thank you

 

Nadya | Tech Support Engineer
Telerik team
 answered on 23 Nov 2023
2 answers
122 views

Hi Team, 

When grouping is enabled , the grid size is not resizing to the size of the column and drag column here text is not wrapping, tried to use the minimum size property of radgridview but not able to solve the problem. Kindly suggest in this issue, attached screenshot related to the issue.

Thanks,

Sitaram

Nadya | Tech Support Engineer
Telerik team
 answered on 22 Nov 2023
1 answer
188 views

Hello, 

I'm currently building a material library tool using Telerik's RadListView. I pretty much got it near exactly what I'm after. However, I'm having some trouble with the last feature, and I'm hoping someone can provide some insight.

What I'd like to do is add an icon to the top left-hand corner of each item that will represent their category.

So far, using the following code and a bit of trickery with HTML markup, my ListView Items currently look like this.

(Written in C++)

    //Create a new ListView Item
    Item = gcnew ListViewDataItem();
    
    //Generate HTML Label
    String^ Label = "<html><strong>" + Name + "</strong><br><span style=\"color:f5f5f5\"><i>" + Latin + "</i></span></html>";
    Item->Text = Label;
    Item->TextAlignment = ContentAlignment::MiddleCenter;
    Item->TextImageRelation = Windows::Forms::TextImageRelation::ImageAboveText;

    //Load the Thumbnail
    String^ thumbnailPath = Path + "\\" + ThumbPath;
    Item->Image = Image::FromFile(thumbnailPath);
    Item->ImageAlignment = ContentAlignment::TopCenter;
   

However, what I'd like to achieve is this:

I was hoping there was a Background Image property for ListViewDataItem. However, that doesn't seem to be the case. Is there a clever trick to achieve this? Or is my only option to create a Custom ListViewDataItem as described here? https://docs.telerik.com/devtools/winforms/controls/listview/custom-items

Thanks!

Dinko | Tech Support Engineer
Telerik team
 answered on 21 Nov 2023
2 answers
84 views

 

The summary row at top and bottom should not scroll while horizontal scroll.

Nadya | Tech Support Engineer
Telerik team
 answered on 20 Nov 2023
1 answer
192 views

Hi,

 

I want to hide grid column but condition is,  summary row column should not be hidden.

I want to display summary column but not grid column.

Dinko | Tech Support Engineer
Telerik team
 answered on 17 Nov 2023
1 answer
132 views

Hi, I need to show a boolean column in a RadGridView.

I would like to show the column as in the attached image, i.e. with a tick for the true value and nothing for the false value.

I would like to use GridViewCheckBoxColumn but, this column always shows values as checkboxes. In my case, the table is readonly, so the standard checkboxed makes the user to think that he can click to change the check value.

I tried using a GridViewTextBoxColumn and using CellFormatting event:

 


private void radGrid_CellFormatting(object sender, CellFormattingEventArgs e)
{
      if (this.DesignMode) return;

			if (e.CellElement.ColumnInfo.FieldName == "ScambioPratiche") {
				if ((bool)((System.Data.DataRowView)e.CellElement.RowInfo.DataBoundItem).Row["ScambioPratiche"] == true)
				{
					e.CellElement.Image = MyApp.Main.Properties.Resources.tick;
				}
				else
				{
					e.CellElement.Image = null;
				}
				e.CellElement.Text = string.Empty;
			}
			else
			{
				e.CellElement.ResetValue(LightVisualElement.ImageProperty, ValueResetFlags.Local);
			}

		}

 

In this way, however, the filter is a text filter and not a checkboxfilter...
Is there a better way to gain my goal, possibly by GridViewCheckBoxColumn ?

Nadya | Tech Support Engineer
Telerik team
 answered on 17 Nov 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
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
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
TrackBar
MessageBox
Rotator
SpinEditor
StatusStrip
CheckedListBox
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
DataEntry
ScrollablePanel
ScrollBar
WaitingBar
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
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
NavigationView
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
Licensing
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
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?