Telerik Forums
UI for WinForms Forum
2 answers
69 views

Hi

I want to change the header height in scheduer, but i cant figure out how.

It is scheduer in winforms.

 

Nadya | Tech Support Engineer
Telerik team
 answered on 18 Jun 2019
14 answers
1.4K+ views

Hi,
I have a gridview with cells bound to a datasource. In addition I added a checkboxcolumn as follows:

 

this

 

.radGVMeldinger.MasterGridViewTemplate.Columns.Add(new GridViewCheckBoxColumn());

I want this grid not editable, only the checkbox.
I made the following code snippet:

 

private

 

void radGVMeldinger_CellClick(object sender, GridViewCellEventArgs e)

 

{

 

    if (e.RowIndex >= 0)

 

    {

 

        if (this.radGVMeldinger.MasterGridViewTemplate.Rows[e.RowIndex].Cells[12].Value.ToString() != "True")

 

        {

            radGVMeldinger.MasterGridViewTemplate.Rows[e.RowIndex].Cells[12].Value =

true;

 

        }

 

        else

 

 

 

 

        {

            radGVMeldinger.MasterGridViewTemplate.Rows[e.RowIndex].Cells[12].Value =

false;

 

        }

    }

}

 

Everything works fine, unless the fact that when I click the checkbox column this event doesn't fire.
This event fires when I click on every other column.
Has anyone a solution?
Regards,
/Henk

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 17 Jun 2019
1 answer
176 views

Lets say I added a row, and a required field is missing, so I alert the user, I want to keep the values the same, but after the alert values disappear. Here is the code, how i tried to return values

 

01.if (!String.IsNullOrEmpty(newItem.stCountryName))
02.                dr.Cells["column1"].Value = newItem.stCountryName;
03.                //((CountryTable)dr.DataBoundItem).stCountryName = newItem.stCountryName;
04.            if (!String.IsNullOrEmpty(newItem.stCountryCode))
05.                ((CountryTable)dr.DataBoundItem).stCountryCode = newItem.stCountryCode;
06.            if (newItem.nCodeLen != null)
07.                ((CountryTable)dr.DataBoundItem).nCodeLen = newItem.nCodeLen;
08.            if (newItem.nRegionID != null)
09.                ((CountryTable)dr.DataBoundItem).nRegionID = newItem.nRegionID;
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 17 Jun 2019
1 answer
219 views

Hi,

I am using the RadMenu and my menu is dynamically created using a database.  The user can select a default start up form and I need to search though the menuitems with recursion to find that startup item and then perform the click event on that menu item.

In the windows menu I was able to do this this.mainMenu.Items.Find(reportID, true).  How can I do this on the menu items?

Thanks,

Tim

Nadya | Tech Support Engineer
Telerik team
 answered on 14 Jun 2019
2 answers
69 views

hi

in  my grid i have a column decimal but I want to remove zero after float . 750.000 -> 750

when i use FormatString = {G} or {N0}  occur exception

moj
Top achievements
Rank 1
 answered on 14 Jun 2019
10 answers
123 views
I'm having problems printing the scheduler with all resources on it.  I have a day view scheduler with 6 resources.  you can see 4 on the screen and then have to scroll right to see the other 2.  
when i print the scheduler i have 2 issues. 
1.  only the visible page of the first 4 resources show on the printout.  I need all 6
2.  how do i get the actual resource columns to show on the printout?  right now i only see the appointments.

Thanks!
Hristo
Telerik team
 answered on 13 Jun 2019
1 answer
94 views

There are three elements that are grouped.
The customer demanded that, when pressed again, the selection was removed.
Hung on the event items Click and wrote

but the selection does not disappear. How to fix?

if(radiobutton)
    radiobutton.isChecked = false
else
    radiobutton.isChecked = true
Вадим
Top achievements
Rank 1
Iron
Iron
 answered on 13 Jun 2019
8 answers
436 views

What is the proper way to insert text with specified font in any place in measured document? I have tried with the following code but it does not set the font if just right of the caret is space, and it changes the font of the whole word if the caret is in the middle of the word.

var editor = new RadDocumentEditor(radRichTextEditor1.Document);
editor.ChangeFontFamily(new Telerik.WinControls.RichTextEditor.UI.FontFamily("Times New Roman"));
editor.Insert("ABC");

 

 

Tanya
Telerik team
 answered on 12 Jun 2019
1 answer
128 views

Hi,

1) I have a custom grid column/cell based on the examples

protected override void CreateChildElements()
{
    base.CreateChildElements();
 
    this._stackElement = new StackLayoutElement();
    this._stackElement.StretchHorizontally = true;
    this._stackElement.StretchVertically = true;
 
    this._textElement = new LightVisualElement();
    this._textElement.StretchHorizontally = true;
    this._textElement.StretchVertically = true;
    //this._textElement.Padding = new Padding(0, 0, 5, 0);
 
    this._imageElement = new LightVisualElement();
    this._imageElement.ImageAlignment = System.Drawing.ContentAlignment.MiddleRight;
    this._imageElement.ImageLayout = ImageLayout.Center;
    this._imageElement.Size =
    this._imageElement.MaxSize = new System.Drawing.Size(20, 20);
    this._imageElement.StretchHorizontally = false;
    this._imageElement.StretchVertically = true;
    this._imageElement.Click += (o, e) =>
    {
        if (this.Enabled)
            ...
    };          
 
    _stackElement.Children.Add(_textElement);
    _stackElement.Children.Add(_imageElement);
 
    this.Children.Add(_stackElement);
}

 

Now the problem is, the sender in the grid OnToolTipTextNeeded is the LightVisualElement from the textElement/imageElement and not the cell it self (compared to the other "normal" columns)

I know that I get the cell over the Parent.Parent from the LightVisualElement but is there a simpler / more generic way? 

 

2) Also is with the StackLayoutElement, is there any way that the image element would be the last to hide if the column width is to small (see attached images) 

 

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 12 Jun 2019
0 answers
65 views

Hi, Dess | Tech Support Engineer, Sr.

    I am using spreadsheet, I don't want someone else to edit the cell when I import  the xlsx.

One idea I've come up with is to protect worksheets,  but it would pop up and it didn't seem to release the mouse event.

 you can look  the attachment file,I don't want to use "protect", what should i do?

 

jiang
Top achievements
Rank 1
 asked on 12 Jun 2019
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?