Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
90 views
I am trying to get aggregate totals to appear for each group that I have specified in my grid.  I get a grid footer total for each column but I don't get a group footer total.  The group footer does not appear at all for the specified groups.  I think I have set all required ShowGroupFooter and ShowGroupPanel settings.  I will attach the code for how I have setup my grid.  I was wondering if anyone can point out what I am doing wrong.

I am using version 2008.3.1105.20 of the Telerik.dll.

Thanks in advance for the help.

<%@ Page Title="" Language="VB" MasterPageFile="~/MasterPages/Main.master" AutoEventWireup="false" CodeFile="timeOffSummaryReport.aspx.vb" Inherits="Applications_Vacation_timeOffSummaryReport" %>  
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>  
 
<asp:Content ID="Content1" ContentPlaceHolderID="headSection" Runat="Server">  
</asp:Content>  
<asp:Content ID="Content2" ContentPlaceHolderID="actionbarSection" Runat="Server">  
</asp:Content>  
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" Runat="Server">  
 
<div>  
<telerik:RadDatePicker runat="server" ID="dtDateFrom"></telerik:RadDatePicker>  
<telerik:RadDatePicker runat="server" ID="dtDateTo"></telerik:RadDatePicker>  
<asp:Button runat="server" ID="btnGo" Text="Go" />  
</div>  
<div>  
<telerik:RadGrid ShowGroupPanel="True" AutoGenerateColumns="False"   
        ID="grdTimeOffSummary" AllowSorting="True" ShowFooter="True" runat="server"   
        GridLines="None">  
<HeaderContextMenu EnableTheming="True">  
<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>  
</HeaderContextMenu>  
 
    <MasterTableView ShowGroupFooter="true" ShowFooter="true" AllowMultiColumnSorting="true">  
<RowIndicatorColumn>  
<HeaderStyle Width="20px"></HeaderStyle>  
</RowIndicatorColumn>  
 
<ExpandCollapseColumn>  
<HeaderStyle Width="20px"></HeaderStyle>  
</ExpandCollapseColumn>  
            <Columns>  
                <telerik:GridBoundColumn DataField="theDate" HeaderText="Date"></telerik:GridBoundColumn>  
                <telerik:GridBoundColumn Aggregate="Sum" FooterText="Total Vacation:" DataField="vacation" HeaderText="Vacation"></telerik:GridBoundColumn>  
                <telerik:GridBoundColumn Aggregate="Sum" FooterText="Total Personal:" DataField="personal" HeaderText="Personal"></telerik:GridBoundColumn>  
                <telerik:GridBoundColumn Aggregate="Sum" FooterText="Total Sick:" DataField="sick" HeaderText="Sick"></telerik:GridBoundColumn>  
                <telerik:GridBoundColumn Aggregate="Sum" FooterText="Total Compassionate:" DataField="compassionate" HeaderText="Compassionate"></telerik:GridBoundColumn>  
                <telerik:GridBoundColumn Aggregate="Sum" FooterText="Total Leave of Absence:" DataField="leaveOfAbsence" HeaderText="Leave Of Absence"></telerik:GridBoundColumn>  
                <telerik:GridBoundColumn Aggregate="Sum" FooterText="Total Parental Leave:" DataField="parentalLeave" HeaderText="Parental Leave"></telerik:GridBoundColumn>  
                <telerik:GridBoundColumn Aggregate="Sum" FooterText="Total Bereavement:" DataField="bereavement" HeaderText="Bereavement"></telerik:GridBoundColumn>  
                <telerik:GridBoundColumn Aggregate="Sum" FooterText="Total Education:" DataField="education" HeaderText="Education"></telerik:GridBoundColumn>  
                <telerik:GridBoundColumn Aggregate="Sum" FooterText="Total Jury Duty:" DataField="juryDuty" HeaderText="Jury Duty"></telerik:GridBoundColumn>  
                <telerik:GridBoundColumn Aggregate="Sum" FooterText="Total Banked Hours:" DataField="bankedHours" HeaderText="Banked Hours"></telerik:GridBoundColumn>  
            </Columns>  
            <GroupByExpressions>  
                <telerik:GridGroupByExpression>  
                    <GroupByFields>  
                        <telerik:GridGroupByField FieldName="employeeName" />  
                    </GroupByFields>  
                    <SelectFields>  
                        <telerik:GridGroupByField FieldName="employeeName" HeaderText="Employee" />  
                    </SelectFields>  
                </telerik:GridGroupByExpression>  
            </GroupByExpressions>  
    </MasterTableView>  
    <ClientSettings AllowDragToGroup="true" />  
 
<FilterMenu EnableTheming="True">  
<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>  
</FilterMenu>  
</telerik:RadGrid>  
</div>  
 
</asp:Content> 
Pavlina
Telerik team
 answered on 01 Dec 2009
1 answer
209 views
After data binding with NeedDataSource, where is the appropriate place to toggle all items into edit mode and how?

Cheers,
Colin
Rosen
Telerik team
 answered on 01 Dec 2009
1 answer
321 views
I'm using the ComboBox to select from a list of Titles.  Some titles are quite long and look fine when word-wrapped in the dropdown section, but they don't fit in the single line input text tag.

Since it's an input text and not a textarea is there any way to allow a taller input field with word-wrapping?


Princy
Top achievements
Rank 2
 answered on 01 Dec 2009
3 answers
101 views
Hi,

In my radgrid , I ve a grid client select column and also have paging turned on for radgrid with page size to 10.

Right now, if I select the header checkbox, only 10 records on first page gets selected. I sthere anyway , I can do so that if I check the header checkbox, I can have all the items across pages selcted.
For eg if I've 24 items , in first page I've 10 items, 2nd page I've 10 items and on 3rd page ,I've 4 items. Is ther any way ,if I select the header on firstpage, I can selct all 24 items.

Pls help me with code.

Thanks,
ZR

Pavlina
Telerik team
 answered on 01 Dec 2009
1 answer
216 views
Hi,

I have a problem with $find("RadAjaxManager1") returning null.
This seems to happen because $find("RadAjaxManager1") is called at page load and apparently the javascript object for the RadAjaxManager is not yet created.
Using a function that calls itself after 300 milliseconds if $find("RadAjaxManager1") returns null until $find("RadAjaxManager1") does return the desired object helps.

Is there another way to force calls like $find("RadAjaxManager1") to wait until after the RadAjaxManager object is created?

Regards,

Mink
Shinu
Top achievements
Rank 2
 answered on 01 Dec 2009
1 answer
219 views
I have read the other posts talking about null values for binaryImages. None seem to work since I am programming in VB.
If my image from the DB is null I get the following:
Unable to cast object of type 'System.DBNull' to type 'System.Byte[]' â€œ

If I do end up having an image, no image displays. I am retrieving the information from a stored procedure. All other information comes through fine except the image.
Any help would be appreciated.

 

<telerik:RadListView ID="RadListSearchresults" runat="server" ItemPlaceholderID="PlaceHolder1" AllowPaging="true" Skin="Default" PageSize="8" >

 

 

<LayoutTemplate>

 

 

<div >

 

 

<asp:Panel ID="SResults" runat="server">

 

 

<div>

 

 

<asp:PlaceHolder ID="PlaceHolder1" runat="server"></asp:PlaceHolder>

 

 

</div>

 

 

<br />

 

 

</asp:Panel>

 

 

</div>

 

 

</LayoutTemplate>

 

 

<ItemTemplate>

 

 

<fieldset style="float: left; width: 280px;">

 

 

<legend>Item:

 

<%

#Eval("Nomenclature")%>

 

 

</legend>

 

 

<table cellpadding="0" cellspacing="0">

 

 

<tr>

 

 

<td>

 

 

<table cellpadding="0" cellspacing="0">

 

 

<tr>

 

 

<td style="width: 25%">

 

NSN:

 

</td>

 

 

<td style="width: 50%">

 

<%

#Eval("NSN")%>

 

 

</td>

 

 

</tr>

 

 

<tr>

 

 

<td>

 

MCN:

 

</td>

 

 

<td>

 

<%

#Eval("MCN")%>

 

 

</td>

 

 

</tr>

 

 

<tr>

 

 

<td>

 

Slamis:

 

</td>

 

 

<td>

 

<%

#Eval("Slamis")%>

 

 

</td>

 

 

</tr>

 

 

<tr>

 

 

<td>

 

LIN:

 

</td>

 

 

<td>

 

<%

#Eval("LIN")%>

 

 

</td>

 

 

</tr>

 

 

<tr>

 

 

<td>

 

 

<asp:Button ID="Button1" runat="server" Text="Edit" /></td>

 

 

 

</tr>

 

 

</table>

 

 

</td>

 

 

<td align="right" style="width: 25%;padding-left: 10px;">

 

 

<telerik:RadBinaryImage ID="RadBinaryImage1" runat="server" AlternateText="Photo Not Found" DataValue='<%#Eval("Img") %>'

 

 

ToolTip='<%#Eval("ImgName", "Photo of {0}") %>' Width="90px" Height="110px" AutoAdjustImageControlSize="false"

 

/>

 

</td>

 

 

</tr>

 

 

</table>

 

 

</fieldset>

 

 

</ItemTemplate>

 

 

</telerik:RadListView>

 

Iana Tsolova
Telerik team
 answered on 01 Dec 2009
4 answers
147 views
Hi All,

The smart tag does not work for me with any RADControl in VS 2008.

Please Suggest....!!!

Thanks.

Sebastian
Telerik team
 answered on 01 Dec 2009
2 answers
196 views
I have a radgrid inside a radajaxpanel in a user control. There is a link button in the command item template of the grid, upon clicking the button the grid should refresh with the new dataset assigned to the datasource property of the grid. But the radgrid doesnot refreshes even after the rebind command instead it keeps displaying the old dataset. I am using the Grid.Rebind() command in the ItemCommand event. The page containing the user control has ajaxmanager.Any help in this regard would be helpful.

Thanks
Govy.
Govy Rajappan
Top achievements
Rank 1
 answered on 01 Dec 2009
1 answer
121 views
Hell Friends,

I am usig RadGrid with GridClientSelectColumn mention below:
<telerik:GridClientSelectColumn UniqueName="SelectColumn" />

when loading a page that time i would like to select all row with that column checkbox should be checked, and i am using following code, but it will not work, what was the wrong with that code, reply me.

if (e.Item.ItemType == GridItemType.Item)
            {
                GridDataItem item = (GridDataItem)e.Item;
                CheckBox checkBox = (CheckBox)item["SelectColumn"].Controls[0];
                
                checkBox.Checked = true;
            }






Shinu
Top achievements
Rank 2
 answered on 01 Dec 2009
1 answer
107 views
Hello,

I've got this nested grid...

                            <telerik:GridTableView Name="gridMembershipComponents" runat="server"  CommandItemDisplay="Top" 
                                DataKeyNames="MembershipID, MembershipComponentID" DataSourceID="dsMembershipComponents"> 
                                <ParentTableRelation> 
                                    <telerik:GridRelationFields MasterKeyField="MembershipID" DetailKeyField="MembershipID" /> 
                                </ParentTableRelation> 
                                <Columns> 
                                    <telerik:GridDropDownColumn DataSourceID="dsAvailableMembershipComponents" ListTextField="Component" ListValueField="ComponentID" DataField="ComponentID" 
                                        HeaderText="Organization" SortExpression="Component" UniqueName="Component"> 
                                    </telerik:GridDropDownColumn> 
                                    <telerik:GridBoundColumn DataField="PaymentStatus" HeaderText="Status"  
                                        ReadOnly="True" SortExpression="PaymentStatus" UniqueName="PaymentStatus"> 
                                    </telerik:GridBoundColumn> 
                                </Columns> 
                            </telerik:GridTableView> 
                <asp:SqlDataSource ID="dsAvailableMembershipComponents" runat="server" 
                    ConnectionString="<%$ ... %>" 
                    SelectCommand="SELECT..."> 
                    <SelectParameters> 
                        <asp:Parameter Name="MembershipID" DefaultValue="0" Type="Int32" /> 
                    </SelectParameters> 
                </asp:SqlDataSource> 

The problem is that the MembershipID parameter doesn't seem to be getting a value. It should just get it from the grid - I thought...

Am I just totally missing something here? To give some quick context, I only copied in those parts... the parent grid has membershipID as the one and only key. I also deleted the sql statement and the connection string - I've seen in the code that the parameter is coming through as 0.

Any thoughts? I'm probably just mixed up on something totally basic...

Thanks,

Mike
Princy
Top achievements
Rank 2
 answered on 01 Dec 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?