Telerik Forums
UI for WinForms Forum
34 answers
2.3K+ views

I have a RadGridView with GridViewCheckboxColumn.

When  I click on any cell in the grid I catch the CellClick event of the grid and   check/uncheck the checkboxcolumn in the specific current row.

It work fine in all the cells except for click on the checkbox cell that do change the value but  the result doesn’t appear in the checkbox.

 The changes are seen only after I move the cursor.

How it is possible that the value is changed but the checkbox isn’t checked/ unchecked ?

  void RadGridView_CellClick(object sender, GridViewCellEventArgs e)

        {

            if (e.RowIndex > -1)

            {

                if (e.Row.Cells["Sel"] != null)

                {

                    if (e.Row.Cells["Sel"].Value != DBNull.Value)

                        e.Row.Cells["Sel"].Value = !Convert.ToBoolean(e.Row.Cells["Sel"].Value);

                       

                    else

                        e.Row.Cells["Sel"].Value = true;

                       

                }

            }

           

        }

Jeen
Top achievements
Rank 1
 answered on 15 Sep 2014
1 answer
125 views
For RadDateTimeEditor, I have the following question, Anyone can help me?
Now in the standard RadDateTimeEditor, We have to type value with a format of 'YYYY/MM/DD'
That means if we want to type '20150201', we have to type '2015/02/01' or '2015 02 01'.

But my clients have the following requirements.
He wants to type a value with a format of 'YYYYMMDD', that means he wants to directly type a value '20150201'.

So, Is there any way or any code to do that.
Thanks
Ralitsa
Telerik team
 answered on 15 Sep 2014
4 answers
99 views
Hi,

Is there a way to set the input (TextBox) control of the GridViewDateTimeColumn to ReadOnly or Enabled = false?

We would like to have the user select the date from the drop-down calendar only.  And not allow anything to be entered into the TextBox.

Thanks,

Mike
Stefan
Telerik team
 answered on 15 Sep 2014
6 answers
173 views
I whish to add a track bar or range selector to a group in a Ribbon bar at design time.  I cannot figure out how to do this.  Optionally, how would I do this with Code(C#)?
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 12 Sep 2014
4 answers
234 views
In UI for WinForms, I'm having trouble understanding how to link a RadTextBoxControl to a database containing ~ 60,000 part numbers.  Obviously I don't want to fetch the whole list into RAM, I want to query the db every time the user types a character.  What event do I trigger on to refresh the list, and how do I specify the query itself (search parameters, number of results returned, etc.)?

I've tried binding the .AutoCompleteDataSource to a List<string> and updating that list via the database every time the TextChanged event fires, but it doesn't work - updating the datasource doesn't re-bind to the control, and setting the property again seems to wipe out any autocomplete in progress.

private void radPnTextBox_TextChanged(object sender, EventArgs e)
{
    //populate autocomplete list
    if (VDO != null)
    {
        //fetch updated list from database
        PnDropdownList = VDO.GetAutoCompletePnDescription(radPnTextBox.Text.ToUpper());
 
        //re-bind the this list by re-assigning the datasource
        radPnTextBox.AutoCompleteDataSource = PnDropdownList;
    }
}


Are there any code examples of using autocomplete function bound to a database?

Thanks,
Randy
George
Telerik team
 answered on 12 Sep 2014
1 answer
99 views
Hi,

I don't have any experience with Telerik Controls and have not done much research on Telerik controls.

Can anyone advise if GridView control for WinForm has the capability to support drag and fill across rows within one column? Basically we want the data grid control have full some Excel-like capability to manipulate data (like Drag & Fill within one column, Drag and Copy etc..).

Thanks,
Kevin Hu
Ivan Todorov
Telerik team
 answered on 12 Sep 2014
1 answer
107 views
Hello,

Here is my problem. I've an c# application and a website both with telerik's tools.

I've got a web page to create a radtreeview. The xml of this radtreeview is stored in my database and i'm using it to load in different pages.

I'm also using it to load a radtreeview in my c# application. 

What I need now is to allowed my customer to move nodes in the radtreeview (in my application, in the web it's working great), and save this new radtreeview (xml) in my database...

The xml is totally different between winforms and ASP.NET and my radtreeview is wrong in the web after i save the xml from my application.

Is there a fast solution to link RadTreeView from winforms and RadTreeView from asp.net ? 

Thanks,

Regards.
Ivan Todorov
Telerik team
 answered on 12 Sep 2014
6 answers
204 views
How can I place a button in the first header cell above the row selection arrows?  I would like to do this in a class derived from gridview.

Hans Heuvelman
Hans
Top achievements
Rank 1
 answered on 12 Sep 2014
1 answer
99 views
Hello,

I have a menu item with image
I wish to check on/off the menu (highlight the image) when the user click on it (same like with the toolbar check button - when the button is checked the image is highlighted)

I used the tooglestate property but this works only without image

Thanks

Dimitar
Telerik team
 answered on 11 Sep 2014
5 answers
195 views
Hello, 

I use OS: Win 8.1
         .Net4.5
        UI fo Winforms Vers. 2014.2 715 

I try to make a relation between 2 tables in my MS Entity (Framework 6.0.1),

The problem is the tables don't have a column in common so that i can make a direct relation,

What i need is a possibility to .Join a third table to my parent which provides the missing column.

My 3 tables are

tbl_AffiliateCommision which should be my parent template in the Hierarchygridview this table provides me the column "AffiliateUser" and the grouping would be done with this column.

tbl_Affiliate in this table every AffiliateUser gets his specific "IdAffiliates". This table would provide both columns. This table should not be shown in the grid

ItemAffiliate which should be the child template and  provides me the sold items and the column "IdAffiliate" which is a undergroup of the Column "AffiliateUser" ( AffiliateUser is not available in this table)

e.g.: AffiliateUser : 12354 has the IdAffiliates: 1,4,6
         AffiliateUser: 32145 has the IdAffiliates: 2,3,7

Here some code for better a understanding 

in the 01 line i just look up the data i would use the same Join in teh 02 line if it would work like this. 
the rest of the code shows how i would make my grid.

Please let me know if i forgot to give you important information.

01.var g = db.tbl_wat_Affiliate_Commission.Join(db.tbl_wat_Affiliate, ac => ac.IdAffiliateUser, a => a.AffiliateUser, (ac, a) => new { ac, a });
02.this.radGridView1.DataSource = db.tbl_wat_Affiliate_Commission.Local.ToBindingList();
03.this.radGridView1.AllowAddNewRow = true;
04.this.radGridView1.AllowEditRow = true;
05.this.radGridView1.AllowDeleteRow = true;
06. 
07.// Create and load child
08. 
09. db.tbl_sst_ItemAffiliate.Load();
10. 
11.GridViewTemplate template = new GridViewTemplate();
12.template.DataSource = db.tbl_sst_ItemAffiliate.Local.ToBindingList();
13.// Hinzufügen des childtemps.//
14.this.radGridView1.MasterTemplate.Templates.Add(template);
15. 
16.//Create relation//
17.GridViewRelation relation = new GridViewRelation(this.radGridView1.MasterTemplate);
18.relation.ChildTemplate = template;
19.relation.RelationName = "Affiliate";
20.relation.ParentColumnNames.Add("IdAffiliateUser");
21.relation.ChildColumnNames.Add("IdAffiliateUser");
22.this.radGridView1.Relations.Add(relation);


best regards 
George
Telerik team
 answered on 11 Sep 2014
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?