Telerik Forums
UI for ASP.NET AJAX Forum
30 answers
2.5K+ views
Hi,
I have no problems adding the RadGrid control in the designer, but as soon as I configure the data source an error comes up (see below). I found an article with the same problem (www.telerik.com/community/forums/thread/b311D-bbedtc.aspx ) and also registered in the GAC the assemblies Telerik.Web.UI.dll and Telerik.Web.Design.dll. Any help will be highly appreciated. Need to get this going or will have to choose controls from other vendors (which I personally wouldnt like) :-)

Many thanks. BR, Jurgen

 RadGrid - RadGrid1System.Web.HttpParseException: Telerik.Web.UI.GridColumnCollection must have items of type 'Telerik.Web.UI.GridColumn'. 'telerik.web.ui.gridboundcolumn' is of type 'System.Web.UI.HtmlControls.HtmlGenericControl'. ---> System.Web.HttpParseException: Telerik.Web.UI.GridColumnCollection must have items of type 'Telerik.Web.UI.GridColumn'. 'telerik.web.ui.gridboundcolumn' is of type 'System.Web.UI.HtmlControls.HtmlGenericControl'. ---> System.Web.HttpException: Telerik.Web.UI.GridColumnCollection must have items of type 'Telerik.Web.UI.GridColumn'. 'telerik.web.ui.gridboundcolumn' is of type 'System.Web.UI.HtmlControls.HtmlGenericControl'. at System.Web.UI.CollectionBuilder.GetChildControlType(String tagName, IDictionary attribs) at System.Web.UI.ControlBuilder.CreateChildBuilder(String filter, String tagName, IDictionary attribs, TemplateParser parser, ControlBuilder parentBuilder, String id, Int32 line, VirtualPath virtualPath, Type& childType, Boolean defaultProperty) at System.Web.UI.TemplateParser.ProcessBeginTag(Match match, String inputText) at System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding) --- End of inner exception stack trace --- at System.Web.UI.TemplateParser.ProcessException(Exception ex) at System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding) at System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding) --- End of inner exception stack trace --- at System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding) at System.Web.UI.TemplateParser.ParseInternal() at System.Web.UI.TemplateParser.Parse() at System.Web.UI.DesignTimeTemplateParser.ParseControlsInternal(DesignTimeParseData data, Boolean returnFirst) at System.Web.UI.DesignTimeTemplateParser.ParseControl(DesignTimeParseData data) at System.Web.UI.Design.ControlSerializer.DeserializeControlInternal(String text, IDesignerHost host, Boolean applyTheme) at System.Web.UI.Design.ControlParser.ParseControl(IDesignerHost designerHost, String controlText, Boolean applyTheme) at System.Web.UI.Design.ControlDesigner.CreateClonedControl(IDesignerHost parseTimeDesignerHost, Boolean applyTheme) at System.Web.UI.Design.ControlDesigner.CreateViewControl() at System.Web.UI.Design.ControlDesigner.CreateViewControlInternal() at System.Web.UI.Design.ControlDesigner.get_ViewControl() at Telerik.Web.Design.RadGridDesigner.get_Grid() at Telerik.Web.Design.RadGridDesigner.GetDesignTimeHtml(DesignerRegionCollection regions) at System.Web.UI.Design.ControlDesigner.GetViewRendering(ControlDesigner designer)
Paul
Top achievements
Rank 1
 answered on 21 Jan 2016
5 answers
899 views
When I use RadDatePicker and update the item, the label show the result 29/08/2012 00:00:00.

                        <telerik:RadDatePicker ID="RadDatePicker1" runat="server" DbSelectedDate='<%# Bind("rEstimatedDelivery") %>' >
                            <DateInput runat="server" DateFormat="dd/MM/yyyy" DisplayDateFormat="dd/MM/yyyy" />
                            <Calendar runat="server" ViewSelectorText="dd/MM/yyyy" TitleFormat="dd/MM/yyyy" />
                        </telerik:RadDatePicker>

How can I update only 29/08/2012, without 00:00:00 ?

Thank you!
Eyup
Telerik team
 answered on 21 Jan 2016
0 answers
101 views
The aim of the Telerik Support Forum is to provide all registered users a way to find answers to their questions before contacting Telerik. You can also use them to:
  • discuss coding techniques with fellow Telerik users
  • share your experience on the Telerik suite of controls
  • contact Telerik with a question
  • ask general questions, not related to Telerik controls
  • help other users.

A post in the Support Forums doesn't guarantee you a response from the Telerik support team although 95% of all posts are eventually answered. Additionally, a post is not assigned a response time as with the support ticketing system. In case you need a faster and precise response, please start a new support ticket as it gets higher priority than Forum posts.

Telerik strives to constantly improve its support services but it is essential to have full information so as to supply precise replies. It is important that you follow the guidelines below in order to receive an accurate response:

GUIDELINES TO USING THE SUPPORT FORUM

  1. You should have a valid Telerik account to post in the Forum. You can create one from the Registration page here. Anonymous names will not be allowed and such posts will not be answered or will be deleted.
  2. Use the relevant product forum to post your questions and comments. If your question relates to two or more Telerik products, you can post it in the General Discussions section.
  3. File attachments are not supported. You can, however, paste a code snippet. If you think that Telerik needs to review your project and/or files, or that a screenshot is necessary, start a new support ticket.
  4. Describe your question in detail.
  5. State the development software you are using, including:
    • ASP.NET version
    • OS
    • exact browser version
    • exact version of the Telerik product
    • preferred programming language (VB.NET or C#)
  6. Provide step by step instructions on how to reproduce erroneous behavior.
  7. If applicable, send us the error you are receiving.
  8. Telerik reserves the right to use, reproduce and share the material you post within the forums.
  9. Telerik reserves the right to not participate in all posts.
  10. Telerik reserves the right to remove any messages that do not comply with these terms.

ENJOY!!!

Telerik Admin
Top achievements
Rank 1
Iron
 asked on 21 Jan 2016
4 answers
257 views

the horizontal scrollbar doesn't show. rows and columns are not align. But the following loads (via ajax callback) display correctly.

 

<telerik:RadPivotGrid ID="PivotGrid1" runat="server" AllowPaging="true" ShowDataHeaderZone="false" ShowColumnHeaderZone="false" ShowRowHeaderZone="false"
ShowFilterHeaderZone="false" AllowFiltering="false" AllowSorting="false" Skin="Office2010Silver" PageSize="10">

<Fields>
...
</Fields>
<ColumnHeaderCellStyle Width="120px" />
<RowHeaderCellStyle Height="20px" Width="120px" />
<TotalsSettings GrandTotalsVisibility="None" />
</telerik:RadPivotGrid>

Eyup
Telerik team
 answered on 21 Jan 2016
5 answers
283 views

I have a telerik radgrid used on my page.I have set the enablelinqexpressions property to true. What i read in blog was when we set this property we get the filter expression in the linq format like this - "(iif(Message == null, \"\", Message).ToString().ToUpper().Contains(\"f2e\".ToUpper()))" but i am still getting the filter expression in the SQL format.

 Am i missing any thing ?

 

Please find below few of my radgrid code snippet:

<telerik:RadGrid ID="gridResults" runat="server" AllowFilteringByColumn="True"
        AllowPaging="True" AllowCustomPaging="True" AllowSorting="True" AutoGenerateColumns="False"
        CellSpacing="0" EnableAJAX="True" GridLines="None" PageSize="20" Skin="Windows7"
        OnNeedDataSource="gridResults_NeedDataSource" OnItemCommand="gridResults_ItemCommand" Visible="False">
        <GroupingSettings CaseSensitive="False" />
        <ClientSettings AllowColumnsReorder="True" ReorderColumnsOnClient="True" />
        <ExportSettings OpenInNewWindow="true" ExportOnlyData="true" HideStructureColumns="true" />
        <MasterTableView CommandItemDisplay="Top" AllowMultiColumnSorting="False">
            <CommandItemSettings ShowAddNewRecordButton="false" ShowExportToCsvButton="true" ShowExportToExcelButton="true" ShowRefreshButton="false" />
            <SortExpressions>
                <telerik:GridSortExpression FieldName="Timestamp" SortOrder="Descending" />
            </SortExpressions>

Eyup
Telerik team
 answered on 21 Jan 2016
3 answers
107 views
There are three divs inside the panel: div1,div2,div3. Inside each div there is a linkbutton. Each link button runs scripts, but the final step of each button event is that it would switch the divs by using the attribute.add style property. Now, this works on FF, IE, and Chrome. However, there is a strange issue on IPhone, of which I cant really test as I dont have an iphone. The user who has the issue says they click on the button on div1 and it properly updates to div2. However, clicking upon the button in div2, does not update to div3 but the events in the button in div2 is still triggered. I tried this on my android device and I tried to emulate the iphone on Chrome, and I can't seem to replicate this issue. Is there any known issues in running the ajaxpanel/loadingpanel on iphone.
Konstantin Dikov
Telerik team
 answered on 21 Jan 2016
2 answers
189 views
Hi,

We are using Radgrid and binding it server side but we want to export the grid to excel, but the server side exporting is not working for us, can you please help us with exporting to excel using client side binding?

We tried a link but its is not working for us: http://www.telerik.com/community/forums/aspnet-ajax/grid/performance-issue-when-exporting-a-large-number-of-records-to-excel-is-it-normal.aspx

Thanks in advance.
Ruchi
Top achievements
Rank 1
 answered on 21 Jan 2016
10 answers
2.4K+ views
Here is my grid:

                <asp:Button ID="btnExcel" runat="server" CssClass="inpButton" Text="Export to Excel" OnClick="btnExcel_Click" />
                <telerik:RadGrid ID="grdInvoices" AutoGenerateColumns="false" AllowSorting="false" AllowMultiRowSelection="false" runat="server">
                    <MasterTableView>
                        <Columns>
                            <telerik:GridBoundColumn HeaderText="Invoice Number" UniqueName="InvNum" DataField="invoiceNumber" HeaderStyle-Width="10%"></telerik:GridBoundColumn>
                            <telerik:GridBoundColumn HeaderText="Note Code" UniqueName="Note" DataField="noteCode" HeaderStyle-Width="10%"></telerik:GridBoundColumn>
                            <telerik:GridBoundColumn HeaderText="PO Number" UniqueName="po" DataField="poNumber" HeaderStyle-Width="30%"></telerik:GridBoundColumn>
                            <telerik:GridBoundColumn HeaderText="Invoice Date" UniqueName="invDate" DataField="invoiceDate" HeaderStyle-Width="10%"></telerik:GridBoundColumn>
                            <telerik:GridBoundColumn HeaderText="Original Invoice Balance" UniqueName="OrigBal" DataField="origBalance" HeaderStyle-Width="15%"></telerik:GridBoundColumn>
                            <telerik:GridBoundColumn HeaderText="Invoice Payments" UniqueName="InvPay" DataField="paymentAmount" HeaderStyle-Width="10%"></telerik:GridBoundColumn>
                            <telerik:GridBoundColumn HeaderText="Present Invoice Balance" UniqueName="InvBal" DataField="presentBalance" HeaderStyle-Width="15%"></telerik:GridBoundColumn>
                        </Columns>
                    </MasterTableView>
                    <ClientSettings EnableRowHoverStyle="true">
                        <Selecting AllowRowSelect="True"></Selecting>
                    </ClientSettings>
                </telerik:RadGrid>


And here is the button click logic:
    protected void btnExcel_Click(object sender, EventArgs e)
    {
        try
        {
            grdInvoices.ExportSettings.ExportOnlyData = true;
            grdInvoices.ExportSettings.IgnorePaging = true;
            grdInvoices.ExportSettings.OpenInNewWindow = true;
            grdInvoices.ExportSettings.FileName = @"C:\jasInv.xlxs";
            grdInvoices.MasterTableView.ExportToExcel();
        }
        catch (Exception ex)
        {
            txtError.Text = ex.Message;
        }
    }

It does nothing.  The file isn't created, no errors, nothing.
Kostadin
Telerik team
 answered on 21 Jan 2016
1 answer
123 views

Hello,  

I need to be able to change the editcolumn icon of the RadGrid to a custom Icon using css background properties.

Any direction pointers ?

Thanks

Eyup
Telerik team
 answered on 21 Jan 2016
1 answer
375 views

Hi all,

 I'm using a rad grid to display employees list and for every employee I have to do some actions so for every employee row i have some buttons 

   Edit , Delete , Action

I m using on (RadGrid1_ItemCreated) event to handle these buttons 

in the action button I have to display a context menu with list of related actions for the selected employee 

how can I display this context menu and how to relate every menu Item to the selected employee 

 

thanks

Eyup
Telerik team
 answered on 21 Jan 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?