Telerik Forums
UI for WPF Forum
2 answers
217 views
I want to get the row in the data loaded event to set the focus on that row.
Vishwajeet
Top achievements
Rank 1
 answered on 11 Jan 2012
1 answer
98 views
Hi there

I'm grouping appointments on a day view by employees (EmployeeResource) so I see all the employee's appointments for the day on a column. Now, in the header template, I would like to show a total of hours already assigned (basically the sum of appointments durations.

The dirty version would be to provide such a total as a property of the EmployeeResource and update my resources on all edited/created/deleted events. However, I'm hoping there's a more elegant approach to this.

Thanks for your advice
Philipp
Yana
Telerik team
 answered on 11 Jan 2012
1 answer
47 views
I am trying to bind a RadGrid to a generic list of custom class through OnNeedDataSource. The grid displays the correct number of rows, however, the values for the fields are empty. I can bind to a datasource object without a problem, but I am going to be adding additional functionality where this method will be necessary. For simplicity sake, I am just trying to bind a single exposed property from the custom class object.

.ASPX

<form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1"  runat="server">
          
    </telerik:RadScriptManager>
    <div>
     <telerik:RadGrid runat="server" AllowPaging="True" ID="RadGrid2" OnNeedDataSource="RadGrid2_NeedDataSource" Width="600px" PageSize="8">
            <MasterTableView Width="100%" >
                <Columns>
                     <telerik:GridBoundColumn HeaderText="Project Name" DataField="name" ></telerik:GridBoundColumn>
                </Columns>
                <NoRecordsTemplate>
                    <div style="height: 30px; cursor: pointer;">
                        No items to view</div>
                </NoRecordsTemplate>
                <PagerStyle Mode="NumericPages" PageButtonCount="4" />
            </MasterTableView>
        </telerik:RadGrid>
    </div>
    </form>

ASPX.VB
Imports System
Imports System.Collections.Generic
Imports System.Configuration
Imports System.Data
Imports System.Data.Common
Imports System.Data.SqlClient
Imports System.Web.UI
Imports Telerik.Web.UI
Public Class bookmarks
    Inherits System.Web.UI.Page
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
  
    End Sub
    Protected Sub RadGrid2_NeedDataSource(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridNeedDataSourceEventArgs) Handles RadGrid2.NeedDataSource
        RadGrid2.DataSource = getBookMarks
    End Sub
    Private ReadOnly Property getBookMarks() As IList(Of project)
        Get
            Dim strSQL As String = "SELECT PROJ_NAME FROM [OPI_TIMESHEETS] o left outer join DCSC_PROJECT d on o.project_number = d.PROJ_NO "
            Dim results As IList(Of project) = New List(Of project)()
            Using connection As IDbConnection = DbProviderFactories.GetFactory("System.Data.SqlClient").CreateConnection()
                connection.ConnectionString = ConfigurationManager.ConnectionStrings("projcentral").ConnectionString
  
                Using command As IDbCommand = connection.CreateCommand()
                    command.CommandText = strSQL
  
                    connection.Open()
                    Try
                        Dim reader As IDataReader = command.ExecuteReader()
                        While reader.Read()
                            Dim name As String = reader.GetValue(reader.GetOrdinal("PROJ_NAME"))
                            results.Add(New project(name))
                        End While
  
                    Catch ex As SqlException
                        results.Clear()
                        'lblmsg.Text = ex.Message
                    End Try
                End Using
            End Using
            lblMsg.Text = results.Count & " items in list"
            Return results
  
        End Get
    End Property
    Class project
  
        Private _projName As String
  
        Sub New(ByVal name As String)
  
            _projName = name
  
        End Sub
#Region "properties"
  
        Private ReadOnly Property Name() As String
            Get
                Return _projName
            End Get
        End Property
  
#End Region
    End Class
  
End Class
Vlad
Telerik team
 answered on 11 Jan 2012
1 answer
64 views
I'm using RadCarousel component and I want know if there any method
to get the item position inside radCarousel (x and y),  I need to retrieve this data when the selected item inside the component has change! I need to know the size, and the x,y of the item, so i can do a background effect around the item
Maya
Telerik team
 answered on 11 Jan 2012
1 answer
95 views
How can i solve this problem?
reference attached file.
Rosi
Telerik team
 answered on 11 Jan 2012
1 answer
128 views
Hi, how could i get the direction that the carrousel is moving to (is moving left, right)?
Maya
Telerik team
 answered on 11 Jan 2012
4 answers
206 views
I know this question has been asked before, but I haven't seen a good, simple answer.

I want to add a GridViewSelect column that is bound to my ViewModel. I know it's been said that the built in GridViewSelectColumn simply doesn't support this. And that there are some virtualization issues if you try to bind to the actual GridViewRow/Cell.

I just want a nice simple, generic (not tied to my specific model, and not reliant on Bindings without Converters) implementation. I'd rather not add a dependency on Blend Interactivity.

Can this be accomplished by simply sub-classing GridViewSelectColumn or GridViewDataColumn? Or can I set the cell header style to be bound somehow?

I'm just looking for a simpler implementation than what I've seen already.

Thank you.
Maya
Telerik team
 answered on 11 Jan 2012
1 answer
115 views
Hi (again!),

Does anyone know if it's possible to change the reordering 'swap' behaviour when dragging tiles around?

Currently when you drag tiles the following occurs:

Tile Position Before Drag:
  • 1
  • 2
  • 3
  • 4
  • 5 >> DRAG

Tile Position After Drag
  • 1
  • 5 << DROP
  • 3
  • 4
  • 2

... the 5th and 2nd tile swap places. Is there any way to change this so that instead the 5th tile is INSERTED, and ALL the tiles below the insertion point are moved down? The result would look like this:

Preferred Tile Position After Drop:
  • 1
  • 5 << DROP
  • 2
  • 3
  • 4

Currently my tiles are all arranged in a single column, and IF the user drags the tile they wish to move OVER the tiles then the desired behaviour is obtained - but that's a big 'IF'. I can't rely on this as I also need the same behaviour on a tileview that has multiple columns.

Any ideas folks?

Thanks!

Oli.
Zarko
Telerik team
 answered on 10 Jan 2012
1 answer
84 views
I'm having trouble getting the behavior right with the RadMaskedCurrencyInput control (WPF).  I'm designing an accounting application so there will be a great deal of 10-key data entry of numbers.  Here's what I want to do:

(User is entering value of $12.34)
1. Control gains focus, cursor is all the way to the right.
2. User types 1, value changes to 0.01, even if a value exists.(current behavior matches this)
3. User types 2, value changes to 0.12   (current behavior: value changes to 0.02)
4. User types 3, value changes to 1.23   (current behavior: value changes to 0.03)
5. User types 4, value changes to 12.34 (current behavior: value changes to 0.04)

Can someone tell me how to achieve this?

I've tried many combinations of Selection On Focus, Spin Mode, Input Behavior (Insert/Replace), both in the example explorer and in my code, and haven't found one that works.  I believe I could get this to work except that when the cursor is all the way to the right and the user types, the textbox does not shift the contents to the left - it simply replaces the rightmost digit with the typed number.

Tina Stancheva
Telerik team
 answered on 10 Jan 2012
5 answers
152 views
Hi,

my VS2008 designer cannot display one of my RadWindow, I see only a white square and in my output window I have the following error:

Failed to instantiate type Telerik.Windows.Controls.Design.Common.MetadataRegistrationBase during IRegisterMetadata load for metadata assembly Telerik.Windows.Controls.VisualStudio.Design, Version=2011.3.1220.35, Culture=neutral, PublicKeyToken=5803cfa389c90ce7.Failed to instantiate type Telerik.Windows.Controls.Design.Common.MetadataRegistrationBase during IRegisterMetadata load for metadata assembly Telerik.Windows.Controls.Input.VisualStudio.Design, Version=2011.3.1220.35, Culture=neutral, PublicKeyToken=5803cfa389c90ce7.Failed to instantiate type Telerik.Windows.Controls.Design.Common.MetadataRegistrationBase during IRegisterMetadata load for metadata assembly Telerik.Windows.Controls.Navigation.VisualStudio.Design, Version=2011.3.1220.35, Culture=neutral, PublicKeyToken=5803cfa389c90ce7.Failed to instantiate type Telerik.Windows.Controls.Design.Common.MetadataRegistrationBase during IRegisterMetadata load for metadata assembly Telerik.Windows.Controls.RichTextBoxUI.VisualStudio.Design, Version=2011.3.1220.35, Culture=neutral, PublicKeyToken=5803cfa389c90ce7.Failed to instantiate type Telerik.Windows.Controls.Design.Common.MetadataRegistrationBase during IRegisterMetadata load for metadata assembly Telerik.Windows.Documents.VisualStudio.Design, Version=2011.3.1220.35, Culture=neutral, PublicKeyToken=5803cfa389c90ce7.Failed to instantiate type Telerik.Windows.Controls.Design.Common.MetadataRegistrationBase during IRegisterMetadata load for metadata assembly Telerik.Windows.Controls.VisualStudio.Design, Version=2011.3.1220.35, Culture=neutral, PublicKeyToken=5803cfa389c90ce7.Failed to instantiate type Telerik.Windows.Controls.Design.Common.MetadataRegistrationBase during IRegisterMetadata load for metadata assembly Telerik.Windows.Controls.Docking.VisualStudio.Design, Version=2011.3.1220.35, Culture=neutral, PublicKeyToken=5803cfa389c90ce7.Failed to instantiate type Telerik.Windows.Controls.Design.Common.MetadataRegistrationBase during IRegisterMetadata load for metadata assembly Telerik.Windows.Controls.Navigation.VisualStudio.Design, Version=2011.3.1220.35, Culture=neutral, PublicKeyToken=5803cfa389c90ce7.Failed to instantiate type Telerik.Windows.Controls.Design.Common.MetadataRegistrationBase during IRegisterMetadata load for metadata assembly Telerik.Windows.Controls.Input.VisualStudio.Design, Version=2011.3.1220.35, Culture=neutral, PublicKeyToken=5803cfa389c90ce7.Failed to instantiate type Telerik.Windows.Controls.Design.Common.MetadataRegistrationBase during IRegisterMetadata load for metadata assembly Telerik.Windows.Controls.ScheduleView.VisualStudio.Design, Version=2011.2.712.35, Culture=neutral, PublicKeyToken=5803cfa389c90ce7.Failed to instantiate type Telerik.Windows.Controls.Design.Common.MetadataRegistrationBase during IRegisterMetadata load for metadata assembly Telerik.Windows.Controls.Input.VisualStudio.Design, Version=2011.2.712.35, Culture=neutral, PublicKeyToken=5803cfa389c90ce7.Failed to instantiate type Telerik.Windows.Controls.Design.Common.MetadataRegistrationBase during IRegisterMetadata load for metadata assembly Telerik.Windows.Controls.VisualStudio.Design, Version=2011.2.712.35, Culture=neutral, PublicKeyToken=5803cfa389c90ce7.Failed to instantiate type Telerik.Windows.Controls.Design.Common.MetadataRegistrationBase during IRegisterMetadata load for metadata assembly Telerik.Windows.Controls.Navigation.VisualStudio.Design, Version=2011.2.712.35, Culture=neutral, PublicKeyToken=5803cfa389c90ce7.Failed to instantiate type Telerik.Windows.Controls.Design.Common.MetadataRegistrationBase during IRegisterMetadata load for metadata assembly Telerik.Windows.Documents.VisualStudio.Design, Version=2011.3.1220.35, Culture=neutral, PublicKeyToken=5803cfa389c90ce7.Failed to instantiate type Telerik.Windows.Controls.Design.Common.MetadataRegistrationBase during IRegisterMetadata load for metadata assembly Telerik.Windows.Controls.VisualStudio.Design, Version=2011.3.1220.35, Culture=neutral, PublicKeyToken=5803cfa389c90ce7.Failed to instantiate type Telerik.Windows.Controls.Design.Common.MetadataRegistrationBase during IRegisterMetadata load for metadata assembly Telerik.Windows.Controls.Docking.VisualStudio.Design, Version=2011.3.1220.35, Culture=neutral, PublicKeyToken=5803cfa389c90ce7.Failed to instantiate type Telerik.Windows.Controls.Design.Common.MetadataRegistrationBase during IRegisterMetadata load for metadata assembly Telerik.Windows.Controls.Navigation.VisualStudio.Design, Version=2011.3.1220.35, Culture=neutral, PublicKeyToken=5803cfa389c90ce7.Failed to instantiate type Telerik.Windows.Controls.Design.Common.MetadataRegistrationBase during IRegisterMetadata load for metadata assembly Telerik.Windows.Controls.Input.VisualStudio.Design, Version=2011.3.1220.35, Culture=neutral, PublicKeyToken=5803cfa389c90ce7.Failed to instantiate type Telerik.Windows.Controls.Design.Common.MetadataRegistrationBase during IRegisterMetadata load for metadata assembly Telerik.Windows.Controls.RichTextBoxUI.VisualStudio.Design, Version=2011.3.1220.35, Culture=neutral, PublicKeyToken=5803cfa389c90ce7.Failed to instantiate type Telerik.Windows.Controls.Design.Common.MetadataRegistrationBase during IRegisterMetadata load for metadata assembly Telerik.Windows.Documents.VisualStudio.Design, Version=2011.3.1220.35, Culture=neutral, PublicKeyToken=5803cfa389c90ce7.

Georgi
Telerik team
 answered on 10 Jan 2012
Narrow your results
Selected tags
Tags
GridView
General Discussions
Chart
RichTextBox
Docking
ScheduleView
ChartView
TreeView
Diagram
Map
ComboBox
TreeListView
Window
RibbonView and RibbonWindow
PropertyGrid
DragAndDrop
TabControl
TileView
Carousel
DataForm
PDFViewer
MaskedInput (Numeric, DateTime, Text, Currency)
AutoCompleteBox
DatePicker
Buttons
ListBox
GanttView
PivotGrid
Spreadsheet
Gauges
NumericUpDown
PanelBar
DateTimePicker
DataFilter
Menu
ContextMenu
TimeLine
Calendar
Installer and Visual Studio Extensions
ImageEditor
BusyIndicator
Expander
Slider
TileList
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
LayoutControl
ProgressBar
Sparkline
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
Licensing
WebCam
CardView
DataBar
FilePathPicker
PasswordBox
SplashScreen
Callout
Rating
Accessibility
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?