Telerik Forums
UI for WinForms Forum
1 answer
339 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.Object, ByVal 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
282 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
300 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
135 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
145 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
1 answer
413 views
Hi folks.

I use a RadRibbonForm as my main form (MDI container) and also a RadDock control to host my MDI child forms. My main form's Load event follows:

        private void MainForm_Load (object sender, EventArgs e)  
        {  
            if (this.IsMdiContainer != true)  
                this.IsMdiContainer = true;  
 
            string theme = ThemeResolutionService.ApplicationThemeName;  
            ThemeResolutionService.ApplicationThemeName = "Office2007Silver";  
 
            this.Text = Properties.Resources.AppName;  
 
            this.dock.AutoDetectMdiChildren = true;  
            this.dock.DocumentManager.DocumentInsertOrder = DockWindowInsertOrder.ToBack;  
            this.MdiChildActivate += new EventHandler (MainForm_MdiChildActivate);  
 
            FormPosition.LoadFromRegistry (this, Properties.Resources.AppName);  
        }  
 

The code that creates a new child form follows:

            EditorForm frm = new EditorForm (file);  
            frm.MdiParent = this;  
            RichTextBoxEx txt = frm.Editor;  
            txt.CursorPositionChanged += new System.EventHandler (CursorPositionChanged);  
            txt.SelectionChanged += new System.EventHandler (SelectionChanged);  
            txt.MouseDown += new MouseEventHandler (OnRichTextBox_MouseDown);  
            frm.Show ();  
 

The problem is that after the line: "frm.MdiParent = this;" (this is the main form and is not null) frm.MdiParent becomes null !!!

Can you please help me?

Thank you in advance.
Nikolay
Telerik team
 answered on 23 Mar 2010
1 answer
88 views
I have tried to create a new style for various components in the new Visual Style Builder and got stuck when dealing with the RadListBox component. In the RadListBoxElement > RadListBoxItem sub-component both the ListBoxItemSelectionFIll and ListBoxItemSelectionBorder seem to ignore their settings, no changes are visible in the preview even if new styles are assigned to this components. The ListBoxItemText sub-component works however. If I save the resulting theme and import it in an application the same problem applies, all the settings for other sub-components work correctly (like the RadListBox border and background) but the list box items' fill and border styles seem to be ignored.

[update]

I looked deeper into the problem and realized that this is not a bug. Apparently the ListBoxItemSelectionFill and ListBoxItemSelectionBorder have by default their Visibility property set to Hidden. Changing it into Visible fixes the problem.
Victor
Telerik team
 answered on 23 Mar 2010
1 answer
59 views
Dear All:

I'm very new with the telerik, I want to search an item in a radcombo if the item is exist then set it as a default item, How can i achieve this, I need your help:

Regards,
Md. Marufuzzaman
Victor
Telerik team
 answered on 23 Mar 2010
3 answers
456 views
Hello,

I have a few grids where I'd like to achieve the following:

Have the column widths automatically determined via grd.MasterGridViewTemplate.BestFitColumns() except when the sum of the column widths under this method is less than the width of the grid itself. In this case, set the grd.MasterGridViewTemplate.AutoSizeColumnsMode to be Fill. 

I have tried to do this via the following code, but it doesn't seem to be accurate when summing the column widths, and thus I am still getting cases where the columns do not fill the grid...

grdDifferences.MasterGridViewTemplate.AutoSizeColumnsMode = GridViewAutoSizeColumnsMode.None; 
                grdDifferences.MasterGridViewTemplate.BestFitColumns(); 
                int iTotalWidth = grdDifferences.Width; 
                int iCountWidth = 0; 
                foreach (GridViewColumn column in grdDifferences.Columns) 
                { 
                    iCountWidth += column.Width; 
                } 
                if (iCountWidth < iTotalWidth) 
                { 
                    grdDifferences.MasterGridViewTemplate.AutoSizeColumnsMode = GridViewAutoSizeColumnsMode.Fill; 
                } 

Any help would be appreciated.

Thanks!
Jeremy
Jack
Telerik team
 answered on 23 Mar 2010
1 answer
215 views
Hello,

I put a bindingList (loaded with database content) in my grid's DataSource.

Oon RowValidated, I want to save the added/modified Data item to the database.

Is there a safe way to know if RowValidated is after an Add, or an Edit ?

Thanks,
Jack
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
PdfViewer and PdfViewerNavigator
CommandBar
ListControl
Carousel
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
Label
AutoCompleteBox
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
SyntaxEditor
Wizard
CollapsiblePanel
LayoutControl
ShapedForm
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
SmartPasteButton
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?