Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
308 views
Hi Telerik Users!

I am developing a Web Application to keep to track of inventory movements.  The Receiving Manager needs an Excel like interface.
(Got the ExcelLikeGrid code from:  http://www.telerik.com/community/code-library/aspnet-ajax/grid/excel-like-radgrid.aspx)

Currently, I have an issue that have been pondering for days and I am just not sure what could be generating the error.

I am using OpenAccess (great tool), to make the DB call to populate the radGrid.    (One thing I tried, was comment out the OpenAccess part and use a sqladapter like I have in the past, but I get the same error.

Moreover, I can step through the code and see that the first iteration of the Grid control executes with no issues.   Soon as it tries to cast the next grid item, it generates the error.  The data looks okay to me upon close examination.  I do notice that when in debug mode, that the item
control collection has a count of 0.  So, I know this is related but not sure why.  Could the underlying data be the culprit? Again, it looks good to me.  Anyway, what follows is my environment,  code, and error specifics. 

Thanks for taking a look.  If you need any futher info...let me know.

Windows 7
Visual Studio 2010
Telerik- RadControls AJAX Q3 2012 SP1
Telerik - Open Access
ASP .net 4 (VB)




BMAdmin.aspx
============================================================================
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="BMAdminHome.aspx.vb" Inherits="BINMGMT.BinAdminHome" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<%@ Register assembly="Telerik.OpenAccess.Web" namespace="Telerik.OpenAccess" tagprefix="telerik" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head runat="server">
     <TITLE>BIN MGMT- MASTER SPAS BIN MANAGEMENT FOR RECEIVING SYSTEM</TITLE>
     <link href="Styles/bin.css" rel="stylesheet" type="text/css" />
     <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
     <script type="text/javascript">
        var radGridId = "<%=radGridMaterialLocations.ClientID %>";
    </script>
  </telerik:RadCodeBlock>
  <script src="scripts/excelOperations.js" type="text/javascript"></script>
</head>
<body class="pcBody">
    <form id="form1" runat="server">
    <!-- SQL DATA SOURCES   ------------------------------------------------------------------------------------------------>
 
    <!-- TELERIK CONTROLS   ------------------------------------------------------------------------------------------------>
 
    <telerik:RadStyleSheetManager ID="RadStyleSheetManager1" runat="server" />
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    <Scripts>
      <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
      <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
      <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
    </Scripts>
    </telerik:RadScriptManager>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="radGridMaterialLocations">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="radGridMaterialLocations" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
    <telerik:RadNotification ID="RadNotSystemMsg" runat="server"
        CssClass="RadNotificationMsg"
        TitleIcon="Deny"      
        Position="Center"
        AutoCloseDelay="3300"
        Width="500"
        EnableRoundedCorners="true">
    </telerik:RadNotification> 
    <div class="binAdminHomeDiv">
         <asp:Label ID="Label1" runat="server" ForeColor="Black" CssClass="lblText" Text="[ BIN ADMIN ]" />
         <hr class="hrClass"/>
    </div>
    <div class="binAdminMLDiv">
        <asp:Label ID="Label2" runat="server" ForeColor="Black" CssClass="lblText" Text="MATERIAL LOCATIONS" />
        <telerik:RadGrid ID="radGridMaterialLocations"
            OnPreRender="radGridMaterialLocations_PreRender"
            OnDataBinding="radGridMaterialLocations_DataBinding"
            OnNeedDataSource="radGridMaterialLocations_NeedDataSource"
            OnItemCommand="radGridMaterialLocations_ItemCommand"
            runat="server" GridLines="None">
             
            <MasterTableView EditMode="InPlace" CommandItemDisplay="Top" AutoGenerateColumns="true">
                <CommandItemTemplate>
                        <asp:LinkButton ID="btnAddNew" runat="server" CommandName="AddNewRow">
                            <img style="border:0px;vertical-align:middle;" alt="" src="Images/AddRecord.gif" />Add New Row</asp:LinkButton>  
                        <asp:LinkButton ID="btnSave" runat="server" CommandName="Save">
                            <img style="border:0px;vertical-align:middle;" alt="" src="Images/save.png" />Save in Database</asp:LinkButton>  
                </CommandItemTemplate>
            </MasterTableView>
            <ClientSettings>
                <Scrolling AllowScroll="true" ScrollHeight="300" UseStaticHeaders="true" />
            </ClientSettings>
        </telerik:RadGrid>
 
    </div>
    <div class ="binAdminPMDiv">
        <asp:Label ID="Label3" runat="server" ForeColor="Black" CssClass="lblText" Text="CURRENT MOVEMENTS" />
        <br />
        <telerik:RadGrid ID="radGridPartMoves" runat="server" Width="301px" Height="500px" CellSpacing="0"
             GridLines="None" HeaderStyle-CssClass="partMoves">
            <ClientSettings>
                <Scrolling AllowScroll="True"  UseStaticHeaders="True" />
            </ClientSettings>
        </telerik:RadGrid>
        <br />
    </div>
    </form>
     
</body>
</html>
 
 
 
BMAdmin.aspx.vb
============================================================================
Imports Telerik.Web.UI
Imports System.Data
Imports System.Data.SqlClient
 
Public Class BinAdminHome
    Inherits System.Web.UI.Page
 
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        '// Get Part Movements...
        Dim dbContext As New BINMgmtEntities
        Dim selectedMatLoc As New SPROC_BM_MaterialLocations_SelectManagerResultSet0
        Dim IEpartMoves As IEnumerable
 
        Try
            IEpartMoves = dbContext.GetPartMovesByStocker("ALL", "None")
            radGridPartMoves.DataSource = IEpartMoves
            radGridPartMoves.DataBind()
            dbContext.Dispose()
        Catch ex As Exception
            RadNotSystemMsg.Text = "An Error Has Generated... " & ex.Message & ex.StackTrace
            'RadNotSystemMsg.Title= "--- SYSTEM ERROR ---"
            RadNotSystemMsg.TitleIcon = "Deny"
            RadNotSystemMsg.AutoCloseDelay = 0
            RadNotSystemMsg.Show()
            Err.Clear()
        Finally
 
        End Try
 
    End Sub
 
 
    'Public Property NewRowsCount() As Integer
    '    Get
    '        If Session("key") IsNot Nothing Then
    '            Return Convert.ToInt32(Session("key").ToString())
    '        Else
    '            Session("key") = 0
    '            Return 0
    '        End If
    '    End Get
    '    Set(ByVal value As Integer)
    '        Session("key") = value
    '    End Set
    'End Property
 
    'Private ReadOnly Property GridSource() As DataTable
    '    Get
    '        Dim obj As [Object] = Session(GRID_SOURCE_SESSION_KEY)
    '        If obj IsNot Nothing Then
    '            Return DirectCast(obj, DataTable)
    '        Else
    '            Dim table As New DataTable()
    '            Using conn As New SqlConnection(ConnectionString)
    '                Dim adapter As New SqlDataAdapter()
    '                adapter.SelectCommand = New SqlCommand(SELECT_QUERY, conn)
    '                conn.Open()
    '                adapter.Fill(table)
    '            End Using
    '            Session(GRID_SOURCE_SESSION_KEY) = table
    '            Return table
    '        End If
    '    End Get
    'End Property
 
    Protected Sub radGridMaterialLocations_NeedDataSource(ByVal source As Object, ByVal e As GridNeedDataSourceEventArgs)
        Dim dbContext As New BINMgmtEntities
        Dim IEmaterialLocations As IEnumerable
 
        Try
            IEmaterialLocations = dbContext.GetMaterialLocations("ALL", "None", "None", 0)
            radGridMaterialLocations.DataSource = IEmaterialLocations
 
 
            'Dim dtWarranty As New DataTable
 
            'Try
 
            '    Using SpaAdapter As New SqlDataAdapter("SPROC_BM_MaterialLocations_SelectManager", ConfigurationManager.ConnectionStrings(1).ConnectionString)
            '        SpaAdapter.SelectCommand.CommandType = CommandType.StoredProcedure
            '        SpaAdapter.SelectCommand.Parameters.Add("@opCode", SqlDbType.VarChar).Value = "ALL"
            '        SpaAdapter.SelectCommand.Parameters.Add("@partNumber", SqlDbType.VarChar).Value = "None"
            '        SpaAdapter.SelectCommand.Parameters.Add("@vendorNumber", SqlDbType.VarChar).Value = "None"
            '        SpaAdapter.SelectCommand.Parameters.Add("@selectedID", SqlDbType.Int).Value = 0
            '        SpaAdapter.Fill(dtWarranty)
 
            '    End Using
 
            'radGridMaterialLocations.DataSource = dtWarranty
            'radGridMaterialLocations.DataBind()
 
 
 
        Catch ex As Exception
            RadNotSystemMsg.Text = "An Error Has Generated... " & ex.Message & ex.StackTrace
            'RadNotSystemMsg.Title= "--- SYSTEM ERROR ---"
            RadNotSystemMsg.TitleIcon = "Deny"
            RadNotSystemMsg.AutoCloseDelay = 0
            RadNotSystemMsg.Show()
            Err.Clear()
        Finally
 
        End Try
 
 
    End Sub
 
 
    ' Update database with the recors from the DataTable
    'Private Sub UpdateDatabase()
    '    Using conn As New SqlConnection(ConnectionString)
    '        Dim cmd As New SqlCommand(UPDATE_QUERY, conn)
    '        conn.Open()
 
    '        cmd.Parameters.Add("@EmployeeID", SqlDbType.Int)
    '        cmd.Parameters.Add("@LastName", SqlDbType.NVarChar, 20, "LastName")
    '        cmd.Parameters.Add("@FirstName", SqlDbType.NVarChar, 10, "FirstName")
    '        cmd.Parameters.Add("@Title", SqlDbType.NVarChar, 30, "Title")
    '        cmd.Parameters.Add("@TitleOfCourtesy", SqlDbType.NVarChar, 25, "TitleOfCourtesy")
    '        cmd.Parameters.Add("@Address", SqlDbType.NVarChar, 60, "Address")
    '        cmd.Parameters.Add("@City", SqlDbType.NVarChar, 15, "City")
    '        cmd.Parameters.Add("@Region", SqlDbType.NVarChar, 15, "Region")
    '        cmd.Parameters.Add("@PostalCode", SqlDbType.NVarChar, 10, "PostalCode")
    '        cmd.Parameters.Add("@PhotoPath", SqlDbType.NVarChar, 255, "PhotoPath")
    '        cmd.Parameters.Add("@Country", SqlDbType.NVarChar, 15, "Country")
 
    '        For i As Integer = 0 To GridSource.Rows.Count - 1
    '            Dim grEmpRow As DataRow = GridSource.Rows(i)
    '            cmd.Parameters("@EmployeeID").Value = Convert.ToInt32(grEmpRow("EmployeeID"))
    '            cmd.Parameters("@LastName").Value = grEmpRow("LastName")
    '            cmd.Parameters("@FirstName").Value = grEmpRow("FirstName")
    '            cmd.Parameters("@Title").Value = grEmpRow("Title")
    '            cmd.Parameters("@TitleOfCourtesy").Value = grEmpRow("TitleOfCourtesy")
    '            cmd.Parameters("@Address").Value = grEmpRow("Address")
    '            cmd.Parameters("@City").Value = grEmpRow("City")
    '            cmd.Parameters("@Region").Value = grEmpRow("Region")
    '            cmd.Parameters("@PostalCode").Value = grEmpRow("PostalCode")
    '            cmd.Parameters("@PhotoPath").Value = grEmpRow("PhotoPath")
    '            cmd.Parameters("@Country").Value = grEmpRow("Country")
 
    '            cmd.ExecuteScalar()
    '        Next
    '    End Using
    'End Sub
 
    ' Add all new rows from DataTable into Database
    'Private Sub AddNewRowsInDatabase()
    '    Dim conn As New SqlConnection(ConnectionString)
 
    '    If NewRowsCount > 0 Then
    '        Using cmdInsert As New SqlCommand(INSERT_QUERY, conn)
    '            conn.Open()
    '            For i As Integer = 0 To NewRowsCount - 1
    '                cmdInsert.ExecuteScalar()
    '            Next
    '        End Using
    '    End If
    'End Sub
 
    ' Add new empty row into DataTable
    'Private Sub AddNewRowInDataTable()
    '    Dim id As Integer = Convert.ToInt32(GridSource.Rows(GridSource.Rows.Count - 1)("EmployeeID").ToString())
    '    NewRowsCount += 1
    '    Dim row As DataRow = GridSource.NewRow()
    '    row("EmployeeID") = id + 1
    '    row("LastName") = ""
    '    row("Title") = ""
    '    row("TitleOfCourtesy") = ""
    '    row("Address") = ""
    '    row("City") = ""
    '    row("Region") = ""
    '    row("PostalCode") = ""
    '    row("PhotoPath") = ""
    '    row("Country") = ""
    '    GridSource.Rows.Add(row)
    '    radGridMaterialLocations.Rebind()
    'End Sub
 
    '' Get data from the RadGrid and save it into the DataTable
    'Private Sub saveDataInDataTable()
    '    For i As Integer = 0 To radGridMaterialLocations.MasterTableView.Items.Count - 1
    '        Dim item As GridDataItem = radGridMaterialLocations.MasterTableView.Items(i)
    '        Dim idColumn As GridColumn = radGridMaterialLocations.MasterTableView.RenderColumns(2)
    '        Dim id As Integer = Convert.ToInt32(TryCast(item(idColumn.UniqueName).Controls(0), RadNumericTextBox).Text)
 
    '        Dim myDataRow As DataRow = GridSource.Rows(i)
    '        myDataRow("LastName") = TryCast(item(radGridMaterialLocations.MasterTableView.RenderColumns(3).UniqueName).Controls(0), TextBox).Text
    '        myDataRow("FirstName") = TryCast(item(radGridMaterialLocations.MasterTableView.RenderColumns(4).UniqueName).Controls(0), TextBox).Text
    '        myDataRow("Title") = TryCast(item(radGridMaterialLocations.MasterTableView.RenderColumns(5).UniqueName).Controls(0), TextBox).Text
    '        myDataRow("TitleOfCourtesy") = TryCast(item(radGridMaterialLocations.MasterTableView.RenderColumns(6).UniqueName).Controls(0), TextBox).Text
    '        myDataRow("Address") = TryCast(item(radGridMaterialLocations.MasterTableView.RenderColumns(7).UniqueName).Controls(0), TextBox).Text
    '        myDataRow("City") = TryCast(item(radGridMaterialLocations.MasterTableView.RenderColumns(8).UniqueName).Controls(0), TextBox).Text
    '        myDataRow("Region") = TryCast(item(radGridMaterialLocations.MasterTableView.RenderColumns(9).UniqueName).Controls(0), TextBox).Text
    '        myDataRow("PostalCode") = TryCast(item(radGridMaterialLocations.MasterTableView.RenderColumns(10).UniqueName).Controls(0), TextBox).Text
    '        myDataRow("PhotoPath") = TryCast(item(radGridMaterialLocations.MasterTableView.RenderColumns(11).UniqueName).Controls(0), TextBox).Text
    '        myDataRow("Country") = TryCast(item(radGridMaterialLocations.MasterTableView.RenderColumns(12).UniqueName).Controls(0), TextBox).Text
    '    Next
    'End Sub
 
 
 
    Protected Sub radGridMaterialLocations_DataBinding(ByVal sender As Object, ByVal e As EventArgs)
        For i As Integer = 0 To radGridMaterialLocations.Items.Count
            radGridMaterialLocations.EditIndexes.Add(i)
        Next
    End Sub
 
    Protected Sub radGridMaterialLocations_PreRender(ByVal sender As Object, ByVal e As EventArgs)
        radGridMaterialLocations.Attributes.Add("onkeydown", "onKeyDown(this,event);")
        Dim itemsCount As Integer = 0
        Dim columnsCount As Integer = 0
        Dim builder As New StringBuilder()
 
 
        ' Attach the event handlers to the client side events of the TextBoxes.
 
        For Each item As GridDataItem In radGridMaterialLocations.MasterTableView.Items
            If TypeOf item Is GridDataItem Then
                columnsCount = 0
                For i As Integer = 2 To radGridMaterialLocations.MasterTableView.RenderColumns.Length - 1
                    Dim column As GridColumn = radGridMaterialLocations.MasterTableView.RenderColumns(i)
 
                    If column.UniqueName = "MaterialLocationID" Then
                        Dim radNumericTextBox As RadNumericTextBox = TryCast(item(column.UniqueName).Controls(0), RadNumericTextBox)
                        If radNumericTextBox IsNot Nothing Then
                            radNumericTextBox.Enabled = False
                            radNumericTextBox.Attributes.Add("class", "readOnly")
                        End If
                        Dim textBox As TextBox = TryCast(item(column.UniqueName).Controls(0), TextBox)
                        If textBox IsNot Nothing Then
                            textBox.[ReadOnly] = True
                            textBox.Attributes.Add("class", "readOnly")
                        End If
                    Else
                        Dim textBox As TextBox = TryCast(item(column.UniqueName).Controls(0), TextBox)
                        If textBox IsNot Nothing Then
                            textBox.Attributes.Add("ondblclick", "cellDoubleClickFunction('" + textBox.ClientID & "');")
                            textBox.Attributes.Add("onclick", "cellClick('" + textBox.ClientID & "');")
 
                        End If
                    End If
                    columnsCount += 1
                Next
                itemsCount += 1
            End If
        Next
        RadScriptManager.RegisterStartupScript(Page, Page.[GetType](), "init", "colls = " & columnsCount & ";rows=" & itemsCount & ";", True)
    End Sub
 
 
    Protected Sub radGridMaterialLocations_ItemCommand(ByVal source As Object, ByVal e As GridCommandEventArgs)
        '    saveDataInDataTable()
        '    Select Case e.CommandName
        '        Case "InsertNewRow"
        '            If True Then
        '                AddNewRowInDataTable()
 
        '                Dim script As String = "setTimeout( function () { selectedCellId='" & e.CommandArgument.ToString() & "'; MoveDown();},100);"
        '                ScriptManager.RegisterStartupScript(Page, Page.[GetType](), "selectCell", script, True)
        '                ViewState("inserted") = True
 
        '            End If
        '            Exit Select
        '        Case "AddNewRow"
        '            If True Then
        '                AddNewRowInDataTable()
        '            End If
        '            Exit Select
        '        Case "Save"
        '            If True Then
        '                saveDataInDataTable()
        '                AddNewRowsInDatabase()
        '                UpdateDatabase()
        '                RadAjaxManager1.Alert("The database was successfully updates")
        '            End If
        '            Exit Select
        '        Case Else
        '            Exit Select
        '    End Select
    End Sub
 
 
End Class



 

Server Error in '/BINMgmt' Application.

Specified argument was out of the range of valid values.
Parameter name: index

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: index

Source Error:

Line 222: Line 223: 
If column.UniqueName = "MaterialLocationID" Then
Line 224: Dim radNumericTextBox As RadNumericTextBox = TryCast(item(column.UniqueName).Controls(0), RadNumericTextBox) Line 225: If radNumericTextBox IsNot Nothing Then Line 226: radNumericTextBox.Enabled = False

Source File: C:\Projects\BIN Mgmt\BMAdminHome.aspx.vb Line: 224

Stack Trace:

[ArgumentOutOfRangeException: Specified argument was out of the range of valid values. Parameter name: index] System.Web.UI.ControlCollection.get_Item(Int32 index) +11408022 BINMGMT.BinAdminHome.radGridMaterialLocations_PreRender(Object sender, EventArgs e) in C:\Projects\BIN Mgmt\BMAdminHome.aspx.vb:224 Telerik.Web.UI.RadCompositeDataBoundControl.OnPreRender(EventArgs e) +46 System.Web.UI.Control.PreRenderRecursiveInternal() +113 System.Web.UI.Control.PreRenderRecursiveInternal() +222 System.Web.UI.Control.PreRenderRecursiveInternal() +222 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4201 


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272







Andrey
Telerik team
 answered on 09 May 2013
1 answer
115 views
Hi

How can I disable sorting in a particular column

Thanks
Allen
Princy
Top achievements
Rank 2
 answered on 09 May 2013
6 answers
191 views
I have a radgrid through which i insert,update and delete data.

Within the radgrid, i have other controls such as textboxes, dropdowns etc
However, my biggest challenge is adding the rows from the client side.

Can someone help me with a code snippet where after entering the last data in a row and press TAB/ENTER or any other key on the keyboard, then a row within the radgrid is created.
My RadGrid looks like the code below:
 
                    
<telerik:RadGrid ID="newModulesGrid" runat="server" EnableAJAX="True" Width="85%"<br>                        EnableAJAXLoadingTemplate="true" RadControlsDir="~/Resources/RadControls/" Skin="Web20"<br>                        SkinsPath="~/Resources/RadControls/Grid/Skins" AutoGenerateColumns="False"><br>                        <MasterTableView><br>                            <Columns><br>                                <telerik:GridTemplateColumn HeaderText="Topic Code" UniqueName="topicCode" AllowFiltering="false"><br>                                    <ItemTemplate><br>                                        <telerik:RadTextBox ID="topicCodeTxt" runat="server" Width="75"><br>                                        </telerik:RadTextBox><br>                                    </ItemTemplate><br>                                </telerik:GridTemplateColumn><br>                                <telerik:GridTemplateColumn UniqueName="topicName" HeaderText="Topic Name" AllowFiltering="false"><br>                                    <ItemTemplate><br>                                        <telerik:RadTextBox ID="topicNameTxt" runat="server" Width="550"><br>                                        </telerik:RadTextBox><br>                                    </ItemTemplate><br>                                </telerik:GridTemplateColumn><br>                                <telerik:GridTemplateColumn Visible="false" HeaderText="Is Active" AllowFiltering="false"><br>                                    <ItemTemplate><br>                                        <asp:Label ID="addRowLabel" Visible="false" runat="server" Text='<%#Bind("AddRow") %>'></asp:Label><br>                                    </ItemTemplate><br>                                </telerik:GridTemplateColumn><br>                            </Columns><br>                        </MasterTableView><br>                    </telerik:RadGrid><br>                    <asp:ImageButton ID="saveButton" runat="server" OnClick="Save_New" ImageUrl="~/Resources/Buttons/SaveButton.jpg" /><br>  
Maria Ilieva
Telerik team
 answered on 09 May 2013
7 answers
2.0K+ views
Hi

Please let me know how to disable specific row selection in rad grid based on specific column value with multirowselection using clientselectcolumn .
Princy
Top achievements
Rank 2
 answered on 09 May 2013
3 answers
116 views
I am using the jQuery Mobile framework (1.3.1) with a mobile site combined with the RadDatePicker (and RadTimePicker) using the MetroTouch skin. While building the site I noticed in IE10 there was an extra textbox and in Chrome there is an extra bar, both showing above the controls. When I did an Inspect Element on the element I found the following HTML:

<div id="ctl00_cpContent_rdStartDate_wrapper" class="RadPicker RadPicker_MetroTouch" style="display:inline-block;width:160px;">
    <!-- 2013.1.417.45 --><input style="visibility:hidden;display:block;float:right;margin:0 0 -1px -1px;width:1px;height:1px;overflow:hidden;border:0;padding:0;" id="ctl00_cpContent_rdStartDate" name="ctl00$cpContent$rdStartDate" type="text" class="rdfd_ radPreventDecorate" value="" title="Visually hidden input created for functionality purposes." />

The problem appears to be with the parent wrapper as the jQuery framework sees this as a normal control and adds some additional styling to it which causes it to be visible, though you can't actually interact with it. 

To recreate a sample, just add these four lines to a web form (to setup jQuery mobile) and then add a standard RadDatePicker with the MetroTouch skin (version 2013.1.417.45).


Any thoughts on how to make this not show?
Marin
Telerik team
 answered on 09 May 2013
1 answer
137 views
Hello,
When i paste some html in html mode of RadEditor and trying to save this content in database.here i am getting some script error unexpectedly some times.
observe the attached image attached.

This is my editor with all the properties,
<telerik:RadEditor ID="RadEditor1" EditModes="Design,Html" OnClientModeChange="OnClientModeChange"
OnClientLoad="GetContentLength" OnClientPasteHtml="OnClientsubmit" runat="server"
ToolsFile="~/Editor/RadEditorTools/RadTools.xml" Height="550px" Width="100%"
EnableResize="false" ContentFilters="DefaultFilters" OnClientCommandExecuting="changeImageManager"
unselectable="on">
<CssFiles>
    <telerik:EditorCssFile Value="~/Editor/RadEditorTools/EditorContentArea.css" />
</CssFiles>
<Tools>
    <telerik:EditorToolGroup>
        <telerik:EditorTool Name="ImageManager" />
        <telerik:EditorTool Name="InsertLinks" />
    </telerik:EditorToolGroup>
</Tools>
<Content></Content>
<ImageManager ViewPaths="~/Editor/Images" DeletePaths="~/Editor/Images" UploadPaths="~/Editor/Images"
    SearchPatterns="*.gif,*.jpg,*.jpeg,*.png,*.bmp" />
<TemplateManager ViewPaths="~/Editor/SampleDocs/Templates" UploadPaths="~/Editor/SampleDocs/Templates"
    DeletePaths="~/Editor/SampleDocs/Templates" />
<DocumentManager ViewPaths="~/Editor/SampleDocs/Docs" UploadPaths="~/Editor/SampleDocs/Docs"
    DeletePaths="~/Editor/SampleDocs/Docs" />
</telerik:RadEditor>

any solution?

Regards,
Anwar
Stamo Gochev
Telerik team
 answered on 09 May 2013
1 answer
280 views
I know I can subscribe to the ItemDataBound event for the grid to change a grid row background color. What I need to figure out is how to ignore this background color when the grid row is selected. I want to maintain the skins background color on row selection. The tough part is that I don't know what this color is because I allow the user to switch between multiple skins.
Princy
Top achievements
Rank 2
 answered on 09 May 2013
1 answer
68 views
Hi..
How do you get the menu to look like the menu in your Olympic examples - the large silver 'tabs'?
I can't seem to figure how you set the style or use the CSS to get this 'look'
Any ideas?
thx again
Magdalena
Telerik team
 answered on 09 May 2013
1 answer
144 views
Hi, i'm trying to get sorting working using dynamic data but it's throwing errors, when I try to sort I get the error

No property or field 'Forenames' exists in type 'Object'

[ParseException: No property or field 'Forenames' exists in type 'Object'] Telerik.Web.UI.ExpressionParser.ParseMemberAccess(Type type, Expression instance) +922 Telerik.Web.UI.ExpressionParser.ParseIdentifier() +382 Telerik.Web.UI.ExpressionParser.ParsePrimaryStart() +31 Telerik.Web.UI.ExpressionParser.ParsePrimary() +14 Telerik.Web.UI.ExpressionParser.ParseUnary() +262

Is it possible with dynamic data to sort?

protected void ResultsGrid_NeedDataSource(object sender, GridNeedDataSourceEventArgs e)
{
.....................
 
    List<dynamic> contacts = new List<dynamic>();
    foreach (Entity result in results.Entities)
    {
        Contact contact = result.ToEntity<Contact>();
        contacts.Add(
            new
            {
                Id = contact.Id,
                Forenames = contact.FirstName,
                Surname = contact.FirstName,
                ReferenceNumber = contact.mps_ReferenceNumber,
                AddressLine1 = contact.Address1_Line1,
                AddressPostalCode = contact.Address1_PostalCode,
                AddressCountry = (contact.mps_address1_country == null) ? "" : contact.mps_address1_country.Name
            }
        );
    }
 
    ResultsGrid.DataSource = contacts;
}
David Rhodes
Top achievements
Rank 1
 answered on 09 May 2013
3 answers
193 views
Hi,

I get following error when I EnableConfigurationPanel property to true 

There was a error rendering control in Design View

<telerik:RadPivotGrid ID="RadPivotGrid1" runat="server" EnableConfigurationPanel="true">
    <OlapSettings ProviderType="Adomd">
   <AdomdConnectionSettings ConnectionString="Data Source=IT;Catalog=Cost" Cube="Costing"  DataBase="Cost">
   </AdomdConnectionSettings>
   </OlapSettings>
</telerik:RadPivotGrid>

Telerik Support Pls help. I tried the connection string to successfully connect to analysis server. So not sure what's wrong.
we are evaluating this control and kind of stuck...
Radoslav
Telerik team
 answered on 09 May 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?