Telerik Forums
UI for WinForms Forum
3 answers
103 views
Hi,

One of the things I find missing in the Outlook mode of the PageView control is the ability to move a page up or down (i.e., change their order). This is accomplished with an additional menu item called "Navigation Pane Options", and a checked list box with all available pages and up/down buttons.

It seems fairly obvious this functionality isn't included out of the box. Is there a straight-forward way to add it (i.e., add a menu item which could bring up my own dialog for accomplishing this)?

Related to this would be a way to serialize the PageView content and order to XML, but I can see how to do that myself fairly easily with an extension method.

Dave
Plamen
Telerik team
 answered on 20 Dec 2012
1 answer
306 views
Hi

I have a ListView in IconViewMode with enabled checkboxes. I need to enable and disable the checkboxes themselves based on some requirments.

I have managed to disable but keep them visible  using the VisualItemFormatting method and turning the ToggleElement.Enabled to false

I am having a problem accessing the ToggleElement from anywhere else.
I need to access the checkbox itself the element from SelectedIndexChanged or CurrentItemChanged or any such methods.

Any help please ?


Thank you
Ervis  
Plamen
Telerik team
 answered on 20 Dec 2012
8 answers
175 views
Hi ALL,
   I am in need of some assistance. Software config first..
Win 7 Ult 64, Visual Studio 2010 (VB.NET 2.0, Winforms
Scheduler Q2 2011.2.831 (Latest), VistaDB (Supported
by Telerik ORM) MS SQL 200X Compatible. I have now
"Bound" the Scheduler and I can Create new appoint
ments but save makes the "Appointments" disapear!.
Has anyone ran across this with RadScheduler? (I am
not using ORM) Just the sample .mdb database (used
by telerik example) Converted to VistaDB Format. I
added "User 1", "User2", "User 3", "User 4". to the
resources part of the database and they come up
properly but I Can't figure out the Colors Part Need
Color.Transparent in all 4 spots. I am using the code
"Ivan" Provided and it is in the samples. The "Samples"
do not provide Multi - User Data Binding. It could be a
very simple line of code to solve this problem.
                                                 Thanks in advance!,
                                                                Jeff  :)     
Dim colors() As Color = {Color.Transparent, Color.Transparent, Color.Transparent, Color.Transparent}
           Dim names() As String = {"User 1", "User 2", "User 3", "User 4"}
           For i As Integer = 0 To names.Length - 1
               Dim resource As New Telerik.WinControls.UI.Resource()
               resource.Id = New EventId(i)
               resource.Name = names(i)
               resource.Color = colors(i)
               'resource.Image = Me.imageList1.Images(i)
               Me.RadScheduler1.Resources.Add(resource)
           Next i
           Me.RadScheduler1.GroupType = GroupType.Resource
           Me.RadScheduler1.ActiveView.ResourcesPerView = 2
       Catch ex As Exception
George
Top achievements
Rank 1
 answered on 20 Dec 2012
3 answers
113 views
Hi!
When I have a column as a combo (style: dropdown) then it only works properly when the user selects a value from the list. When an experienced user would type in the value himself, the entered value disappears again, it doesn't matter if you use the TAB or the ENTER.
Is there maybe some kind of property that I need to set to make the control match the entry in the textbox with the values in the list?

By the way: AutoCompleteMode is SuggestAndAppend

Regards,
Martin
Nikolay
Telerik team
 answered on 20 Dec 2012
3 answers
178 views

Hi all,
Is there a way to hide non working hours in TimelineView with Timescales.Hours/HalfHours/Minutes
 
e.g. collapse Columns before and after the WorkTime-Timespan - thus allowing shorter drag+Drop movements

|  Day  1                                               |   Day  2                                             |                             
|  08  09  10  11 12  13  14  16  18  20|  08  09  10  11 12  13  14  16  18  20|

Currently I call my own RenderView() method which loops over all visible cells

void ActiveView_PropertyChanged(object sender, PropertyChangedEventArgs e)
{
          switch (e.PropertyName)
        {
            case "StartDate":

It would be more convinient to subscribe to a ElementRender Event and set the background color there - like the one exposed in RadCalendar.

Ivan Todorov
Telerik team
 answered on 20 Dec 2012
0 answers
94 views
Hi
I ask for help, there is a small problem.

There are two tables: the nomenclature and files.

Nomenclature hierarchy built in RadTreeView.
List of files in RadGridView
When you select a list of files filled in gridview
Doing so:

protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            this.nomenclatureTableAdapter.Fill(this.dataSet.nomenclature);
            this.filesTableAdapter.Fill(this.dataSet.files);

            radGridView1.DataSource = this.index3fkBindingSource;

            this.radGridView1.Relations.AddSelfReference(radGridView1.MasterTemplate, "ID", "FID");
        }
The first time he correctly selects and builds a hierarchy.
But when another node, it populates the file list in their previous range, and even without the hierarchy.
SubFiles is not visible and not the list of files.

Fier
Top achievements
Rank 1
 asked on 20 Dec 2012
3 answers
97 views
Is there a way to dynamically set the cell background color of a datatable? Something similar to the image attached.
Evgenia
Telerik team
 answered on 20 Dec 2012
2 answers
122 views
Hi,

I have a client server solution. Several clients connect to a single database hosting the scheduler data. When a client changes the data in the database table (adding, removing, changing an appointment) the SQL message broker kicks in and all other clients execute a function to update their scheduler. So far this works like a charm:

''' <summary>
''' Sql Server notifies the scheduler table data is changed!
''' The current scheduler data needs to rebind to reflect the changes...
''' </summary>
''' <param name="sender"></param>
''' <param name="e"></param>
''' <remarks></remarks>
Private Sub AgendaWijziging(sender As Object, e As System.Data.SqlClient.SqlNotificationEventArgs)
    If Me.InvokeRequired Then
        RadScheduler1.BeginInvoke(New MethodInvoker(AddressOf radScheduler1_rebind))
    Else
        radScheduler1_rebind()
    End If
End Sub
 
 
''' <summary>
''' Rebind the scheduler after a database change by another client
''' </summary>
''' <remarks></remarks>
Private Sub radScheduler1_rebind()
    Try
        Me.Cursor = Cursors.WaitCursor
 
        ' attempt to find current first time slot in view (user scrolled to this time slot)
        'Dim dayView As SchedulerDayViewGroupedByResourceElement = TryCast(Me.RadScheduler1.SchedulerElement.ViewElement, SchedulerDayViewGroupedByResourceElement)
        'Dim singleDayView As SchedulerDayViewElement = Nothing
        'Dim resetToTime As DateTime? = Nothing
        'Dim firstCell As SchedulerCellElement
        'If dayView IsNot Nothing Then
        '    singleDayView = dayView.GetDayViewElements.FirstOrDefault
        '    If singleDayView IsNot Nothing Then
        '        firstCell = singleDayView.DataAreaElement.Table.Children.First
        '        If firstCell IsNot Nothing Then
         '            resetToTime = CType(cell, SchedulerCellElement).Date (date only... no time?)
        '        End If
        '    End If
        'End If
 
        RadScheduler1.DataBind()
 
       ' go back to the timeslot the user scrolled to.. (does not work :( resetToTime contains date only )
       'If singleDayView IsNot Nothing AndAlso resetToTime IsNot Nothing Then
       '    singleDayView.DataAreaElement.Table.ScrollToTime(New TimeSpan(resetToTime.Value.Hour, resetToTime.Value.Minute, resetToTime.Value.Second))
       'End If
 
 
       ' re-initialize the sql broker notification
        _context.MonitorAgenda()
 
        
    Catch ex As Exception
        Dim currentMethode As MethodBase = MethodBase.GetCurrentMethod
        FormHelper.LogError(ex, currentMethode.DeclaringType.ToString, currentMethode.ToString)
    Finally
        Me.Cursor = Cursors.Arrow
    End Try
 
End Sub

The problem is in the commented code: After the databind is executed, the scheduler view is reset to 00:00 hour. I basically attempt to update the binding without updating the display, so when another workstation adds a appointment on a timeslot in view it just appears in the scheduler the user is looking at or (when in a timeslot out of view) would appear when scrolling. As an added bonus the scheduler contains several resources.

So how can I "detect" the start or end of the top _visible_ timeslot and then use "dv.DataAreaElement.Table.ScrollToTime(TimeSpan.FromHours(firstCell.Hour))" to Update the view after databind?
Or should I approach this differently?


regards,
Raoul

Raoul
Top achievements
Rank 1
 answered on 19 Dec 2012
3 answers
235 views
Hello
I wanted to have a column which has thousand seprator  so I used "GridViewDecimalColumn" but when I typed in the cell the thousand separator
has been disappeared and when I left the cell it was shown again. as the result of this i decided to use "GridViewMaskBoxColumn" insted ,because
it hasnt those problem .
by using GridViewMaskBoxColumn  my problem solved but I face to another problem,I need to set maximum value to this column
but I cant define MaximumValue for this column ,please help me to do this.

  GridViewMaskBoxColumn dec = new GridViewMaskBoxColumn();
            dec.FieldName = "dec";
            dec.FormatString = "{0:#,##}";
            radGridView1.Columns.Add(dec);
           

Peter
Telerik team
 answered on 19 Dec 2012
4 answers
381 views
Hello!
I am using a gridview like this:

   
private void LoadGrid()
{
    DataTable dataTable = new DataTable();
    DataColumn itemIdColumn = new DataColumn("ItemId", typeof(int));
    DataColumn itemCodeColumn = new DataColumn("ItemCode", typeof(string));
    DataColumn itemNameColumn = new DataColumn("ItemName", typeof(string));
    DataColumn sellPriceColumn = new DataColumn("SellPrice", typeof(decimal));
    DataColumn vatValueColumn = new DataColumn("VatValue", typeof(decimal));
    DataColumn itemTypeColumn = new DataColumn("ItemType", typeof(int));
 
    dataTable.Columns.Add(itemCodeColumn);
    dataTable.Columns.Add(itemNameColumn);
    dataTable.Columns.Add(sellPriceColumn);
    dataTable.Columns.Add(vatValueColumn);           
    dataTable.Columns.Add(itemTypeColumn);
    dataTable.Columns.Add(itemIdColumn);
 
 
    dataTable.BeginLoadData();
    var lst = _relatedItemBc.GetItemsForMainGrid(FilteredItem);
    for (int i = 0; i < lst.Count; i++)
    {
        DataRow row = dataTable.NewRow();
        row["ItemCode"] = lst[i].ItemCode;
        row["ItemName"] = lst[i].ItemName;
        row["SellPrice"] = lst[i].SellPrice;
        row["VatValue"] = lst[i].VATValue;
        row["ItemType"] = lst[i].ItemType;
        row["ItemId"] = lst[i].ItemID;
        dataTable.Rows.Add(row);
    }
    dataTable.EndLoadData();
 
    rbcDataGridViewMain.MasterTemplate.BeginUpdate();
    rbcDataGridViewMain.DataSource = dataTable;
    rbcDataGridViewMain.MasterTemplate.EndUpdate();
}

How can i get the informations for the current row, the row i have selected?

Thank you!
Anton
Telerik team
 answered on 19 Dec 2012
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
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
CheckedDropDownList
ProgressBar
TrackBar
MessageBox
Rotator
SpinEditor
StatusStrip
CheckedListBox
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
DataEntry
ScrollablePanel
ScrollBar
WaitingBar
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
Callout
ColorBox
PictureBox
FilterView
Accessibility
NavigationView
VirtualKeyboard
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
Licensing
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
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?