Telerik Forums
UI for WinForms Forum
12 answers
950 views
Hi,

Anyone know how to display string as password in RadPropertyGrid?
I've tried to use the PasswordPropertText attribute as the original PropertyGrid, but it is not working.

[PasswordPropertyText(true)]
public string Password  {get;set;}

I hope that telerik still maintain the original behaviour, to keep the control's usage intuitive.

Regards,
Laks
Nadya | Tech Support Engineer
Telerik team
 answered on 04 Feb 2020
4 answers
189 views

Hi...

i got some problem on my custom new row element according to this link, but on my code i made with button element

internal class CustomGridNewRowElement : GridRowElement
{
    private GridCellElement cellElement;
    private RadButtonElement radButtonElement;
    public RadButtonElement AddButtton => this.radButtonElement;
 
    public CustomGridNewRowElement() { }
 
    protected override void CreateChildElements()
    {
        base.CreateChildElements();
        this.cellElement = new GridCellElement(null, this) { StretchHorizontally = true, StretchVertically = true };
        this.radButtonElement = new RadButtonElement("Add New");
        this.Children.Add(cellElement);
        this.cellElement.Children.Add(this.radButtonElement);
        this.cellElement.ClipDrawing = true;
    }
 
    public override bool IsCompatible(GridViewRowInfo data, object context)
    {
        return data is CustomGridViewRowInfo;
    }
}
 
internal class CustomGridViewRowInfo : GridViewNewRowInfo
{
    public CustomGridViewRowInfo(GridViewInfo viewInfo) : base(viewInfo)
    {
    }
 
    public override Type RowElementType => typeof(CustomGridNewRowElement);
}

the problem is im missing an rowheadercellelement as shown on attachment, i need the Add Button only fit on GridViewDataColumns like a standard GridViewNewRowInfo,

and shown on 2nd attachment it throw an exception when mouse right button press / contextmenu on Add Button Element, i couldnt find whats wrong.

any help please.

 

Agung
Top achievements
Rank 1
 answered on 04 Feb 2020
5 answers
116 views

i'm using 2015 version and can't find GetUnderlyingData Method under LocalDataSourceProvider class.

receving error - "GetUnderlyingData  is not a member of  LocalDataSourceProvider ".

please help, how can i add it or how can i override it?

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 04 Feb 2020
4 answers
204 views

Hi,

I have a solution where a user ​drags data into my application, onto a RadListView. The user drops the data on top of a RadListViewItem representing the subject to added the data to. I have added code for detecting which item that ​was dropped on (from Telerik documentation), but it always returns null from GetElementAtPoint. I have tried other Points (screen, control, client), but it's allways null.

The RadListView is unbound, in DetailView mode and have an icon and two columns. I don't know if that makes any difference in how this is handled.

private void radListView1_DragDrop(object sender, DragEventArgs e)
{
    Point point = radListView1.PointToClient(new Point(e.X, e.Y));
    BaseListViewVisualItem droppedItem = radListView1.ElementTree.GetElementAtPoint(point) as BaseListViewVisualItem;
    if (droppedItem != null)
    {
        ListViewDataItem item = droppedItem.Data;
           // handle dropped data here
    }
}
 

I am using Telerik version 2014.1.226.40.

Best regards

Thomas

 

Michael
Top achievements
Rank 1
Veteran
 answered on 03 Feb 2020
1 answer
191 views

Is it possible to drag a row from telerik grid to drop on windows form treeview control?

In my code i am able to drag the row from telerik grid but DragEnter event of windows form treeview control is not firing?

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 03 Feb 2020
10 answers
837 views
Hi!
 I have a MDI Ribbon Form. I'm not using ribon merge. My child form open to different sizes. Client requires a single click Cascade sort operatin on all open child windows. How do I go about achieving this and also, is there a way to have a DropDownList control in the Ribbon to drop-list all open child windows?

Regards.
Nadya | Tech Support Engineer
Telerik team
 answered on 03 Feb 2020
3 answers
380 views

Hi,

if you change PC's text size to 125% and run Demo Application, LayoutControl, Frist look - the layout is different then in 100% text size, also resizing works other way. Is it possible to make LayoutControl work same way in 100% and 125% text size?

Thanks,

Alex

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 31 Jan 2020
1 answer
165 views

Hi

I am trying to save a row item to a internel variable without much succes.

 

lstTags is a detailed veiw and it curretly works.

 

I basicaly want to get reocrd 6 save to listViewDataItem

then look to see what the sub items are set too?

 

The code i have is;

Dim listViewItem As ListViewDataItem = lstTags.Items(6)  

Dim itemId As String = listViewItem.SubItems(1).Text 

 

There are no sub-items.

 

 

Neil

 

Nadya | Tech Support Engineer
Telerik team
 answered on 31 Jan 2020
1 answer
628 views

Hi,

I'm having a hard time trying to get a datetime value from my gridview to string in the correct format that I have set to display on the gridview.

 

I want:   yyyy/MM/dd HH:ss ex. 2020/01/30 14:15

But the result keeps giving me 1/23/2020 2:05:08 PM

Then to string with all the non-alphanumeric removed it gives me: 1232020258PM   (noticed it removed any 0s in front of the mins and secs...

 

I have already formatted the datetime on the gridview to display the correct format. But the value to string still gives me the other format.

I've also tried to grab the data from Sql database instead of gridview, however I still get the same result.

 

Ultimately, I need the correct format in the string so that I can eventually take it apart again to put in a different table.  And why it will be in string is because i need to grab this info to include in the name of the PDF file.  Then I'll make a table using info from the name breakdown to pull the PDF to put info a table to select it.

Help?  Thank you!!!

My code:

private void radGridView1_CommandCellClick(object sender, GridViewCellEventArgs e)
       {
           plantCode = radGridView1.CurrentRow.Cells["plantCode"].Value.ToString();
           machine = radGridView1.CurrentRow.Cells["machine"].Value.ToString();
           ordNum = radGridView1.CurrentRow.Cells["productionOrderNum"].Value.ToString().Substring(0, 7);
           ordItem = radGridView1.CurrentRow.Cells["productionOrderNum"].Value.ToString().Substring(8, 3);
           apprStatus = radGridView1.CurrentRow.Cells["approvalList"].Value.ToString();
           custName = radGridView1.CurrentRow.Cells["addrName"].Value.ToString();
           process = radGridView1.CurrentRow.Cells["process"].Value.ToString();
           prodCode = radGridView1.CurrentRow.Cells["prodCode"].Value.ToString();
           custId = radGridView1.CurrentRow.Cells["custId"].Value.ToString();
           approvalTime = Regex.Replace(radGridView1.CurrentRow.Cells["approvalTime"].Value.ToString(), "[^a-zA-Z0-9]", "");

 

See I already formatted it on the datetime column in the gridview and this works fine displaying in the gridview:

gridViewTextBoxColumn16.DataType = typeof(System.DateTime);
gridViewTextBoxColumn16.FieldName = "approvalTime";
gridViewTextBoxColumn16.FormatString = "{0:yyyy/MM/dd HH:mm}";
gridViewTextBoxColumn16.HeaderText = "approvalTime";
gridViewTextBoxColumn16.IsVisible = false;
gridViewTextBoxColumn16.Name = "approvalTime";
gridViewTextBoxColumn16.ReadOnly = true;
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 31 Jan 2020
2 answers
212 views
RadMenu contains several RadMenuItems. When I click on RadMenuItem and move the mouse pointer to another RadMenuItem, is the opening RadMenuItem. But I do not need that would hover on the other it does not open RadMenuItem.
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 30 Jan 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)
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?