Telerik Forums
UI for WinForms Forum
1 answer
60 views

Hello! 

I'm facing an error that I'm loading items from a Query in a Database using TableAdapter method. A list of items loads in the CB and data is updated by selecting from the CB. When last item is left in CB, by selecting the item, it don't trigger the index and the application (item) in CB don't loads the data. So, for this, I've decided to add new Empty or Dummy row in CB that it able to trigger index change and load the data.

My Code is:

Private Sub FwdDocQuery_SelectedIndexChanged(sender As Object, e As EventArgs) Handles FwdDocQuery.SelectedIndexChanged
 
    StatusIDRadTextBox1.Text = "2"
    If Not String.IsNullOrWhiteSpace(FwdDocQuery.Text) Then
        Dim index As Integer = ApplicationsBindingSource.Find("ID", FwdDocQuery.Text)
        If index > -1 Then
            ApplicationsBindingSource.Position = index
        End If
    End If
    If DocTypeIDRadTextBox1.Text = "1" Then
        DocTypeTBFWD.Text = "Transcript"
    ElseIf DocTypeIDRadTextBox1.Text = "2" Then
        DocTypeTBFWD.Text = "Degree"
    ElseIf DocTypeIDRadTextBox1.Text = "3" Then
        DocTypeTBFWD.Text = "NOC"
    End If
 
End Sub
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 08 Aug 2019
7 answers
1.3K+ views
Hello,

We're currently using a radmulticolumncombobox populated through a dataset, and need the capability of selecting a blank row. Within our database the field it refers to is non-null, and the client has to be able to select nothing for a value.

I've tried using lstParentGroup.EditorControl.Rows.AddNew(), but this adds the row to the very bottom of the collection. We definitely want the blank row at the top of the list. Also, when this row is added, the control seems to get confused when using lstParentGroup.SelectedValue functionality. What happens is the blank row at the bottom is selected instead of what should be selected.

Anything I've missed in the designer, or possible solutions to this problem?

Thank you very much for your time!
Ryan
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 08 Aug 2019
1 answer
122 views
hi, I have a model ( adding an attached file ) that I want to add a custom filed in the appointment class, how does it?

I use entity framework and mapping some fields.
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 08 Aug 2019
2 answers
85 views

Hi,

I am using pageview in Explorer Bar and Stack Mode and i want to have an arrow sign on tabs which shows the selected tab. please see the attached image for further clarification.

 

Regards

Saud

saud
Top achievements
Rank 1
 answered on 08 Aug 2019
1 answer
79 views
Please which of your control can I use to achieve the attached.
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 08 Aug 2019
5 answers
87 views
in this attach picture , how to find or set S property in <span S>  ??
ali
Top achievements
Rank 1
 answered on 07 Aug 2019
1 answer
142 views

I'm implementing a RadGrid control, bound to SQL Server table, and which will be used by up to 12 people at a time. What's the best way to handle concurrency (to be clear, I mean when one person makes a change while others are working or viewing the same records and fields)?

My client likes the idea of having changes submit to the database on a per cell basis. If a User changes a cell, it gets saved to the DB as soon as the User leaves edit mode of that cell.

If we go that route, what's a good way to deal with the others who may be VIEWING data that's no longer current?

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 07 Aug 2019
9 answers
623 views

Hello,

 

I have a toolwindow that is docked to to a tooltabstrip on the right side of my raddock (this is the only toolwindow on this particular tooltabstrip) in the designer. I need to hide this toolwindow and show it again in the same place. However, both of these code snippets cause the toolwindow to be moved to the tooltabstrip that is docked on the left side of the raddock:

RadDock1.AutoHideWindows(New DockWindow() {tw}, AutoHidePosition.Right)

and

tw.AutoHide()

 
I heard that once you hide the last toolwindow on a tooltabstrip, the tooltabstrip is disposed, so I set 

tw.CloseAction = DockWindowCloseAction.Hide

but this did not help.

 

If I just call 

tw.Show()

the toolwindow will automatically dock to the right side, and when I click the 'Auto Hide' button, the toolwindow is "minimized" and added to a tooltabstrip on the right side. How can I accomplish this behavior programatically?

 

Thanks in advance!

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 07 Aug 2019
13 answers
934 views
Im adding SummaryRows to my grid. This Rows shows as summary of whole grid and also summaries of childrows in grouped data. How can i disable summary rows for childrows.So i will see only totals for whole grid.

                GridViewSummaryItem item1 = new GridViewSummaryItem("SDSR", "{0:#0,##0.00}", GridAggregateFunction.Sum);
                GridViewSummaryItem item2 = new GridViewSummaryItem("SNDSR", "{0:#0,##0.00}", GridAggregateFunction.Sum);
                GridViewSummaryItem item4 = new GridViewSummaryItem("pl_rub", "{0:#0,##0.00}", GridAggregateFunction.Sum);
                GridViewSummaryItem item5 = new GridViewSummaryItem("pl_agent", "{0:#0,##0.00}", GridAggregateFunction.Sum);
               

                GridViewSummaryItem item11 = new GridViewSummaryItem("SDSR", "{0:N2}", GridAggregateFunction.Sum);
                GridViewSummaryItem item21 = new GridViewSummaryItem("SNDSR", "{0:N2}", GridAggregateFunction.Sum);
                GridViewSummaryItem item41 = new GridViewSummaryItem("pl_rub", "{0:N2}", GridAggregateFunction.Sum);
                GridViewSummaryItem item51 = new GridViewSummaryItem("pl_agent", "{0:N2}", GridAggregateFunction.Sum);
                
           
                GridViewSummaryRowItem row = new GridViewSummaryRowItem(new GridViewSummaryItem[] { item1, item2, item4, item5, item6 });
                this.radGridView7.SummaryRowsTop.Add(row);
                this.radGridView7.SummaryRowsBottom.Add(row);

               

                this.radGridView7.MasterTemplate.ShowTotals = true;//--------


           
                ///////////
                this.radGridView7.MasterView.SummaryRows[0].PinPosition = PinnedRowPosition.Top;
                this.radGridView7.MasterView.SummaryRows[1].PinPosition = PinnedRowPosition.Bottom;
                
                GridViewSummaryRowItem summaryRowItem1 = new GridViewSummaryRowItem();
                summaryRowItem1.Add(item11);
                summaryRowItem1.Add(item21);
                summaryRowItem1.Add(item41);
                summaryRowItem1.Add(item51);

                radGridView7.MasterTemplate.SummaryRowGroupHeaders.Add(summaryRowItem1); 
Arun
Top achievements
Rank 2
Iron
 answered on 06 Aug 2019
3 answers
1.8K+ views

Hello, 

I have an application that is using the RadGridView.

The initialization of the Grid sets "AutoColumnSizeMode = GridViewAutoColumnSizeMode.Fill".

The very first time the grid is populated, formatted, and then BestFitColumns(BestFitColumnsMode.AllCells) is called, and everything looks good.

 

The issue arises after this "first" grid fill.

When we refresh the grid with a new databsource and reformat the grid, again the BetstFitColumns(BestFitColumnsMode.AllCells) is called.

Process is as follows:

grid.DataSource = null;

grid.ResetDataBinding();

...

...

grid.DataSource = newDataSource;

FormatGrid();

BestFitColumns(BestFitColumnsMode.AllCells);

 

We are using a data-source which initially includes a lot of columns, but upon 'formatting' the grid we are also limiting the visible columns by hiding them all, then showing the select few that we need.

 

The attachment shows what the result is after the first grid fill...  looks awful.

 

To further my confusion, I have added a checkbox turn on / off BestFit (BestFitColumns(BestFitColumnsMode.AllCells / None), and after 3-4 times of hitting this, it looks good again.  Refresh datasources again and everything is back to messed up.

 

How in the world do i get this to be consistent the first time and every time after that??

I hope I have explained the issue with enough detail.  Let me know if you have question.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 06 Aug 2019
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
ComboBox and ListBox (obsolete as of Q2 2010)
ListView
Chart (obsolete as of Q1 2013)
Form
PageView
MultiColumn ComboBox
TextBox
RichTextEditor
Menu
PropertyGrid
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
Diagram, DiagramRibbonBar, DiagramToolBox
GanttView
Panorama
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
ProgressBar
CheckedDropDownList
Rotator
TrackBar
MessageBox
SpinEditor
StatusStrip
CheckedListBox
Wizard
ShapedForm
SyntaxEditor
TextBoxControl
LayoutControl
CollapsiblePanel
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
DataEntry
GroupBox
ScrollablePanel
WaitingBar
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Barcode
ColorBox
Callout
FilterView
PictureBox
VirtualKeyboard
NavigationView
Accessibility
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
Licensing
BreadCrumb
Security
LocalizationProvider
Dictionary
Overlay
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
Flyout
ToolbarForm
NotifyIcon
Rating
TimeSpanPicker
BarcodeView
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
DateOnlyPicker
TimeOnlyPicker
+? more
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?