Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
112 views
Hello,

I was running a trial version of Telerik  since about June 15 or so I would guess.  We purchased the toolset on Friday July 13th and it looked as though there was an updated.  I had started using some of the tools inside our project.   When I bring the project up after the install I am getting errors specifically on the radgrid it looks like.  I haven't tried anything else.  If i remove the grid and attempt to re add it to my project as soon as I slide the control on to my project I get the same thing so it seems my toolbox is broke as well.  I tried doing a reset on the toolbox and that did not do anything.  Also, i verified i have the  telerik.web.ui referenced in my project from the bin40 folder as well.  What happened and how do i fix this?

EDIT:  I forgot to attach the error.  this is what I am getting after we purchased and updated.

Thanks.
Andrey
Telerik team
 answered on 19 Jul 2012
1 answer
643 views
Hello,
I keep having this error with a radgrid (ajaxified with a RadAjaxManager) : Uncaught Sys.WebForms.PageRequestManagerParserErrorException: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled. Details: Error parsing near '%PDF-1.4 

On the Radgrid I ve a button to open / generate a pdf coming from a database. I know the issue is coming from the Response.(), to open the pdf I ve to do something like that: 

Response.Clear()
Response.ContentType = "application/pdf"
Response.AddHeader("Content-Disposition", "attachment; filename=MyPdfFile.pdf")
Response.BinaryWrite(binaryFieldPdf.ToArray)
Response.End()

How could I avoid this error using ajax and still have a Response() in my function?       
Saravana Kumar
Top achievements
Rank 1
 answered on 19 Jul 2012
1 answer
37 views
Hello,

I have added raddatepicker Q4 2006 control on a asp.net web page and set focus on it like raddatepicker1.Focus() in page load event handler. The moment this page is loaded and shown on browser, this control loses focus.

Please tell me how to retain focus on this control when page is loaded.
Vasil
Telerik team
 answered on 19 Jul 2012
1 answer
90 views
I know that this question has been asked many times but I'm having problems getting paging working with my grid. I've looked at the examples and still can't get it right. Could someone please point me in the right direction with my code?

<telerik:RadGrid ID="ProfileGrid" Width="100%" AllowFilteringByColumn="True"
            AllowSorting="True" PageSize="12" ShowFooter="True" AllowPaging="True" ViewStateMode="Enabled"
            runat="server" OnNeedDataSource="ProfileGrid_NeedDataSource" AutoGenerateColumns="false"
            GridLines="None" ShowStatusBar="true" AllowMultiRowSelection="True" DataKeyNames="ProfileID">
            <GroupingSettings CaseSensitive="false" />
            <MasterTableView>
                <Columns>
                    <telerik:GridBoundColumn HeaderText="ProfileID" DataField="ProfileID" ReadOnly="True"
                        UniqueName="ProfileID" Display="False" />
                    <telerik:GridClientSelectColumn UniqueName="CheckboxSelectColumn" />
                    <telerik:GridBoundColumn DataField="Email" HeaderText="Email" />
                    <telerik:GridBoundColumn DataField="FirstName" HeaderText="First Name" />
                    <telerik:GridBoundColumn DataField="LastName" HeaderText="Last Name" />
                    <telerik:GridBoundColumn DataField="Occupation" HeaderText="Occupation" />
                    <telerik:GridBoundColumn DataField="CompanyName" HeaderText="Company" />
                    <telerik:GridBoundColumn DataField="Source" HeaderText="Source" />
                    <telerik:GridBoundColumn DataField="ProfileLastModifiedDate" HeaderText="Modified" />
                    <telerik:GridButtonColumn Text="Delete" CommandName="Delete" />
                    <telerik:GridButtonColumn Text="View Full Profile" CommandName="View Full Profile" />
                </Columns>
            </MasterTableView>
            <ClientSettings EnableRowHoverStyle="true">
                <Selecting AllowRowSelect="True" />
            </ClientSettings>
        </telerik:RadGrid>

public partial class ProfilesGridControl : ProfileControlBase
{
 
    protected override void FillProfiles()
    {
        List<IProfile> profilesList = new List<IProfile>();
        ProfileDal profileDal = new ProfileDal();
        profilesList = profileDal.SelectAll();
        ViewState["Profiles"] = profilesList;
        ProfileGrid.DataSource = ViewState["Profiles"];
    }
 
    protected void ProfileGrid_NeedDataSource(object source, GridNeedDataSourceEventArgs e)
    {
        if (ViewState["Profiles"] != null)
        {
            ProfileGrid.DataSource = ViewState["Profiles"];
        }
        {
            FillProfiles();
        }
    }
 
}

The grid loads the data successfully when the page is first loaded but if I try to page I first get a grid with all of the rows I would expect but no data. Then if I page again I get no grid just a blank page. What am I doing wrong? Note profileDal.SelectAll() creates a list of IProfile business objects by querying a SQL server database using a stored procedure. Calling profileDal.SelectAll() fetches all the data required first time. The data is not being fetched page by page.
Andrey
Telerik team
 answered on 19 Jul 2012
28 answers
274 views
You can reproduce these problems on your rad editor demo.
  1. Open the demo and left click the RadEditor image. Note it doesn't select the image in Safari or Chrome, and thus the image properties don't appear in the Properties Inspector. But it works fine in IE, FF and Opera.
  2. However, when you select the image in Opera, you can't initially make the cursor appear in the Width, Height, nor Border Width boxes. You have the click the up arrow in the box, and then you can click inside the box to start typing
  3. Right click the image in Chrome and Safari and note the image turns blue and the properties appear in the Properties Inspector.
  4. You can then left click to remove the context menu in Chrome and Safari and manipulate the selected image in the properties inspector. But the blue overlay looks bad.
  5. Note that resizing handles do not appear on a selected image in Safari, Chrome, nor Opera.
ido nahmias
Top achievements
Rank 1
 answered on 19 Jul 2012
4 answers
123 views
Hello 

I do have used the telerik radrotator control for showing news with animationtype=fade and rotatortype=slideshow which work fine in all browsers except IE 8 which is not showing anything not even content. Can anyone help me how to resolve this issue for IE 8 browser.

Below is my code example

<div class="newsmaindiv">
    <telerik:radrotator id="radrotator1" width="340px" height="37px" RotatorType="SlideShow"
        AnimationType="Fade" FrameDuration="2000" runat="server" itemheight="37px" itemwidth="340px"
        SlideShowAnimation-Duration="2000" style="Visibility:visible\9;">
        <Itemtemplate>
                <div style="height:37px;width:340px;">           
                   <span>                 
                    <a style="font-weight:normal;font-size:12px;font-family:Helvetica; color:#ffffff; text-decoration:none;" href='/news/listnews.aspx?idnews=<%# Eval("news_id") %>'><%# Eval("news_headline") %></a>                   
                    </span>                
                </div>              
            </Itemtemplate>
    </telerik:radrotator>
</div>
Pawan
Top achievements
Rank 1
 answered on 19 Jul 2012
2 answers
266 views
Hello, I have issue with Tab key (9) pressed on radnumerictextbox. This key is not handled by OnKepPress event  in clientevents. I mean it is handled only in firefox. In IE, Chrome or Safari when pressing TAB, OnKeyPress is not fired. Other keys are working, just this one (I checked few). Is there any workaround to have TAB key handled by RadNumericTextBox in IE and Chrome?

Kind Regards
Marcin

P.S. I'm using version 2010.3.1317.40
Marcin
Top achievements
Rank 1
Veteran
 answered on 19 Jul 2012
1 answer
150 views
This is my first stab at grid. I am experienced at asp but I cant seem to create a simple example

The page is simply

-------------------------------------------------------------------------------------------------
<%@ Page Language="c#" CodeFile="TelerikGrid.aspx.cs" Inherits="Telerik.GridExamplesCSharp.Hierarchy.NestedViewTemplate.DefaultCS" %>

<%@ Register TagPrefix="telerik" Namespace="Telerik.Charting" Assembly="Telerik.Web.UI" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<body class="BODY">
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:NewtonBidsConnectionString %>" 
        SelectCommand="SELECT DISTINCT * FROM [t2]"></asp:SqlDataSource>
    </body>
</html>
-------------------------------------------------------------------------------------------------

code behind is empty ie

-------------------------------------------------------------------------------------------------

using System;
using Telerik.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI;


namespace Telerik.GridExamplesCSharp.Hierarchy.NestedViewTemplate
{
    public partial class DefaultCS : System.Web.UI.Page
    {


 
    }
}
-------------------------------------------------------------------------------------------------


the table t2 is a very simple table with 10 columns colum0 being unique


When I add Ragrid in to the source page and select the above datasource I get the following ( in summary.. )

RadGrid - RadGrid1System.Web.HttpException (0x80004005): 'MasterTableView' could not be initialized. Details: 'Columns' could not be initialized. Details: 'Columns' could not be added to the collection. Details: 'Column 0' could not be set on property 'UniqueName'. ---> System.Web.HttpException (0x80004005): 'Columns' could not be initialized. Details: 'Columns' could not be added to the collection. Details: 'Column 0' could not be set on property 'UniqueName'. ---> System.Web.HttpException (0x80004005): 'Columns' could not be added to the collection. Details: 'Column 0' could not be set on property 'UniqueName'. ---> System.Web.HttpException (0x80004005): 'Column 0' could not be set on property 'UniqueName'. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentException: UniqueName cannot contain spaces at Telerik.Web.UI.GridColumn.set_UniqueName(String value) --- End of inner exception stack trace --- at 


What step am I missing ?

thanks

Jagat
Top achievements
Rank 1
 answered on 18 Jul 2012
3 answers
144 views
I have read long threads and examples posted on your documentation about setting the background for the editor content area, but I cannot succesfully do it.

We do have a definition for <body> that sets a background color and image. I need to override these, but no success. I have modified the EditorContentArea.css, I have tried the ContentAreaCssFile attribute pointing it to the difinitions, and I have used normal CSS overrriding techniques using the classes you use around the textarea tag of the editor with no luck.

The threads on the forum seem to refer to an older version with style names I do not see on the current themes. I am using the RadEditor for ASP.NET AJAX product and the Web20 theme.

I am evaluating this product for use on our website, so please help or we will not be able to use you.

Thanks.
Vessy
Telerik team
 answered on 18 Jul 2012
1 answer
112 views
i am amending an application so that the add/edit functions are now showing in a popup rather than on the same page under the data grids.

so a user now clicks a data row and the update facility appears in a popup.

the original screen had validation that showed a popup window with any errors or missed fields for adding or updating.

while this validation still fires from the add/edit popup window, the popup with validation error msgs appears below my new popup whereas i would want it to show above this popup.

is there a way to do this? i couldnt see anything obvious in the window properties regarding how i might set this.

otherwise i will just have to move the validation error msgs into the update popup itself.....
Mark
Top achievements
Rank 1
 answered on 18 Jul 2012
Narrow your results
Selected tags
Tags
+124 more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?