Telerik Forums
UI for WinForms Forum
1 answer
125 views

I have skinned my Treeview such that it has flat white icons and white text on a blue background.  I'd like them to invert colors for selection (blue on a white background).

Using Visual Style Builder, is it possible to get the icons to "invert" somehow when selected?  Or what is the best way to achieve this?  

If not, will I need to track selection myself and load "inverted" images at the appropriate time?

Thanks,

Dave

 

 

Dimitar
Telerik team
 answered on 27 Nov 2017
3 answers
334 views

I might be a newbie to Telerik Winform controls.

I have a rad grid view displaying from a data source. for each row there are two buttons i.e approve and reject. I need to selectively approve or reject each row. On Click of a save button i have to save them back to database.

I have Boolean field in table to which value is based on approve or reject button. The default value is false. I want only to save the database rows that i have modified that too on save button click.Can I have any flag to selectively get only the rows modified at radgrid so that i can retrieve them and save them on save button click.

I worked on it did not work out, in My version  because  every save would save each and every rows if was modified on rad data grid or not.

I'd be thankful if someone helps me in this issue.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 27 Nov 2017
3 answers
87 views

hello

When the dropdownlist is set to right to left = yes, the mouse pointer in it is like a dot. Guide me?  I use telerik Q2 2014

thank you

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 27 Nov 2017
0 answers
98 views
I have a gridview with data that constantly are refreshed(quantities...), when the user have one row selected and i refresh the information, the grid loss the selected row and move to other position,there is some property that allows managment these kinds of situations easily? i just want to refresh the information and that the user dont have problems when the focus change between rows due to change the datasorce.
thanks in advance.
m
Top achievements
Rank 1
 asked on 26 Nov 2017
2 answers
121 views

Is it possible to add a subitem to a menu of a splitbutton?

I need a hierarchy like this:

load

---category a

------file 1

------file 2

------.....

---category b
------file 1
------file 2
------.....

save

insert

...

 

Thanks in advance!

Elke

 

 

Elke
Top achievements
Rank 1
 answered on 25 Nov 2017
8 answers
1.2K+ views
Do you want to change the font of all parts radgridview
If you can change the font of all the controls are pretty good
example
hard7
Top achievements
Rank 1
 answered on 25 Nov 2017
5 answers
422 views
I can't seem to recreate the treeview example that shows a layout having nodes with different ItemHeight values.  The RadTreeView seems to only respect the ItemHeight that is set at on the treeview itself and not the values of the child nodes.  Is there a flag some where to respect the different nodes property values?
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 24 Nov 2017
17 answers
1.3K+ views
Hey,

I'm loving the load and save layout feature of the RadGrid View. Very powerful tool to allow end users great control of how they want to view their data ;)

BUT I a mhaving one issue with it. I have implemented the Save Load layout as per the documentation and I save these XML to our database without issue  - Since this has been done my boss has requested I add columns and change the names of columns on some of the Grids. The problem is, the SaveLayout() XML is saving the entire column template of the  grid and when I have an additional data row and bind this to the DataSource of the Grid the new column is not appearing (I have a similar problem if I rename the column in the underlying data-source).

I've been tinkering with the SerializationMetadata and have been able to set this:

this.XmlSerializationInfo.DisregardOriginalSerializationVisibility = true;

And continue to make changes to how the columns themselves are saved. For example I was able to not save the format string - because this is again something we want control over in development.

To top this off, it's very FEW things that I want removed from the Original Meta Data and it is painstaking and very prone to error to add all these serialization values back after calling the clear() method as instructed by the documentation. 

Would love if anyone out there knows of a way to control WHICH columns exist via the datasource but still save the layout details of each columns - and if there's an easier approach to perhaps remove specific layout options instead of having to re-build the entire Serialization info.

Cheers, thanks for reading
Dave - Connect Direct
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 23 Nov 2017
1 answer
139 views

Hi,

can i draw a rectangle in radDiagram with mouse,  like Ms Paint?

Thanks

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 23 Nov 2017
3 answers
387 views

Hello Support,

  I am having trouble with custom sorting accessing values that were set using cellformatting().  I have a Gridview that is databound to a custom class,  AutoGenerateColumns = false, adding columns using grid.MasterTemplate.Columns.Add(), using CellFormatting() to populate the data on some of the columns that are not in the custom class.

Values that are assigned from the databound class show up ok, but the Values that were assigned using CellFormatting() are always null.  

How can I access the values set using CellFormatting() { e.CellElement.Text = "X"} ?

Thanks

void grid_CustomSorting(object sender, GridViewCustomSortingEventArgs e)
        {
            foreach (var descriptor in e.Template.SortDescriptors)
            {
                if (uicomponents != null && !String.IsNullOrEmpty(descriptor.PropertyName) )
                {
                    var customcolumn = uicomponents.FirstOrDefault( ui => ui.FriendlyName.Equals(descriptor.PropertyName));
                    if (customcolumn != null)
                    {
                        int result = 0;
                        System.Diagnostics.Debug.WriteLine(descriptor.PropertyName);
 
                        try
                        {
                            //var cellValue1 = (string)e.Row1.Cells[descriptor.PropertyName].Value;
                            //var cellValue2 = (string)e.Row2.Cells[descriptor.PropertyName].Value;
 
                            var cellValue1 = (string)e.Row1.Cells[descriptor.PropertyIndex].Value;
                            var cellValue2 = (string)e.Row2.Cells[descriptor.PropertyIndex].Value;
 
                            if (cellValue1 == cellValue2)
                            {
                                result = 0;
                            }
                            else if (cellValue1 != null)
                            {
                                result = 1;
                            }
                            else if (cellValue2 != null)
                            {
                                result = -1;
                            }
                        }
                        catch
                        {
 
                        }
                        e.SortResult = result;
                        e.Handled = true;
                        return;
                         
                    }
                    else
                    {
                        //Check here if the value for cells that are databound are populated.
                        var cellValue1 = (string)e.Row1.Cells[descriptor.PropertyIndex].Value;
                        var cellValue2 = (string)e.Row2.Cells[descriptor.PropertyIndex].Value;
 
                        //This actually works.
                        System.Diagnostics.Debug.WriteLine(cellValue1 + " " + cellValue2);
                    }
                }
            }
 
            e.Handled = false;
        }

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 23 Nov 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?