Telerik Forums
UI for WinForms Forum
3 answers
174 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
146 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
228 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.3K+ 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
584 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
697 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
555 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
128 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
767 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
6 answers
174 views

Unfortunately I'm using an older version of the winforms controls, but just in case someone can help..

I'm validating in the property view, but I can't get an error message to show. I even tried to set Description until I worked out the error message issue, but that doesn't show either. (I have the help panel showing).

I have a delegate doing the property validation, which returns me an error string if invalid. The string is being returned correctly. See below for my code; I've only changed a name or two.

private void OnValidating(object sender, PropertyValidatingEventArgs e)
{
    var item = e.Item as PropertyGridItem;
    if (item == null) return;
 
    if (_validateProperty != null)
    {
        var item = GetViewModelItem(sender);
        var error = "";
        var valid = _validateProperty(item, e.Item.Name, e.NewValue as string, out error);
        if (!valid)
        {
            // TODO: error message not showing
            item.ErrorMessage = error;
        }
        e.Cancel = !valid;
    }
}
Tino
Top achievements
Rank 1
 answered on 12 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)
Form
Chart (obsolete as of Q1 2013)
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
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
CollapsiblePanel
LayoutControl
ShapedForm
SyntaxEditor
Wizard
TextBoxControl
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
RibbonForm
Styling
Barcode
PopupEditor
TaskBoard
NavigationView
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Overlay
Security
LocalizationProvider
Dictionary
SplashScreen
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
SpeechToTextButton
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?