Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
230 views
I have a radgrid where for some reason the columns that have NULL values are causing the radgrid column borders to disappear.  Here is an image of what is happening:

http://www.flyupload.com/get?fid=289027062

How can I prevent this from happening?

Thanks in advance for the help.

John.

John
Top achievements
Rank 1
 answered on 09 Mar 2009
4 answers
445 views
Hello
How can i select row (after rebind grid)  that seleted befor rebind.
The multi page of grid is true
Marty
Top achievements
Rank 1
 answered on 09 Mar 2009
3 answers
133 views
Hi, I have an issue.
I am using the radGrid, and when I try to insert or update a row with the insert/update command, nothing happens. The radGrid has both events assigned but they have never fired.

any idea?
Daniel
Telerik team
 answered on 09 Mar 2009
2 answers
232 views
Hi

I have an iFrame with RAD Editor in it.

I have a button outside the ifame.

How do i get text/html of the Editor while pressing the button?

I use alert(window.frames["iFramID"].getText()); but it doesn't seem to work.

What am i doing wrong?



izverg
Top achievements
Rank 1
 answered on 09 Mar 2009
0 answers
66 views
I can not find a way to have a day view grouped by resource, Is this currently implemented in the scheduler or do I need to code that into my app?  I like the multi-day view and it groups by resource, but I would need the other way as well.  I appreciate any suggestions.
Jody Harbour
Top achievements
Rank 1
 asked on 09 Mar 2009
1 answer
119 views
Dear All,

please to help me in this case by an example,,,

i have 3 radDockZone in the page
each radZone have some radDocks

when user move radDock from Zone to another Zone i need to save (for each radDock) the new zone , new index ,expand or collapsed and
open or close

so that each user change docks as he need and when visit the page next time,,, each dock position is as the user put,,, the user dont need every time visit the page to custom the docks as he need!!!

please to help me as soon as possible to store the docks location and other information (closed , collapsed ...etc) in cookies and how to load it when user visit the page next time

i know how to get the new zone and index but i can't do that

please to help me and thank you in advanced

Obi-Wan Kenobi
Top achievements
Rank 1
 answered on 09 Mar 2009
1 answer
115 views
Ok maybe I am a newbie at this but I downloaded the RadMenu and it is a .msi file and I cannot open it. I have windows installer 4.5 the newest version and I just can't figure it out. I tried opening my msiexec but it just comes up with all the commands to use. I even tried typing the commands in my command prompt... I have noooo clue what to do.. Can anyone help me?
Paul
Telerik team
 answered on 09 Mar 2009
3 answers
100 views
I have a RadGrid with self referencing hierarchy.  I would like to sum all of the values below a collapsible row.  I have done this with a grid before using the GroupByExpressions (with aggregate="sum").  However, with the Self-referencing structure, I cannot also add the GroupByExpressions.  Is there a way to sum the values in this type of grid?
Tsvetoslav
Telerik team
 answered on 09 Mar 2009
3 answers
208 views
I am wondering what control I use to get the ability to collapse some text. For example on this page: http://demos.telerik.com/aspnet-ajax/grid/examples/client/livedata/defaultcs.aspx if you search for the text "Example Source Code & Description", you can see that you can click it to collapse or expand the text below it. What control is that using and how do I style it similarly to that look?

Paul
Telerik team
 answered on 09 Mar 2009
1 answer
133 views

Requirements

RadControls version

2008.03.1314.20
.NET version

2.0
Visual Studio version

VS 2005
programming language C#
browser support

all browsers supported by RadControls


PROJECT DESCRIPTION
This project illustrates how to export grouped data. The Export button in the group header will export only the current group. The trick behind this is to  loop through all the grouped header  items  and their children and hide the items  which do not have  the same Group index as the clicked one. As a result, the current group is exported.

CS:
using System; 
using System.Data; 
using System.Configuration; 
using System.Web; 
using System.Web.Security; 
using System.Web.UI; 
using System.Web.UI.WebControls; 
using System.Web.UI.WebControls.WebParts; 
using System.Web.UI.HtmlControls; 
using Telerik.Web.UI; 
 
public partial class _Default : System.Web.UI.Page  
    protected void Page_Load(object sender, EventArgs e) 
    { 
 
    } 
    protected void RadGrid1_ItemCreated(object sender, Telerik.Web.UI.GridItemEventArgs e) 
    { 
         if (e.Item is GridGroupHeaderItem)  
         { 
           GridGroupHeaderItem item = e.Item as GridGroupHeaderItem; 
            LinkButton lnk = new LinkButton(); 
            lnk.ID = "lnkReservations"
             lnk.Text = "ExportGroup"
             lnk.Command += lnkReservations_Command;  
             item.DataCell.Controls.Add(lnk); 
     } 
      
    } 
    protected void RadGrid1_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e) 
    { 
         if (e.Item is GridGroupHeaderItem) 
         { 
         GridGroupHeaderItem item = e.Item as GridGroupHeaderItem; 
         LinkButton lnk = new LinkButton(); 
         lnk.ID = "lnkReservations"
         lnk.Text = "ExportGroup"
         item.DataCell.Controls.Add(lnk); 
       } 
    } 
  private void lnkReservations_Command(object sender, CommandEventArgs e) 
  { 
     LinkButton lnkReservations = (LinkButton)sender; 
     GridGroupHeaderItem currentHeaderitm = (GridGroupHeaderItem)lnkReservations.NamingContainer; 
     foreach (GridGroupHeaderItem headerItem in RadGrid1.MasterTableView.GetItems(GridItemType.GroupHeader)) 
     { 
         if (headerItem.GroupIndex != currentHeaderitm.GroupIndex) 
         { 
             GridItem[] children = headerItem.GetChildItems(); 
             foreach (GridItem child in children)  
             { 
                 GridDataItem dataItem = child as GridDataItem; 
                 dataItem.Visible = false
             } 
             headerItem.Visible = false
         } 
     } 
     RadGrid1.ExportSettings.OpenInNewWindow = true
     RadGrid1.ExportSettings.ExportOnlyData = true
     RadGrid1.MasterTableView.ExportToPdf(); 
  } 

ASPX:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> 
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
 
<!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"
<head runat="server"
    <title>Untitled Page</title> 
</head> 
<body> 
    <form id="form1" runat="server"
        <asp:ScriptManager ID="ScriptManager1" runat="server" /> 
        <div> 
            <telerik:RadGrid ID="RadGrid1" runat="server" Skin="Hay" DataSourceID="SqlDataSource1" GridLines="None" OnItemCreated="RadGrid1_ItemCreated" OnItemDataBound="RadGrid1_ItemDataBound"
                <HeaderContextMenu> 
                    <CollapseAnimation Duration="200" Type="OutQuint" /> 
                </HeaderContextMenu> 
                <MasterTableView AutoGenerateColumns="False" DataSourceID="SqlDataSource1"
                     <GroupByExpressions> 
                       <telerik:GridGroupByExpression> 
                         <GroupByFields> 
                           <telerik:GridGroupByField FieldName="Country" FieldAlias="Country"  /> 
                         </GroupByFields> 
                         <SelectFields> 
                          <telerik:GridGroupByField  FieldName="Country" FieldAlias="Country" /> 
                         </SelectFields> 
                       </telerik:GridGroupByExpression> 
                     </GroupByExpressions> 
                    <Columns> 
                        <telerik:GridBoundColumn DataField="City" HeaderText="City" SortExpression="City" 
                            UniqueName="City"
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn DataField="EmployeeID" DataType="System.Int32" HeaderText="EmployeeID" 
                            SortExpression="EmployeeID" UniqueName="EmployeeID"
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn DataField="LastName" HeaderText="LastName" SortExpression="LastName" 
                            UniqueName="LastName"
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn DataField="FirstName" HeaderText="FirstName" SortExpression="FirstName" 
                            UniqueName="FirstName"
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn DataField="Country" HeaderText="Country" SortExpression="Country" 
                            UniqueName="Country"
                        </telerik:GridBoundColumn> 
                    </Columns> 
                </MasterTableView> 
                <FilterMenu> 
                    <CollapseAnimation Duration="200" Type="OutQuint" /> 
                </FilterMenu> 
            </telerik:RadGrid> 
            <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:NorthWindConnectionString %>" 
                SelectCommand="SELECT [City], [EmployeeID], [LastName], [FirstName], [Country] FROM [Employees]"
            </asp:SqlDataSource> 
        </div> 
    </form> 
</body> 
</html> 
 


Yavor
Telerik team
 answered on 09 Mar 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?