Telerik Forums
UI for WinForms Forum
8 answers
2.0K+ views
Hi,
Where is the setting in radgridview for wrapping the text inside of the cells?
Dimitar
Telerik team
 answered on 14 Nov 2018
3 answers
38 views

I need to determine if document is empty, even if the document was just created in other parts of the code. The code below throws the exception. If the commented lines are uncommented then the exception is not thrown. I could work around the problem also by carrying a flag to tell me if document was just created (and not call GetStatisticsInfo in that case). Is this exception a bug? Is there a smarter or more elegant way to determine if document is empty?

 

var d = new RadDocument();
 
//var p = new Telerik.WinForms.Documents.FormatProviders.Rtf.RtfFormatProvider();
//d = p.Import(p.Export(d));
 
var s = d.GetStatisticsInfo();

 

 

Dimitar
Telerik team
 answered on 14 Nov 2018
1 answer
159 views

Hi,

I am binding data from a datatable to the VirtualGrid but currently there is no data in it, so I would like to have a blank row appear in the grid which will allow the user to enter new rows.

Currently if there are no data then nothing is showing in the grid, only when some data is there "Click here to add a new row" appears.

AllowAddNewRow is true.

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 14 Nov 2018
0 answers
65 views

hi i tasked to create a multi-button gridview column and how its go:

 

public class GridExtraItemsCell : GridCommandCellElement
{
    public override bool IsEditable => false;
    public override bool IsCurrent => false;
    public override bool IsSelected => false;
    private ExtraElementContents btns;
    add a child and handle Click Events and Delegate
}

 

hi i tasked to create a multi-button gridview column and how its go:
public class GridExtraItemsCell : GridCommandCellElement{public override bool IsEditable => false;public override bool IsCurrent => false;public override bool IsSelected => false;private ExtraElementContents btns;
add a child and handle Click Events and Delegate
}
public class GridExtraItemsColumn : GridViewCommandColumn{public event EventHandler ButtonClick;public void Button_Click(object sender, EventArgs e){this.OnButtonClick(sender, e);}protected virtual void OnButtonClick(object sender, EventArgs e){if (this.ButtonClick != null){this.ButtonClick(sender, e);}}public GridExtraItemsColumn(string fieldName) : base(fieldName){}public override Type GetCellType(GridViewRowInfo row){if (row is GridViewDataRowInfo){return typeof(GridExtraItemsCell);}return base.GetCellType(row);}}

 

and its Work Perfectly but here's a thing when i click on the cell in run time in first click cell is selected and with the nest click Event fire My goal is run My-button_Click on a first click

 
mostafa
Top achievements
Rank 1
 asked on 13 Nov 2018
2 answers
568 views

In my Radgridview I have a combobox column with 3 predifined value.

1. "No Change"

2. "Partial Return"

3. "Full Return"

I want to set "No Change" as my default value. how can I do that?

My existing code

01.'>>>>>Create combobox column "status". Datasource "return_status" table
02.Dim clm_status As New GridViewComboBoxColumn
03.clm_status = CType(dgv_return.Columns("status"), GridViewComboBoxColumn)
04.clm_status.DataSource = ds.Tables("return_status")
05.clm_status.DisplayMember = "status_display"
06.clm_status.ValueMember = "status_value"
07. 
08. 
09.'>>>>>Populate Radgridview "dgv_return". Data source "due_bill_detail" table
10.For Each row As DataRow In ds.Tables("due_bill_detail").Rows
11. 
12.Dim rowInfo As New GridViewDataRowInfo(dgv_return.MasterView)
13. 
14.rowInfo.Cells(dgv_return.Columns("status").Index).Value = "No Change"   'This is the combobox column. Its not working
15.rowInfo.Cells(dgv_return.Columns("item_code").Index).Value = row("item_code") 'This is working fine
16.rowInfo.Cells(dgv_return.Columns("item_name").Index).Value = row("item_name") 'This is working fine
17.dgv_return.Rows.Add(rowInfo)
18.Next row

 

 

LEON
Top achievements
Rank 1
 answered on 13 Nov 2018
1 answer
67 views

hi 

i need your help to fix this error 

 

CellFormattingEventArgs' is an ambiguous reference between 'Telerik.WinControls.Export.CellFormattingEventArgs' and 'Telerik.WinControls.UI.CellFormattingEventArgs

 

thanks 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 13 Nov 2018
5 answers
263 views

Hello,

I'm unable to set the $ currency symbol as well as decimal places for radspinEditor, Please check image and do the needful.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 13 Nov 2018
5 answers
150 views

Hi everyone

While I am learning Telerik Radgridview control, I am stuck with combo box column example. I have created the grid and columns using GUI property builder. It's not bound to any database. I just want to display a simple drop-down list. For example:- {Yes, No, Maybe}

My Question
1. How to assign the drop-down list Item? {Yes, No, Maybe}
2. Is it possible to assign different values to each combo box cell per row
    For Example:-

                          row(0)= {Yes, No, Maybe},

                          row(1)={Absoluitely, Definately, Certain}
Technical Info
Gridview Name: radGridView1
Combobox Column Name: status
Application Type: VB.net WinForm

 

I think its a very basic question, but somehow I am unable to find the solution. It will be very kind if someone guide me to the solution.

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 13 Nov 2018
3 answers
230 views
hello, is it possible to have a button that when the user clicks it it opens a new appointment dialog and when they fill it out and click OK the Collection_Updated event fires in the scheduler just as if they had double clicked a date and added the appointment ?

i have it working except the event does not fire, here is an example of how i am opening the dialog, DoctorAppointment inherits from EditAppointmentDialog

DoctorAppointmentEditForm frm = new DoctorAppointmentEditForm();
 
            frm.practiceid = 1;
            frm.LoggedInUserID = this.LoggedInUserID;
            frm.PracticeListView = this.radPracticeView;
             
            frm.ShowDialog();
;

i must be missing something!
Dimitar
Telerik team
 answered on 13 Nov 2018
1 answer
25 views

Radgridview with 3 level hirarchy, radgridview1 add template, template add template1.

Thanks before.

Dimitar
Telerik team
 answered on 12 Nov 2018
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
DateOnlyPicker
TimeOnlyPicker
+? 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?