Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
52 views
Hello,

Using VS2005 and version 2010-Q3 (2010.3.1124.20)

After upgrading to 2010-Q3 and re-deploying to production server (Windows Server 2008) I get:

[SecurityException: Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.]

Note that I have the following in my web.config which I used to get round the missing assembly 'System.Web.Extensions, Version=1.0.61025.0 exception. This worked fine with 2010 Q2 but not anymore.
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
    <dependentAssembly>
        <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31BF3856AD364E35" culture="neutral" />
        <bindingRedirect oldVersion="1.0.61025.0" newVersion="3.5.0.0"/>
    </dependentAssembly>
</assemblyBinding>
</runtime>

My Windows Server 2008 is out of the box. It does not have System.Web.Extensions version 1.0.61025.0 in the CAC.
Question:
1.  Do I need to install ASP.NET AJAX 1.0 ASP.NET AJAX 1.0 ?
2.  Where can I find detailed info about what is needed on a production box for it to be able to host a Telerik app.

Note: I created a default Telerik web app using the widzard and I get the same 'System.Web.Extensions, Version=1.0.61025.0 exception on the production box.

Thanks.
Vasil
Telerik team
 answered on 02 Dec 2010
1 answer
227 views
Hi!  I'm getting a SQL Exception error (invalid column name) when trying to filter on a GridHyperLinkColumn.  What I'm trying to do is show the name of a person in the column with a hyperlink to the person's email address.

Here's the code from the aspx page:
<telerik:GridHyperLinkColumn DataNavigateUrlFields="Email1" UniqueName="Email1"
DataNavigateUrlFormatString
="mailto:{0}" DataTextField="Name"
HeaderText="Reviewer" SortExpression="Email1" ShowFilterIcon="false"
ShowSortIcon
="false" AutoPostBackOnFilter="true" />

The stored procedure which populates the radgrid does pull back column names "Name" and "Email1".  The radgrid appears to display correctly in that I do see the names of people and if I click on one of the names my mail client does open up an email window with the person's name in the "To:" field.

However, when I attempt to filter on the column I receive the following error (regardless of whether I type in a person's name or email address:
System.Web.HttpUnhandledException: 
Exception of type 'System.Web.HttpUnhandledException' was thrown. 
---> System.Data.SqlClient.SqlException: Invalid column name 'Name'.

Is it possible to do this type of functionality GridHyperLink column where the data displayed comes from one column in a database table but the hyperlink ability uses another column in the database?

Thanks!
Veli
Telerik team
 answered on 02 Dec 2010
5 answers
264 views
Hello.

I've got a bit of problem. If I declare a column in a grid with a specific DataFormatString, then create an aggregate of it with FooterText, the text does not show up. So this code snippet below

<telerik:GridBoundColumn HeaderText="Column1" SortExpression="Column1"
                DataField="Column1" UniqueName="Column1" DataType="System.Decimal"
                DataFormatString="{0:$###,##0.00}" Aggregate="Sum" ItemStyle-Wrap="true" HeaderStyle-Wrap="false"
                FooterText="Total Column1: ">
                <ItemStyle HorizontalAlign="Right" Wrap="True" />
                <FooterStyle HorizontalAlign="Right" Wrap="True" />
            </telerik:GridBoundColumn>

would show the column with currency format but the will not show the right footer text. However, once I remove the DataFormatString setting, the footer text displays. However, I need to have the currency formatting in place. Is there a better way for me to do this, or are we not allowed to do this?

Thanks,
Ernest
Tomer
Top achievements
Rank 1
 answered on 02 Dec 2010
1 answer
90 views
Currently all my data is being bound through a custom Hierarchy class, I'm having a bit of trouble expanding the structure to make the node I want visible... well... visible. I attempted to use MyTreeView.Nodes(MyIndex).Expanded = True directly after calling MyTreeView.DataBind() but it keeps telling me the index is out of range... but I'm fairly certain it is not. How would one go about expanding a single node of a TreeView without building it from scratch node by node.

* My Bad, I forgot the Node structure was recursive. So I really needed to be working off MyTreeView.Nodes(0). I worked up a little code to get the results I needed, where "selected" is a string value for the text associated with the node I want to expand to:

    Dim Node as RadTreeNode
    Node = rtvHierarchy.FindNodeByText(selected)
    Node.Selected = True
    Node = Node.ParentNode
    do while not (Node is Nothing)
      Node.Expanded = True
      Node = Node.ParentNode
    loop
Yana
Telerik team
 answered on 02 Dec 2010
3 answers
78 views
I am using the 2010 Q2 controls and am not able to get multiple DetailTables (GridTableView) to display under the same master table. There are two detail tables in the hierarchy under the same master, and the second table appears to be displayed on top of the first one (text bleeds through). This is not a problem in Firefox, only IE.
Dimo
Telerik team
 answered on 02 Dec 2010
1 answer
202 views
I'm using the sample you provided for RadListView with the following code
<telerik:RadListView ID="listViewProducts" runat="server"
        onneeddatasource="listViewProducts_NeedDataSource" ItemPlaceholderID="ProductsHolder"
       DataKeyNames="ProductCatalogID" Width="1200px">
                  <AlternatingItemTemplate>
                  <div class="rlvA" style="height: 150px; width: 220px; margin-top: 5px; margin-left: 5px;
                                margin-right: 5px; margin-bottom: 5px; padding-left: 15px;">
                  <asp:Panel ID="pnl" runat="server" Width="220px" CssClass="header4" >
                         <b> <%#Eval("Products")%></b>
                     
                        <div style="padding-left:20px;padding-top:20px;" >
                        <asp:ImageButton ID="ImageButton1" ImageUrl="~/Images/Product.jpg" PostBackUrl='<%# Eval("Link")%>' runat="server" />
                     </div>
                        </asp:Panel>
 
                            </div>
                        </AlternatingItemTemplate>
                        <ItemTemplate>
                        <div class="rlvI" style="height: 150px; width: 220px; margin-top: 5px; margin-left: 5px;
                                margin-right: 5px; margin-bottom: 5px; padding-left: 15px;">
                         <asp:Panel ID="pnl" runat="server" Width="220px" CssClass="header4">
                          <b><%#Eval("Products")%></b>
                     
                        <div style="padding-left:20px;" >
                        <asp:ImageButton ID="btnSample" ImageUrl="~/Images/Product.jpg" PostBackUrl='<%# Eval("Link")%>' runat="server" />
                     </div>
                        </asp:Panel>
                        </div>
                        
                        </ItemTemplate>
                        <EmptyDataTemplate>
                            <div class="RadListView RadListView_Windows7">
                                <div class="rlvEmpty">
                                    There are no items to be displayed.</div>
                            </div>
                        </EmptyDataTemplate>
                        <LayoutTemplate>
                            <div class="RadListView RadListViewFloated RadListView_Windows7">
                                <div class="rlvFloated rlvAutoScroll">
                                    <div id="ProductsHolder" runat="server">
                                    </div>
                                </div>
                                <telerik:RadDataPager ID="RadDataPager1" runat="server" PageSize="7">
                                    <Fields>
                                        <telerik:RadDataPagerButtonField FieldType="Numeric" />
                                    </Fields>
                                </telerik:RadDataPager>
                            </div>
                        </LayoutTemplate>
 
       
    </telerik:RadListView>

There are a few issues:
1. I cannot see the "Open Layout Editor" in design time
2. How can I make the result show more than 3 columns? It seems the definition is in your Telerik css that I don't have access to.
3. The DataPager is not working.

Thanks for your help.

Radoslav
Telerik team
 answered on 02 Dec 2010
1 answer
131 views
Any recommendation for PHP script like Mysql Ajax Table Editor? I prefer a completed free one. :P
Sebastian
Telerik team
 answered on 02 Dec 2010
4 answers
89 views
Can anybody help me? I've been getting this message :

"A script on this page is causing Internet Explorer to run slowly. If it continues to run, your computer may become unresponsive. Do you want to stop the script?"

I getting this error while changing week view to month view in RadScheduler controls.
I have used 4 telerik controls i.e. RadGrid ,RadTreeview, Radschedular, RadToolTipManager.
I have tried with one solution.I have tried with RadScriptManager and RadStyleSheetManager.
Fiko
Telerik team
 answered on 02 Dec 2010
1 answer
28 views
I checked the loading time of a RadWindow through firebug with and without cache (see Screenshots) and I noticed that the css and the images are downloaded for each opening, even with the cache enabled.

How can I optimize the calls to the server by uploading the css and images from browser cache without checking if they have been modified?

You can perform some other optimization to reduce the loading time?
Georgi Tunev
Telerik team
 answered on 02 Dec 2010
5 answers
364 views
Hi, Is there any way to configure a GridHyperLinkColumn to HtmlEncode the contents of the DataTextField? Unlike the GridBoundColumn, it doesn't appear to have an HtmlEncode property. What's more, because HyperLink columns don't support databinding, I can't add encoding that way either. The only option I can see is to change the column type to a template column but I'd rather avoid that if possible.
Tsvetina
Telerik team
 answered on 02 Dec 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?