Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
68 views
Is there a Telerik control, assembly, or tool within my Premium Collection for .NET that can help in creating Calendar Files (e.g., *.cal, *.ics, *.vcs) for ASP.NET?

Thanks!
paolo
Top achievements
Rank 1
 answered on 06 Jul 2009
1 answer
120 views
Hi,

I have a download button a grid to allow the download of a file and I can't make it work.
I have the download on other page that works nice but in the grid I can't use it because it doesn't accept the code I used on the other page.
The code to the download is the following:

Descarregar contedo

<a href="anexos/<%# Eval("NomeAnexo")%>" class="descarregarConteudo" title="Descarregar contedo"><img src="imagens/page_white_put.png" class="descarregarConteudo" /> </a>

 



And I'm using the following HTML code to the download button:

<

 

telerik:GridButtonColumn ButtonType="ImageButton" ImageUrl="~/imagens/page_white_put.png" ItemStyle-HorizontalAlign="Center" HeaderText="Descarregar" HeaderStyle-HorizontalAlign="Center" text="Descarregar contedo"></telerik:GridButtonColumn>

Does anyone knows how can I solve this problem?
Thanks!

 

Princy
Top achievements
Rank 2
 answered on 06 Jul 2009
1 answer
107 views
 How can i create gridDropDownColumn and its related sqldatasource at runtime?

Thanks

Gilberto
Princy
Top achievements
Rank 2
 answered on 06 Jul 2009
1 answer
406 views
Attempting to use the code:
item["fieldname"] inside of an OnItemDataBound handler for my RadGrid results in the exception:
'Telerik.Web.UI.GridNotSupportedException'
    base {Telerik.Web.UI.GridException}: {"Item in insert mode does implement indexer only when the edit form is autogenerated"}'

Is there some other way to get to the data values in the OnItemDataBound, or some reasonable way to make this exception go away?  My RadGrid is backed by a List of custom objects, which are mapped via telerik:GridBoundColumn.  Autogenerating isn't an option, I need to use a form template for my client.

I tried searching the forums, but didn't find anything that explained this error.
David
Top achievements
Rank 1
 answered on 06 Jul 2009
5 answers
359 views
How do I set the default value to checked when inplace editing a GridCheckboxColumn?  Is this possible or would I have to use a template column with a checkbox set to checked?  Also are there any examples of using a dropdownlistcolumn?
Jonathan
Top achievements
Rank 1
 answered on 05 Jul 2009
4 answers
163 views
Hi,

I'd like to know if it is possible with the radWindow to change its alternate text. The alternate text for the close button is close, but I need to put it in a different language.

Thank you
Daniel Laforest
Top achievements
Rank 1
 answered on 05 Jul 2009
1 answer
73 views
Hi

I have been using RadControls for ASP.NET Ajax for months, and the toolbox is
installed in Visual Web Developer 2008 (VWD with SP1)

Or at least it was until just now when I opened VWD to find that the Telerik toolset
has disappeared from the toolbar. There is no longer a toolbox item for these tools at all.

Also when I try to run exisiting pages, I get an error message:
"Could not load file or assembly 'Telerik.Web.UI' or one of its dependencies. The system cannot find the file specified."

Can anyone suggest how to get it back?

I have tried re-booting. 

Thanks

Clive

Clive Hoggar
Top achievements
Rank 1
 answered on 05 Jul 2009
5 answers
765 views
Hi

My grid has a column which has a SUM aggregate being applied to it. This figure is being displayed correctly in the grid footer. I would like to be able to access this grid total in the code behind so i can display its value elsewhere on the page.

For a group footer you can access an aggregate field like so:

Protected Sub gridJourneys_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) If TypeOf e.Item Is GridGroupFooterItem Then
            Dim item As GridGroupFooterItem = CType(e.Item, GridGroupFooterItem)
         
            Dim groupDataRow As DataRowView = CType(e.Item.DataItem, DataRowView)

           response.write (groupDataRow("Total"))

I tried this in a grid footer but it didn't work. I got the error Object reference not set to instance of object because the e.item.DataItem proeprty is null/nothing

   ElseIf TypeOf e.Item Is GridFooterItem Then
            Dim footerItem As GridFooterItem = CType(e.Item, GridFooterItem)
            Dim gridDataRow As DataRowView = CType(e.Item.DataItem, DataRowView)
         
            Throw New Exception(gridDataRow Is Nothing) <=========TRUE

How do I access the grid totals please?

I have already read this page in the help file
ms-help://telerik.aspnetajax.radcontrols.2008.Q3/telerik.aspnetajax.radgrid.2008.Q3/totals-in-grid-footers.html

In this method you have to find the total yourself by keeping a running total of the column in the itemdatabound event. I could do this but it does seem like a case of reinventing the wheel as the grid has obviously calculated the total and stored it somewhere. I just can't find it!

many thanks



andieje
Top achievements
Rank 1
 answered on 05 Jul 2009
1 answer
237 views
Hi,
 I am using a Combo Box with Grid based on example here: http://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridcomboajax/defaultcs.aspx?product=grid

For the life of me, I can not get 2 GUID columns to map.  If I leave the DBType to default "object", I get the error "

Conversion failed when converting from a character string to uniqueidentifier".

If I set DBType to "GUID", I get the error "

Guid should contain 32 digits with 4 dashes"

Here is my code:
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ComboBox.ascx.cs" Inherits="MyControls_ComboBox" %> 
<div id="productselector"
    Choose Product 
    <telerik:RadComboBox ID="RadComboBox1" runat="server" DataSourceID="SqlDataSource1" 
        DataTextField="Name" DataValueField="ID" Skin="Black" EnableScreenBoundaryDetection="False" 
        EmptyMessage="Choose Product" AppendDataBoundItems="True" AutoPostBack="True"
        <Items> 
            <telerik:RadComboBoxItem Text="All" Value="0" Selected="true" /> 
        </Items> 
    </telerik:RadComboBox> 
</div> 
<div id="grid" style="margin-top: 15px;"
    <telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="SqlDataSource2" GridLines="Horizontal" 
        Width="300px" AllowMultiRowSelection="True" Skin="Black" AllowPaging="True" AllowSorting="True"
        <MasterTableView DataSourceID="SqlDataSource2" AutoGenerateColumns="False"
            <RowIndicatorColumn> 
                <HeaderStyle Width="20px"></HeaderStyle> 
            </RowIndicatorColumn> 
            <ExpandCollapseColumn> 
                <HeaderStyle Width="20px"></HeaderStyle> 
            </ExpandCollapseColumn> 
            <Columns> 
                <telerik:GridBoundColumn DataField="Headline" HeaderText="Headline" SortExpression="Headline" 
                    UniqueName="Headline"
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="Content" HeaderText="Content" SortExpression="Content" 
                    UniqueName="Content"
                </telerik:GridBoundColumn> 
            </Columns> 
        </MasterTableView> 
    </telerik:RadGrid> 
</div> 
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:Sitefinity %>" 
    SelectCommand="SELECT Name, ID FROM [sf_lst_NamedList]"></asp:SqlDataSource> 
<asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:Sitefinity %>" 
    SelectCommand="SELECT sf_lst_ListItem.Headline, sf_lst_ListItem.[Content] FROM sf_lst_ListItem INNER JOIN sf_lst_NamedList  
                   ON sf_lst_ListItem.Application = sf_lst_NamedList.Application WHERE (sf_lst_ListItem.ParentID = @ID)"> 
    <SelectParameters> 
        <asp:ControlParameter Name="ID" PropertyName="SelectedValue" ControlID="RadComboBox1" 
            DbType="Guid" /> 
    </SelectParameters> 
</asp:SqlDataSource> 
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" DefaultLoadingPanelID="RadAjaxLoadingPanel1"
    <AjaxSettings> 
        <telerik:AjaxSetting AjaxControlID="RadComboBox1"
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="AjaxLoadingPanel1" /> 
            </UpdatedControls> 
        </telerik:AjaxSetting> 
    </AjaxSettings> 
</telerik:RadAjaxManager> 
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" /> 
 
Anyone have any ideas?  Stumped.
thanks.
tom






Joe
Top achievements
Rank 1
 answered on 04 Jul 2009
0 answers
95 views
Hi
      I am using Rad grid, i have one problem in applying widget skin, all of the other skins are working fine. I planed to use Widget skin for make a good look and feel for HeaderContextMenu. But once i add widget skin to my page the result is only first grid row item i could saw, remaining items are vanished. It occures only after i added Widget skin for my Menu. Here i am giving list of skins i using:

 <link href="Skins/Gray/Calendar.Gray.css" rel="stylesheet" type="text/css" />
    <link href="Skins/Gray/ComboBox.Gray.css" rel="stylesheet" type="text/css" />
    <link href="Skins/Gray/Input.Gray.css" rel="stylesheet" type="text/css" />
    <link href="Skins/Gray/Grid.Gray.css" rel="stylesheet" type="text/css" />
    <link href="Skins/Gray/Menu.Gray.css" rel="stylesheet" type="text/css" />
    <link href="Skins/Gray/Dock.Gray.css" rel="stylesheet" type="text/css" />
    <link href="Skins/Gray/Widgets.Gray.css" rel="stylesheet" type="text/css" />
      <link href="Skins/Gray/PanelBar.Gray.css" rel="stylesheet" type="text/css" />
       <link href="Skins/Gray/Window.Gray.css" rel="stylesheet" type="text/css" />

I am giving my Div styles like below: I placed grid inside of Div and set the width of Grid to 100% and gave the columns accrording to fixed width.
  <div style="margin-top: 0px; height: 200px; width: 1500px">



regards,
Appu
Appu
Top achievements
Rank 1
 asked on 04 Jul 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?