Telerik Forums
UI for WinForms Forum
1 answer
49 views
Hi

We have a column SexCode which can be 0 or 1 , female and male respectively.
I want Grid column to display Male if value = 1 and Female if value = 0.

I can do this with lookup column but then i will need a datasouce, which i want to avoid.
I can also do this in SQL Query itself, but then i don;t want to increase size of query output, when it can be done at client side.

Can this be done ?

Regards
Leee.

Svett
Telerik team
 answered on 24 Mar 2010
3 answers
157 views
I have a gridview with 2 command buttons when I click a button on a row it changes to orange.  When I click another button on a different row it changes to orange but the first row doesn't change colors it stays orange instead of going back to blue.

I have the same types of issues with listboxes and I'm guessing the mouseover event.  It will highlight with a lighter orange then the select orange but it looks like all the rows are highlighted.

This is a MAJOR issue to my application which is close to being released.  I never noticed it like this till recently.  Please tell me there is a way around this.


Thank You
Deyan
Telerik team
 answered on 24 Mar 2010
5 answers
249 views
Hi,

We are very interested in the functionality of the DocumentTabStrip but our users will have little use for and get confused with the concept of the docking assistant. We would like to implement our own behaviour for drag and drop and restrict the ability of the user to define the look of their workspace.

I've hunted through the help and forums but I can't find any way of disabling the docking assistant, is it possible to do this or should we look for other controls?

Is it possible to use a DocumentTabStrip without the outlying RadDock?
Georgi
Telerik team
 answered on 24 Mar 2010
18 answers
620 views
I have a grid in which the combobox column's value are dependant on another value in the row.

i.e.

Row 1 has value 1; combo should display a,b,c,d
Row 2 has value 2; combo should display e, f, g

I have the combo bound to a stored procedure with a parameter, but where can I specify the parameter to pass for the procedure.

I tried modifying the DataSource on CellBeginEdit, but for the rows not of the same type the combobox field goes blank as their value is no longer valid when the new dataset is put in place.  I tried changing the dataset back in the CellEndEdit, but that didn't seem to work.

Thanks,
Eric
Jack
Telerik team
 answered on 24 Mar 2010
3 answers
344 views
I have created a GridView to display a parent-child dataset. I have created and assigned all columns in code. This code works fine. I am able to add data and successfully update the database.

I need to capture changes to a GridViewComboBoxColumn. I want to detect when the ComboBox selection has changed and set date values for other fields in the row. I have included the event code below. It mostly works. The values come back to the grid in the correct place, but as soon as I click into another cell, the values disappear.

I have also tried a solution similar to the code below using rgv.CurrentRow.Cells["From"].Value instead of CellElement. The behaviour and results are similar but not quite successful. I have also tried enclosing the cell updates inside of rgv.GridElement.BeginUpdate() and rgv.GridElement.EndUpdate(); That didn't work either. .

This is a pretty typical thing to do in Microsoft .NET controls so I am a bit mystified as to why this appears to be so difficult with advanced controls. I am certain it is user error. but I just don't know where to look at this point. .I would appreciate it immensely if someone could point me in the right direction.

I am new to Telerik. I have figured out quite a bit in the last few days, but now I am under the gun to deliver.

Thanks in advance
John


private void rgv_ValueChanged(object sender, EventArgs e)
        {
            if (sender is RadComboBoxEditor)
            {
                RadComboBoxEditor editor = this.rgv.ActiveEditor as RadComboBoxEditor;
                if (editor != null)

                switch(editor.Value.ToString())
                {
                    case "Before" :
                        rgv.CurrentRow.Cells["From"].CellElement.Text = DateTime.MinValue.ToString();
                        rgv.CurrentRow.Cells["From"].CellElement.Enabled = false;
                        rgv.CurrentRow.Cells["To"].CellElement.Enabled = true;
                        break;
                    
                    case "After" :
                        rgv.CurrentRow.Cells["To"].CellElement.Text = DateTime.MaxValue.ToString();
                        rgv.CurrentRow.Cells["From"].CellElement.Enabled = true;
                        rgv.CurrentRow.Cells["To"].CellElement.Enabled = false;
                        break;
                    
                    case "Range" :
                        rgv.CurrentRow.Cells["From"].CellElement.Text = DateTime.Now.ToString();
                        rgv.CurrentRow.Cells["To"].CellElement.Text = DateTime.Now.ToString();
                        rgv.CurrentRow.Cells["From"].CellElement.Enabled = true;
                        rgv.CurrentRow.Cells["To"].CellElement.Enabled = true;
                        break;
                    
                    default :
                        break;

                }
            }


Jack
Telerik team
 answered on 24 Mar 2010
1 answer
317 views
Do I need to do anything other than below to refresh a gridview?  (Im talking about the TableAdapter.Fill, will this cause the grid to rebind to the data automatically or do I need to include that also?  (It currenly appears to be working when the timer is up it does seem to freeze up the app for a few seconds as it downloads the huge dataset but because there is so much data and it maybe 5-10min between a change its kind of hard for me to see if a change happens.

    Private Sub Timer1_Tick(ByVal sender As System.ObjectByVal e As System.EventArgs) Handles Timer1.Tick  
        Dim Diff As TimeSpan = TargetTime.Subtract(Now)  
        If Diff.Seconds = 0 And Diff.Minutes = 0 Then 
            Label1.Text = "Data Refresh Now!  Stand By!" 
            Me.ExpediteTableAdapter.CommandTimeout = 0  
            Me.ExpediteTableAdapter.Fill(Me.MSQL_ERPLXFDataSet.Expedite)  
            TargetTime = Now.AddMinutes(30)  
        ElseIf Diff.Seconds < 0 And Diff.Minutes >= 0 Then 
            Label1.Text = "-" & Format(Diff.Minutes, "#0") & ":" & Format(System.Math.Abs(Diff.Seconds), "00")  
        Else 
            Label1.Text = "Data Refresh In " & Format(Diff.Minutes, "#0") & ":" & Format(System.Math.Abs(Diff.Seconds), "00")  
        End If 
    End Sub 
Julian Benkov
Telerik team
 answered on 24 Mar 2010
2 answers
240 views
Hello..

Can i get one example for Three level hierarchy in Gridview?

grvStcokInquiry.MasterGridViewTemplate.ChildGridViewTemplates[0].ChildGridViewTemplates.Add(packageTemplate);
GridViewRelation packageRelation = new GridViewRelation(grvStcokInquiry.MasterGridViewTemplate.ChildGridViewTemplates[0]);


I am using the above code for adding third level.unfortunetly i am not getting the third leve.

Pls help me
thanks in advance
anoop
Top achievements
Rank 1
 answered on 24 Mar 2010
3 answers
290 views
Hey there!

I'm working on a project what implements a treeView and a detailed ListView for file browsing. And I would like to grab the icons and file description from the system (from Windows) and add it automatically to the treeView nodes and the listview items too.

Could you tell me how is this possible in an easy way?
Nikolay
Telerik team
 answered on 24 Mar 2010
5 answers
130 views
I upgraded to the new 2010 Q1 release and now there is a large are being added under the title bar for the tabs.  I don't have any tabs defined so I do not want this showing.  How can I hide this?
Grant Drury-Green
Top achievements
Rank 1
 answered on 24 Mar 2010
1 answer
138 views
Hi,
   " Error 1 'Telerik.WinControls.UI.RadListBox' does not contain a definition for 'SelectedIndices' and no extension method 'SelectedIndices' accepting a first argument of type 'Telerik.WinControls.UI.RadListBox' could be found (are you missing a using directive or an assembly reference?) "

    This error only Q1 2010 in version Q2 2009 works. 
    Which alternative for Telerik.WinControls.UI.RadListBox.SelectedIndices in Q1 2010 ?

thanks

Victor
Telerik team
 answered on 23 Mar 2010
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
WaitingBar
GroupBox
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
NavigationView
BindingNavigator
RibbonForm
Styling
Barcode
PopupEditor
TaskBoard
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Overlay
Security
LocalizationProvider
Dictionary
TreeMap
StepProgressBar
SplashScreen
Flyout
Separator
SparkLine
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
SpeechToTextButton
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?