Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
113 views
Hi All,

I have a RadGrid on page, i did not assigned any properties to it, just simply i places a grid on page as below

and generating a a datatable dynamically and binding it to grid,

now my issue is, i want to provide export to excel option on command iten tab on top.

how can i achieve this, please help me.

<telerik:RadGrid ID="RadGrid1" runat="server" > 
</telerik:RadGrid> 
Shinu
Top achievements
Rank 2
 answered on 15 Mar 2010
1 answer
60 views
hi
how can i edit/delete/addnew  items in radgrid control?
Shinu
Top achievements
Rank 2
 answered on 15 Mar 2010
2 answers
116 views
Hi,

I have been evaluating the scheduler component on the website, I am yet to download it and test it. I will be using it to schedule 25 mechanics, there appointments will last between half a day and 2 weeks. I imagine the view would be grouped by resource vertically (like in the attachment).

The one stumbling block I can see is one appointment cannot be scheduled on non consecutive days. Meaning I want the appointment "Training Session 1" to be on the 8th and the 10th, as seen in the attached file. I cannot do it with one appointment, the job will need multiple appointments, correct?

If it does need to multiple appointments for the one job, is it possible to setup a function that would give the users the ability to copy an appointment though a drag and drop?

Cheers,
Grant
G C
Top achievements
Rank 1
 answered on 15 Mar 2010
2 answers
69 views
Hello,


So this is the first time I download and test telerik ASP.NET AJAX. Before I even start to use or run my website that I created using C# I get the attached error before the run time.

I have attached a zip file created by the problem step recorder in windows7, so you can see the images at the buttom of the generated file.

http://zipmyfiles.net/uploads/100308102558-44545.zip



you can notice I can see the calender during the run time but not before that.

I'm using Visual Studio 2008 Academic.

Any idea why I'm getting this error ?

Thanks,
Musab
Musab Alghzawi
Top achievements
Rank 1
 answered on 14 Mar 2010
0 answers
81 views
Hey everyone,

I am a little new to your product, however, I am trying to use one of your controls in place of the above mentioned class. The problem I am having is there is some 3rd party code that looks like this...

public void PopulateStoreMenu(Menu ctrlMenu); 

As you can tell it adds all the information to the Menu object. Now assuming I don't have access to the source code is there a way to...

A.) Use a control that extends the Menu class

or

B.) Bind data to the control some other way

I was thinking maybe I could use Linq on the Menu and bind it to that, however, I am a Linq newbie so advice would need to be given.

Thanks in advance guys!

Jackie

P.S. I posted this here because I wasn't sure which control to post it under :-)


Jackie Gleason
Top achievements
Rank 1
 asked on 14 Mar 2010
2 answers
169 views
Hi,

I'm using your griddropdowncolumn very nicelly, but realized there's a problem with the filtered field it uses by default.
Facts:
  • have 2 tables related in grid
  • one table named Table  with these columns IDTable, TableDesc, IDForeign
  • my foreign table is called Foreign and has IDForeign and ForeignDesc columns
  • columns in Grid are: TableDesc (GridBoundColumn) and ForeignDesc(GridDropDownColumn)
  • grid alows filtering
  • Filter works fine in column TableDesc but NOT in ForeignDesc

If you insert data in both tables and try to filter by any content in the ForeignDesc column it doesn't return anything, it only works if you use the IDForeign content in the filter. It should be possible to use the ForeignDesc content for filtering the data, no?
What am I doing wrong? Here's what I have.
 

<telerik:RadGrid ID="rdTableForeign" runat="server" DataSourceID="sdsTable" AllowPaging="True" 
        ShowFooter="True" AutoGenerateColumns="False" AllowSorting="True" EnableViewState="true" 
        AllowFilteringByColumn="True" AllowAutomaticInserts="False" AllowAutomaticUpdates="True">  
        <GroupingSettings CaseSensitive="false" /> 
        <MasterTableView DataKeyNames="IDTable" AutoGenerateColumns="false" AllowMultiColumnSorting="True" 
            EnableViewState="true" EnableColumnsViewState="true">  
            <PagerStyle Mode="NextPrevNumericAndAdvanced" AlwaysVisible="true" /> 
            <Columns> 
                <telerik:GridEditCommandColumn UniqueName="EditCommandColumn" HeaderText="Edit" ButtonType="ImageButton">  
                    <ItemStyle Width="50px" /> 
                </telerik:GridEditCommandColumn> 
                <telerik:GridBoundColumn DataField="TableDesc" HeaderText="Description" UniqueName="TableDesc" DataType="System.String">  
                </telerik:GridBoundColumn> 
                <telerik:GridDropDownColumn DataSourceID="dsForeign" ListTextField="ForeignDesc" 
                    AllowFiltering="true" ListValueField="IDForeign" UniqueName="GridDropDownColumn" 
                    SortExpression="ForeignDesc" HeaderText="Foreign" DropDownControlType="RadComboBox" 
                    DataField="IDForeign" DataType="System.String">  
                </telerik:GridDropDownColumn> 
            </Columns> 
            <EditFormSettings> 
                <EditColumn ButtonType="ImageButton" /> 
            </EditFormSettings> 
        </MasterTableView> 
        <ClientSettings> 
            <Resizing AllowColumnResize="true" /> 
        </ClientSettings> 
    </telerik:RadGrid> 
    <asp:SqlDataSource ID="sdsTable" ConnectionString="<%$ ConnectionStrings:MyConnection %>" 
        SelectCommand="SELECT * FROM [Table]" runat="server" UpdateCommand="wcspTableUpdate" 
        UpdateCommandType="StoredProcedure">  
        <UpdateParameters> 
            <asp:Parameter Name="IDTable" Type="Int32" /> 
            <asp:Parameter Name="TableDesc" Type="Int32" /> 
        </UpdateParameters> 
    </asp:SqlDataSource> 
    <asp:SqlDataSource runat="server" ID="dsForeign" ConnectionString="<%$ ConnectionStrings:MyConnection %>" 
        SelectCommand="SELECT [IDForeign], [ForeignDesc] FROM [Foreign]"></asp:SqlDataSource> 

 

 

 

Thanks for any help!

Tauz

Tauz
Top achievements
Rank 1
 answered on 13 Mar 2010
1 answer
175 views
Hello,

I have a really strange problem.

I'm working with the Q1 2010.

I want to use the RadListView as a list of news. With a pagesize of 1 and the newest post first. So i put in my asp:EntityDataSource :OrderBy="it.Date DESC"

<telerik:RadListView ID="RadListView1" runat="server" DataKeyNames="IdPost"  
        DataSourceID="EntityDataSourceNews" AllowPaging="True" ItemPlaceholderID="itemPlaceholder"  InsertItemPosition="None" 
        OnItemCommand="RadListView1_ItemCommand" PageSize="1"> 
        <LayoutTemplate> 
             
            <asp:PlaceHolder ID="itemPlaceholder" runat="server" /> 
             
            <br /> 
 
            <telerik:RadDataPager ID="RadDataPager1" runat="server" PageSize="1"> 
                <Fields> 
                    <telerik:RadDataPagerSliderField /> 
                </Fields> 
            </telerik:RadDataPager> 
 
            <br /> 
 
            <asp:Button ID="btnInitInsert" runat="server" Text="Ajouter une news" onclick="btnInitInsert_Click" /> 
 
        </LayoutTemplate> 
<ItemTemplate> 
            <div id="Historique" class="ui-widget-content ui-corner-all">  
                <h2 class="ui-widget-header ui-corner-all"> 
                    <div style="float:right; font-size:10px"> 
                        <img src="/Images/famfamfam/date.png" /><em><%# Eval("Date") %></em> 
                    </div> 
                    <%# Eval("Titre") %> 
                </h2>  
                <p class="borbot"> 
                    <%# Eval("PostContent") %> 
                </p> 
                 
                <div style="float:right; margin-right:5px"> 
                    <asp:ImageButton ID="DeleteButton" runat="server" CommandName="Delete"  
                        CssClass="rlvBDel" Text="Supprimer" ImageUrl="~/Images/famfamfam/Delete.gif" /> 
                </div> 
                <asp:ImageButton ID="EditButton" runat="server" CommandName="Edit"  
                    CssClass="rlvBEdit" Text="Editer" ImageUrl="~/Images/famfamfam/Edit.gif" /> 
                <br /> 
            </div> 
        </ItemTemplate> 
</telerik:RadListView> 
 
<asp:EntityDataSource ID="EntityDataSourceNews" runat="server"  
        ConnectionString="name=PortailEntrepriseEntities"  
        DefaultContainerName="PortailEntrepriseEntities" EnableDelete="True"  
        EnableFlattening="False" EnableInsert="True" EnableUpdate="True"  
        EntitySetName="Posts" OnInserting="EntityDataSourceNews_Inserting" 
        OrderBy="it.Date DESC"> 
    </asp:EntityDataSource> 
 


The thing is that the first item which appear, is the oldest one ! (So it's not working)
But, if i go to the page 2, then come back to the page 1 it's the newest one !

I mist something ? 

Thank you
Jean-Yves
Top achievements
Rank 1
 answered on 13 Mar 2010
1 answer
112 views
I am using a RadGrid with an embedded RadComboBox, using the Default skin. I'm tight for space so I overrode the styles for the RadGrid to reclaim some space as below:

div.Ironwood.RadGrid_Default .rgFooter td 
{ 
    border-bottom:0px; 
    padding-left:4px!important; 
    padding-right:4px!important; 
} 
div.ManagersInTheNews.RadGrid_Default .rgRow, 
div.ManagersInTheNews.RadGrid_Default .rgAltRow, 
div.ManagersInTheNews.RadGrid_Default .rgRow td, 
div.ManagersInTheNews.RadGrid_Default .rgAltRow td 
{ 
    font-family:Arial; 
    font-size:11px; 
    border-bottom:0px!important; 
    vertical-align:middle!important; 
    padding-left:4px!important; 
    padding-right:4px!important; 
} 
 

I am also adding the RadComboBox to the bottom row (added programmatically). Without the overrides for the paddings, it appears normal, however with the overrides, it appears as in the attached image. Is there something I can do to get the background image to align better?

Thanks, Steve


robertw102
Top achievements
Rank 1
 answered on 13 Mar 2010
1 answer
155 views
Hi

I had the following Server Error after including a RadAjaxManager to a Webpage:

The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).

In many forums they said to be sure to remove all code blocks (<% %>) in the Head-Section of the Page.
Or delete the runat="server" from the Head-Section.

Noting helped in my case. But the ting with the code blocks helped me find it out.
It had nothing to do with the Head-Section of the Page or the Master-Page.

I simply had to remove the code blocks IN my page.

That's the page-code that produces the Error:
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Default.aspx.vb" Inherits="CollectionModifyProblem._Default" %> 
 
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %> 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
 
<html xmlns="http://www.w3.org/1999/xhtml" > 
 
<head runat="server">  
 
<title>Untitled Page</title> 
 
</head> 
 
<body> 
 
<form id="form1" runat="server">  
 
 
<telerik:RadScriptManager ID="RadScriptManager1" runat="server">  
 
</telerik:RadScriptManager> 
 
 
<div> 
 
 
<%="Select a Brand (norally I use a var here):"%> 
 
<telerik:RadListBox ID="lstbBrands" runat="server"></telerik:RadListBox> 
 
 
<%="Select a Type: (norally I use a var here)"%> 
 
<telerik:RadListBox ID="lstbCarTypes" runat="server"></telerik:RadListBox> 
 
 
</div> 
 
 
<telerik:RadAjaxManager runat="server">  
 
<AjaxSettings> 
 
<telerik:AjaxSetting AjaxControlID="lstbBrands">  
 
<UpdatedControls> 
 
<telerik:AjaxUpdatedControl ControlID="lstbCarTypes" /> 
 
</UpdatedControls> 
 
</telerik:AjaxSetting> 
 
</AjaxSettings> 
 
</telerik:RadAjaxManager> 
 
 
</form> 
 
 
</body> 
 
</html> 

After a while I replaced the two code-blocks with labels:

<%="Select a Brand (norally I use a var here):"%> 
to  
<asp:Label runat="server" ID="lblTitle_Brands">Select a Brand (noraly I fill this by code):</asp:Label> 

and

<%="Select a Type (norally I use a var here):"%> 
to  
<asp:Label runat="server" ID="lblTitle_Type">Select a Type (noraly I fill this by code):</asp:Label> 

That's all you have to do!

Maybe this will help also others!

Freundliche Grüsse
Marcel

robertw102
Top achievements
Rank 1
 answered on 13 Mar 2010
2 answers
93 views
Hi

I am trying to move away from using table layout in my web applications. I am busy implementing the "Grid/Form Template Edit Form" Grid example and noticed that the FormTemplate is using a table layout. Is this the recommended way or is this for illustration purpose only? What would be the correct way to implement the FormTemplate?
 
Thank You 
Fred  
Fred Mare
Top achievements
Rank 1
 answered on 13 Mar 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?