Telerik Forums
UI for WinForms Forum
1 answer
133 views
I have a need to save the layout of the grid any time the user adds/removes columns, resizes column widths and/or rearranges the order of columns.  I already know to use the grid.SaveLayout() method.  That's not the issue, I just don't want to have to listen to so many events to be able to know when to call SaveLayout().
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 15 Dec 2017
3 answers
130 views

Hi

I set culture property of my RadCalendar to "fa-ir" but when i run the program it will be show in "en-US"

what should i do for resolve it ?

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 15 Dec 2017
2 answers
119 views

I've found that RadGrid filtering doesn't work when the values have a "<" (less than) character inside of the column.  Upon removing the values with the "<" sign, the filters work.  Does anyone know a fix or way around this?  It seems like an escaping bug.

 

Thanks,

Jason

Jason
Top achievements
Rank 1
 answered on 14 Dec 2017
3 answers
169 views

Hi,

I have a Form with a RadMenu added to it (using form.Controls.Add (menu), and the menu is configured as :

 

Dim item As RadMenuItem = New RadMenuItem
item.Name = "Test"
item.Text = "Test"
item.Shortcuts.Add(item:=New RadShortcut(Keys.Alt, Keys.T))

Dim mOption As RadMenuItem = New RadMenuItem
mOption.Name = "Go"
mOption.Text = "Go"

item.Items.Add(value:=mOption)

menu.Items.Add(item)

This correctly displays the menu at the top of the form as "Test ALT + T", but I am expecting the Alt + T keypress to dropdown the menu to show the "Go" option, but this isn't happening.

Am I using this incorrectly?

Actually, the reason I am looking to use ShortCuts in this way is our existing app currently uses the "&" notation to provide keyboard access to the menu, so the example above would be "&Test" and this would correctly dropdown down on ALT + T.

The reason we are looking to move to shortcuts is we have an issue with the menu retaining focus on a non-existing Alt + KEY combo which is causing us problems.

E.g,

If the user types Alt + Z nothing happens, which is correct as there is no ALT + | menu item.

Now if the uses types T without ALT, we would like the T the keypress to be processed by the form and not the menu, unless ALT is pressed again.

We are finding though that the menu is still snagging the T keypress and dropping down the Test menu, which is not what we want.

Is there an alternate approach we can use to avoid this?

Mark

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 14 Dec 2017
4 answers
1.2K+ views

Hi I have all the telerik controls on a form databound like the following

Me.txtTitleDetails.DataBindings.Add(New Binding("Text", bsClient, "title_other"))

 

where bsClient is a BindingSource. The datasource of bsClient is an on form dataset control of multiple table & I use the first one for the controls on the form.

bsClient.DataSource = dsClientDetails.Tables(0)

Everything works fine when the datasource is loaded and then the controls bound...but if I change the contents of the dataset (with the same table structure but different data) the forms won't repopulate with the new data ???

have tried bsClient.ResetBindings(True/False) and the currencymanager

Dim myCurrencyManager As CurrencyManager = CType(Me.BindingContext(bsClient), CurrencyManager)
        myCurrencyManager.Refresh()

 

but still no luck..I would really like to use the databinding for data validation/change detection....do you have any ideas?

 

 

Dimitar
Telerik team
 answered on 14 Dec 2017
5 answers
521 views
Hi,

I would like to add a close button on each page of my RadPageView like in this link http://www.telerik.com/products/winforms/pageview.aspx (see attached file).

I searched but I didn't find how to do it.

Could you help me please ?

Thanks.

regards.

Fred
Chris Kirkman
Top achievements
Rank 1
 answered on 13 Dec 2017
4 answers
650 views
use ComboBoxStyle.DropDown
After select one item on combobox, then input through keyboard,  the cursor auto move the the begin of text. how to move the cursor to the end of the text? thanks
Nin
Top achievements
Rank 1
 answered on 13 Dec 2017
2 answers
503 views

Is it possible to force a cell formatting outside the event for it? EveryWhere i look it's refering us back to CellFormating Event.

I've try multiple option Using the CellFormatting Event that have generating undesired result because of Virtualisation UI.

I've manage to make it refresh on scrolling but the UI slowed down to the point it's not viable anymore.

Basically i am using DragAndDrop from 1 grid to another and then i'm trying to validate if the selected COLUMN match certain criteria.

this is the final step in my project and would gladly need help to find a solution.

 

private void svc_PreviewDragDrop(object sender, RadDropEventArgs e)
        {
            SnapshotDragItem draggedItem = e.DragInstance as SnapshotDragItem;
            GridHeaderCellElement targetHeaderCell = e.HitTarget as GridHeaderCellElement;
            if (draggedItem == null || targetHeaderCell == null)
            {
                return;
            }
            GridHeaderCellElement sourceHeaderCell = draggedItem.Item as GridHeaderCellElement;
             
            if (sourceHeaderCell != null)
            {
                e.Handled = true;
                for (int i = 0; i < gridSource.RowCount; i++)
                {
                    gridTarget.Rows[i].Cells[targetHeaderCell.ColumnIndex].Value = gridSource.Rows[i].Cells[sourceHeaderCell.ColumnIndex].Value;                   
                }
                if(Mycondition(gridTarget,Rows[i].Cells[targetHeaderCell.ColumnIndex].Value.toString(), dataType))
                {
                   gridTarget,Rows[i].Cells[targetHeaderCell.ColumnIndex].style.backcolor = Color.Red
                   gridTarget,Rows[i].Cells[targetHeaderCell.ColumnIndex].style.Drawfill = true;
                }
            }           
        }
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 13 Dec 2017
2 answers
107 views

Hello, 

I think I have found a bug in the radgridview behavior:

My radgridview is structured by :

- A Tree with a self reference hierarchy.

- Child templates for some elements in the tree

My code looks like this :

radGridView.Relations.AddSelfReference(radGridView.MasterTemplate, "CategoryId", "ParentCategoryId");
GridViewTemplate childTemplate = CreateChildTemplate();
GridViewRelation relation = new GridViewRelation(this.radGridView.MasterTemplate, childTemplate);
relation.ChildColumnNames.Add("T_RIGHT");
radGridView.Relations.Add(relation);

 

For the CreateChildTemplate(), it looks like this :

GridViewTemplate childTemplate = new GridViewTemplate();
childTemplate.AutoGenerateColumns = false;
radGridView.Templates.Add(childTemplate);
 
GridViewDecimalColumn decColumn = new GridViewDecimalColumn
{
    Name = "RightId",
    HeaderText = "Right Id",
    FieldName = "RGT_ID",
    IsVisible = false,
    MinWidth = 100
};
childTemplate.Columns.Add(decColumn);
 
GridViewTextBoxColumn tbxColumn = new GridViewTextBoxColumn
{
    Name = "RightName",
    HeaderText = "Right Name",
    FieldName = "RGT_NAME",
    ReadOnly = true,
    MinWidth = 100
};
childTemplate.Columns.Add(tbxColumn);
 
GridViewCheckBoxColumn chkxColumn = new GridViewCheckBoxColumn
{
    Name = "Checkbox",

    EnableHeaderCheckBox = true,

    FieldName = "HasAccess",
};
childTemplate.Columns.Add(chkxColumn);

 

This tree works fine, as expected.

But when I try to implement the EnableHeaderCheckBox feature, I have an error

'System.NullReferenceException' dans Telerik.WinControls.GridView.dll

 

But the header checkbox works fine if I comment the line which enables the self referencing :

//radGridView.Relations.AddSelfReference(radGridView.MasterTemplate, "CategoryId", "ParentCategoryId");

 

Can you reproduce the problem ? What can I do with this behavior ?

Thanks in advance for your help.

 

florian
Top achievements
Rank 1
 answered on 13 Dec 2017
1 answer
677 views

I have "x" number of PageViewPage's on my PageView. 

I need to be able to hide/show specific PageViewPage objects in code-behind.  I am not seeing any way to do this.  Basically I just want the "tab" for the page to go away and come back when I dictate. 

I can't destroy and then re-show the pages however, because they were built using the designer many years ago and are very elaborate.  The current solution and timing required for my project doesn't allow for going back and retooling the UI just so I could put the content of those items built in designer in to separate user controls.  So, that idea is out.

Dimitar
Telerik team
 answered on 13 Dec 2017
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
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
CheckedDropDownList
ProgressBar
TrackBar
MessageBox
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
Styling
Barcode
BindingNavigator
PopupEditor
RibbonForm
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
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
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?