Telerik Forums
UI for WinForms Forum
1 answer
257 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
116 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
227 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
111 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
115 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
351 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
47 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
34 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
378 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
166 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)
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?