Telerik Forums
UI for WinForms Forum
1 answer
382 views

Hello,

I have a RadPageView control with Windows 8 theme and strip view mode.

When I disable the control, the color of the strip behind the tabs changes to a dark gray. I do not want it to change, but to stay in control color.

If I use the EnabledChange event and change the ItemContainer.BackColor of the StripElement it still shows the dark gray first.

 

I have seen that this is possible for example in Fluent theme, but want to use Windows 8 theme for my application.

I would love to use an easy way (SetThemeValueOverride) if possible. But I also haven't found a fitting property in the theme's style repositories and groups


 

Dinko | Tech Support Engineer
Telerik team
 answered on 10 Jul 2023
2 answers
219 views

I want to achieve functionality of Re-Ordering Rows In a Grid.

Requirement:
User will Select Row and Click on Up Button on UI to shift that on Up direction. Example If user select 3rd row from top and then click on up then it must shift that row to 2 position from top.
Also the which was on 2nd postion from top now comes on 3rd from top 

Below code I tried but not working Properly When Rows are More than 2 in a grid:

private void btnInternalUp_Click(object sender, EventArgs e)
    {

for (int index = 0; index < this.m_grdGridControl.SelectedRows.Count; index++)
{
var currentRow = this.m_grdGridControl.SelectedRows[index];
int currentIndex = currentRow.Index;
int nextIndex = NextIndex(this.m_grdGridControl, currentIndex, "up");                    
this.m_grdGridControl.MasterTemplate.Rows.Move(currentIndex, nextIndex);
   
}

    }

//NextIndexMethod Return the index where row need to be shifted:

public static int NextIndex(RadGridView grd,int currentIndex,string direction)
    {
        int nextIndex;
        if (direction.ToLower() == "up")
        {
            if(currentIndex == 0)
            {
                nextIndex = 0;
            }
            else
            {
                nextIndex = currentIndex - 1;
            }
        }
        else
        {
            if(currentIndex == grd.Rows.Count - 1)
            {
                nextIndex = currentIndex;
            }
            else
            {
                nextIndex = currentIndex + 1;
            }
        }

        return nextIndex;
    }

 

Shubham
Top achievements
Rank 3
Iron
Iron
Iron
 answered on 10 Jul 2023
1 answer
207 views

Hello, 
we are using OpenEdge 10.2B and have quite a few files with OCX controls which we would like to change to use Telerik controls.  

Right now I'm focused on replacing progress bars to use RadProgressBar.

What I've done so far is created a ProgressBar.cls which has the RadProgressBar and a cancel button in it's own window.  The progress bar window is shown overtop of the calling window and is updated accordingly.  It works well, we were just hoping we could keep them in the same window.

Is it possible to use Telerik controls in a .w file?  Or are we going to need to rebuild each program that uses an OCX control to achieve this?

Dinko | Tech Support Engineer
Telerik team
 answered on 07 Jul 2023
1 answer
290 views
Hi,

I am trying to use the radColorDialog but its not showing on top of my main form.

The main form is set to TopMost to ensure its at the top (the app has other forms open)

From the main form I am calling:
private void button1_Click(object sender, EventArgs e)
        {
            this.TopMost = true;
            this.BringToFront();

            radColorDialog1.Reset();
            
            if (radColorDialog1.ShowDialog(this) == DialogResult.OK)
            {

            }
            
        }

This is winforms .net7 I am only using this one Telerik control UI.for winforms... (2023.2.606)

I would expect the dialog to above the main form.

I tried the colourBox and it has the same issue.
Dinko | Tech Support Engineer
Telerik team
 answered on 06 Jul 2023
1 answer
158 views
I have uninstalled/reinstalled Visual Studio, added & removed controls, restarted, etc.  Windows 10, VS 2015
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 06 Jul 2023
1 answer
130 views

In the screen mockup below, is it possible to include a subgrid header like the onr that reads "Reference Information" when there is only a single grid at that level?

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 06 Jul 2023
1 answer
147 views

Hello,

I have a RadGridView with a GridViewMaskBoxColumn that has a DateTime mask of 'd', EnableNullValueInput set to true, and MaskType set to FreeFormDateTime. The CTRL+DEL does clear the box, but when I leave the box the current date is automagically filled. In CellValidating, CellValueChanged, CellValueNeeded, and UserAddingRow I assign the cell value to null if there is no current value in the cell or if it's whitespace or if it's an empty string. 

I see on this Parsing Dates Page under Date evaluation that "incomplete dates are always evaluated taking the current date as a basis". Can I override this behavior so a null cell can stay a null cell? If yes, how?

 

Thank you.

Dinko | Tech Support Engineer
Telerik team
 answered on 05 Jul 2023
1 answer
152 views

Hi,

I have a RadGridView that is the AssociatedObject of a RadPrintDocument that I want to print via a PrintDialog:

private PrintDialog printDialog;
RadPrintDocument doc = new RadPrintDocument
{
	AssociatedObject = radGridHistorie
};

printDialog.Document = doc;
printDialog.AllowSelection = true;

if (printDialog.ShowDialog() == DialogResult.OK)
{
	doc.Print();
}

 

If I select "All" in the PrintDialog, all entries are printed on the document.

If I select "Selection" in the printDialog after having Rows selected in the GridView, no entries are on the printed document.

What is wrong?

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 04 Jul 2023
4 answers
337 views

Hi

I want to copy data from RadGridView1 to another RadGridView2.  I want to copy selected row from datagridview 1 using checkbox to another datagridview2. and selected rows should be removed from datagridview1.

And if i selected from datagridview2 it should moved again to datagridview1.

 

For Each row As GridViewDataRowInfo In Me.RadGridView1 .Rows
                  if  row.Cells(0).Value = true  then''Checkbox column

                 dim i as int16= Me.RadGridView2.add

                Me.RadGridView2.rows(i).cells(0).value= row.cells(0).vlaue.tostirng

         End If
Next row

 

 

Dinko | Tech Support Engineer
Telerik team
 answered on 04 Jul 2023
1 answer
125 views

I have a rad ribbon sittng above a table layoutpanel. when I open the backstage view from startmenubutton it opens in one of the cells of the Tablelayoutpanel rather than overlaying all the content and filling the screen. how do I resolve this

 

Dinko | Tech Support Engineer
Telerik team
 answered on 04 Jul 2023
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
Documentation
SplitContainer
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
ShapedForm
SyntaxEditor
Wizard
CollapsiblePanel
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
Styling
Barcode
PopupEditor
RibbonForm
TaskBoard
Callout
NavigationView
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?