Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
400 views
Hi,

Is it possible to export a radgrid with all the detail tables?  I can export the grid to excel but it wont take the detail tables with it.

I have a header row then 3 detail tables at the same level

thanks

Paul
Top achievements
Rank 1
 answered on 14 Aug 2008
2 answers
450 views

My partner and I have been struggling for a long while with this problem.  Based off of the code supplied by Telerik, I have two custom input forms for a RadGrid, one for inserts, one for edits.  When the code gets to pulling the DataKeyValues from the grid of old values, the code always throws an ArgumentOutOfBoundsException and does not pick up any values.  Seems like they're there before the update, then they disappear at update time.

Inserts work fine, but deleting and updating are breaking the same way.

Here's the source: 

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> 
 
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %> 
 
<%@ 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" /> 
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">  
            <ContentTemplate> 
                <asp:Panel ID="TitlePanel" runat="server" Height="23px" Width="825px" style="background-color:Black;color:GrayText; vertical-align:middle;font-size:10pt;font-family:Arial;">  
                    <asp:ImageButton ID="ImageButton1" ImageUrl="images/minussign.gif" runat="server" Height="20px" Width="25px" AccessKey="1" style="position:relative;top:2px;" /> 
                    <asp:Label ID="TitleLabel" runat="server" style="position:relative;top:-4px;"></asp:Label> 
                </asp:Panel> 
                <asp:Panel ID="ContentPanel" runat="server" style="background-color:Gray;width:825px;">                  
                    <telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="True" AutoGenerateEditColumn="True" GridLines="None" OnNeedDataSource="RadGrid1_NeedDataSource" OnDeleteCommand="RadGrid1_DeleteCommand" OnInsertCommand="RadGrid1_InsertCommand" OnItemCommand="RadGrid1_ItemCommand" OnUpdateCommand="RadGrid1_UpdateCommand" Width="825px" AllowAutomaticDeletes="True" AllowAutomaticInserts="True" AllowAutomaticUpdates="True" AutoGenerateColumns="False" AutoGenerateDeleteColumn="True">  
                        <MasterTableView CommandItemDisplay="Top">  
                            <Columns> 
                              <telerik:GridBoundColumn UniqueName="SID" HeaderText="SID" DataField="SID">                              
                              </telerik:GridBoundColumn> 
                              <telerik:GridBoundColumn UniqueName="Title" HeaderText="Title" DataField="TITLE">                              
                              </telerik:GridBoundColumn> 
                              <telerik:GridBoundColumn UniqueName="Name" HeaderText="Name" DataField="NAME">                              
                              </telerik:GridBoundColumn> 
                              <telerik:GridBoundColumn UniqueName="Product" HeaderText="Product" DataField="PRODUCT">                              
                              </telerik:GridBoundColumn> 
                              <telerik:GridBoundColumn UniqueName="SubmitDate" HeaderText="Submit Date" DataField="SUBMITDATE">                              
                              </telerik:GridBoundColumn> 
                              <telerik:GridBoundColumn UniqueName="Story" HeaderText="Story" DataField="STORY">                              
                              </telerik:GridBoundColumn> 
                            </Columns> 
                            <RowIndicatorColumn Visible="False">  
                                <HeaderStyle Width="20px" /> 
                            </RowIndicatorColumn> 
                            <ExpandCollapseColumn Resizable="False" Visible="False">  
                                <HeaderStyle Width="20px" /> 
                            </ExpandCollapseColumn> 
                            <EditFormSettings EditFormType="WebUserControl" UserControlName="EditForm.ascx">  
                                <PopUpSettings ScrollBars="None" /> 
                            </EditFormSettings> 
                        </MasterTableView> 
                    </telerik:RadGrid> 
                </asp:Panel> 
                <cc1:CollapsiblePanelExtender ID="CollapseEx" runat="server" CollapseControlID="TitlePanel" CollapsedImage="images/plussign.gif" ExpandControlID="TitlePanel" ExpandedImage="images/minussign.gif" TextLabelID="TitleLabel" TargetControlID="ContentPanel" ImageControlID="ImageButton1" CollapsedText="Click or press Alt-1 to expand<br />" ExpandedText="Click or press Alt-1 to collapse<br />">  
                </cc1:CollapsiblePanelExtender> 
            </ContentTemplate> 
        </asp:UpdatePanel> 
        <br /> 
        &nbsp;  
        <div> 
        </div> 
    </form> 
</body> 
</html> 
 


using System;  
using System.Data;  
using System.Collections;  
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 System.Data.SqlClient;  
using System.Data.OracleClient;  
 
using Telerik.Web.UI;  
 
public partial class _Default : System.Web.UI.Page   
{  
    OracleConnection ociConn = new OracleConnection("Data Source=localhost;Persist Security Info=True;User ID=system;Password=testdb;Unicode=True");  
 
    protected void RadGrid1_PreRender(object sender, System.EventArgs e)  
    {  
        if (!this.IsPostBack)  
        {  
            this.RadGrid1.MasterTableView.Items[1].Edit = true;  
            this.RadGrid1.MasterTableView.Rebind();  
        }  
    }  
 
 
    protected DataTable GetDataTable(string query) {  
 
        ociConn.Open();  
        OracleCommand cmd = new OracleCommand("Select SID, Title, Name, Product, SubmitDate, Story from Stories", ociConn);  
        DataTable temp = new DataTable();  
        OracleDataAdapter da = new OracleDataAdapter(cmd);  
 
        try {  
            da.Fill(temp);  
        }  
        finally {  
            ociConn.Close();  
        }  
 
        return temp;  
    }  
 
    private DataTable Stories  
    {  
        get 
        {  
            object obj = this.Session["Stories"];  
            if ((!(obj == null)))  
            {  
                return ((DataTable)(obj));  
            }  
            DataTable myDataTable = new DataTable();  
            myDataTable = GetDataTable("");  
            this.Session["Stories"] = myDataTable;  
            return myDataTable;  
        }  
    }  
 
 
    protected void  Page_Load(object sender, EventArgs e)  
    {  
 
    }  
 
 
    protected void RadGrid1_NeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e)  
    {  
 
        RadGrid1.DataSource = this.Stories;  
    }  
 
    protected void RadGrid1_InsertCommand(object source, GridCommandEventArgs e)  
    {  
        GridEditableItem editedItem = e.Item as GridEditableItem;  
        UserControl userControl = (UserControl)e.Item.FindControl(GridEditFormItem.EditFormUserControlID);  
 
        //Create new row in the DataSource          
        DataRow newRow = this.Stories.NewRow();  
 
        //Insert new values  
        Hashtable newValues = new Hashtable();  
 
        newValues["SID"] = Int32.Parse((userControl.FindControl("TextBox1"as TextBox).Text);  
        //newValues["Region"] = (userControl.FindControl("TextBox3") as TextBox).Text;  
        newValues["Title"] = (userControl.FindControl("TextBox2"as TextBox).Text;  
        newValues["Name"] = (userControl.FindControl("TextBox3"as TextBox).Text;  
        newValues["Product"] = "";  
        newValues["SubmitDate"] = DateTime.Now;  
        newValues["Story"] = "";  
 
        //newValues["City"] = (userControl.FindControl("TextBox2") as TextBox).Text;  
        //newValues["Region"] = (userControl.FindControl("TextBox3") as TextBox).Text;  
          
        try 
        {  
            foreach (DictionaryEntry entry in newValues)  
            {  
                newRow[(string)entry.Key] = entry.Value;  
            }  
            this.Stories.Rows.Add(newRow);  
            this.Stories.AcceptChanges();  
        }  
        catch (Exception ex)  
        {  
            RadGrid1.Controls.Add(new LiteralControl("Unable to update/insert Employees. Reason: " + ex.Message));  
            e.Canceled = true;  
        }  
    }  
 
    protected void RadGrid1_UpdateCommand(object source, GridCommandEventArgs e)  
    {  
 
        GridEditableItem editedItem = e.Item as GridEditableItem;  
 
        UserControl userControl = (UserControl)e.Item.FindControl(GridEditFormItem.EditFormUserControlID);  
 
        //Prepare new row to add it in the DataSource  
 
        DataRow[] changedRows = this.Stories.Select("SID = " + editedItem.OwnerTableView.DataKeyValues[editedItem.ItemIndex]["SID"]);  
        if (changedRows.Length != 1)  
        {  
            RadGrid1.Controls.Add(new LiteralControl("Unable to locate the Story for updating."));  
            e.Canceled = true;  
            return;  
        }  
 
        //Update new values  
        Hashtable newValues = new Hashtable();  
 
        newValues["SID"] = (userControl.FindControl("TextBox1"as TextBox).Text;  
        newValues["Title"] = (userControl.FindControl("TextBox2"as TextBox).Text;  
        newValues["Name"] = (userControl.FindControl("TextBox3"as TextBox).Text;  
        newValues["Product"] = (userControl.FindControl("TextBox4"as TextBox).Text;  
        newValues["SubmitDate"] = (userControl.FindControl("TextBox5"as TextBox).Text;  
        newValues["Story"] = (userControl.FindControl("TextBox6"as DropDownList).Text;  
 
        changedRows[0].BeginEdit();  
        try 
        {  
            foreach (DictionaryEntry entry in newValues)  
            {  
                changedRows[0][(string)entry.Key] = entry.Value;  
            }  
            changedRows[0].EndEdit();  
            this.Stories.AcceptChanges();  
        }  
        catch (Exception ex)  
        {  
            changedRows[0].CancelEdit();  
            RadGrid1.Controls.Add(new LiteralControl("Unable to update Stories. Reason: " + ex.Message));  
            e.Canceled = true;  
        }  
    }  
 
 
 
    protected void RadGrid1_DeleteCommand(object source, GridCommandEventArgs e)  
    {  
        string ID = (e.Item as GridDataItem).OwnerTableView.DataKeyValues[e.Item.ItemIndex]["SID"].ToString();  
        DataTable employeeTable = this.Stories;  
        if (employeeTable.Rows.Find(ID) != null)  
        {  
            employeeTable.Rows.Find(ID).Delete();  
            employeeTable.AcceptChanges();  
        }  
    }  
 
 
    protected void RadGrid1_ItemCommand(object source, GridCommandEventArgs e)  
    {  
        if (e.CommandName == RadGrid.InitInsertCommandName)  
        {  
 
            e.Canceled = true;  
            RadGrid1.EditIndexes.Clear();  
 
            e.Item.OwnerTableView.EditFormSettings.UserControlName = "AddForm.ascx";  
            e.Item.OwnerTableView.InsertItem();  
        }  
        else if (e.CommandName == RadGrid.EditCommandName)  
        {  
            e.Item.OwnerTableView.IsItemInserted = false;  
            e.Item.OwnerTableView.EditFormSettings.UserControlName = "EditForm.ascx";  
        }  
    }  
Adam
Top achievements
Rank 1
 answered on 14 Aug 2008
1 answer
80 views
I'm creating my grid programmatically at OnInit event, I was setting the export options for Excel, CSV and PDF.

This is my code for CSV export:
  protected void ibtExportCSV_Click(object sender, ImageClickEventArgs e) 
  { 
    RadGrid grid = (RadGrid)Place_Grilla.FindControl("Grilla"); 
    grid.Columns[0].Display = false
    grid.Columns[1].Display = false
    //grid.ExportSettings.Csv.ColumnDelimiter = GridCsvDelimiter.Tab; 
    grid.ExportSettings.Csv.RowDelimiter = GridCsvDelimiter.NewLine; 
    grid.ExportSettings.IgnorePaging = true
    grid.ExportSettings.ExportOnlyData = true
    grid.ExportSettings.OpenInNewWindow = true
    grid.MasterTableView.ExportToCSV(); 
  } 
If I set the ColumnDelimiter to Tab, the result file will be a Excel File (.xls), but if I comment that line, the result file the expected .csv

Best Regards,
Sebastián Reale
Missing User
 answered on 14 Aug 2008
4 answers
229 views

We've been working with the Telerik controls for a while now, without all that much difficulty, but the Splitter really seems to not be working as desired.  Our client, as most would, want their site to display at any resolution in IE6, and there will be multiple pages where the body content will surpass the normal screen bounds due to very large RadGrids.

Anyways, we have an expanding RadSplitter sandwiched between a header and a footer, with no scrolling for the actual RadPanes.  So far, this set up has worked well until now.  Testing the site in FF3 presents us with a nice layout that extends the height of the content which it should.  Also, anytime we collapse or expand any Panelbars within the RadPane, the content page will expand or collapse, and the splitter, and thereby the window, will expand or shrink.

In IE6 however, the Splitter looks as though it calculates the correct height on INIT, but then shrinks to the same height on every page, regardless of how much content.  Expanding or collapsing the Panelbars only reveals content in this small 'view'; it does not actually resize the RadPane at all.  

I know there are inconsistencies between browsers, but juggling this large of a difference is a pain and very draining to diagnose.  If there is a way to cancel that after Init resize, I imagine it would work.

<%--  
  $Date$  
  $Author$  
  $Revision$  
     
  (C)2008 CGI, Inc.  
    
  THIS PROGRAM IS PROPRIETARY AND IS THE PROPERTY OF: CGI, INC  
 
  COPYING OR USE OF THIS PROGRAM, EXCEPT AS SPECIFICALLY PROVIDED FOR IN A  
  LICENSE AGREEMENT CONTROLLING SUCH USE, IS PROHIBITED.  
 
  This program is designated as CONFIDENTIAL and is a trade secret under  
  applicable laws.  Unauthorized copying or disclosure is prohibited and is  
  subject to criminal and civil penalties, including fines and imprisonment.  
--%> 
 
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="ReachMasterPage" %> 
<%@ 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" id="HeadMaster">  
    <title></title>  
    <link href="Styles/StyleSheet.css" rel="stylesheet" type="text/css" /> 
</head> 
<body> 
    <form id="form1" runat="server" method="post">  
      <asp:ScriptManager ID="ScriptManager1" runat="server">  
      </asp:ScriptManager> 
      <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">  
      </telerik:RadAjaxManager> 
      <div id="master_page">  
        <div id="master_header_top">  
          <div id="master_icon">  
            <asp:Image ID="imgCgiLogo" runat="server" ImageUrl="~/Images/cgilogo.gif" /> 
          </div> 
          <div id="master_login" style="height: 22px">  
            <span style="font-size: 11pt; font-weight:bold; color: red; font-family: 'Times New Roman';">Welcome Paul!</span>&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="font-size: 8pt; color: blue; font-family: 'Times New Roman'; text-decoration: underline">Logout</span> 
          </div> 
          <div id="master_header_right">  
            <asp:SiteMapPath ID="SiteMapPath1" runat="server" CssClass="Breadcrumb" PathSeparator=" : " > 
                        <PathSeparatorStyle Font-Bold="True" ForeColor="#FFFFFF" /> 
                        <CurrentNodeStyle ForeColor="#FFFFFF" /> 
                        <NodeStyle Font-Bold="True" ForeColor="#FFFFFF" CssClass="Breadcrumb" /> 
                        <RootNodeStyle Font-Bold="True" ForeColor="#FFFFFF" CssClass="Breadcrumb" /> 
            </asp:SiteMapPath> 
          </div> 
        </div> 
        <div id="master_middle">  
          <telerik:RadSplitter id="RadSplitter1" runat="server" Height="100%" Width="1500px" VisibleDuringInit="false" ResizeMode="EndPane" ResizeWithParentPane="true" ResizeWithBrowserWindow="true" Skin="Office2007">              
            <telerik:RadPane id="Radpane1" runat="server" Width="22px" Scrolling="None" Height="800px">  
                <telerik:RadSlidingZone id="SlidingZone1" runat="server" width="22px" DockedPaneId="Nav" ExpandedPaneId="Nav" SlideDirection="Right">  
                    <telerik:RadSlidingPane id="Nav" Height="800px" title="Navigation" runat="server" Width="173px" Scrolling="Both" CssClass="slideContainer">  
                      <telerik:RadAjaxPanel ID="NavRadAjaxPanel" runat="server">  
                          <div> 
                            <div style="float:right; padding-right:2px;">  
                              <asp:LinkButton ID="lnkbtnExpandAll" runat="server" CssClass="TreeNodeLinkButton" OnClick="lnkbtnExpandAll_Click">Expand All</asp:LinkButton> 
                              <asp:LinkButton ID="lnkbtnCollapseAll" runat="server" CssClass="TreeNodeLinkButton" OnClick="lnkbtnCollapseAll_Click">Collapse All</asp:LinkButton> 
                            </div> 
                            <div style="clear:both; overflow:hidden;">  
                              <telerik:RadTreeView ID="RadTreeView1" runat="server" DataSourceID="SiteMapDS" DataFieldID="Title" DataNavigateUrlField="Url" DataTextField="Title" SingleExpandPath="False" CssClass="TreeNode" Width="100%" style="white-space:normal;" BackColor="White" Font-Size="8pt" Skin="Outlook">                        
                                <CollapseAnimation Duration="100" Type="OutQuint" /> 
                                <ExpandAnimation Duration="100" /> 
                              </telerik:RadTreeView> 
                            </div> 
                          </div> 
                      </telerik:RadAjaxPanel>   
                    </telerik:RadSlidingPane>                         
                </telerik:RadSlidingZone> 
            </telerik:RadPane> 
            <telerik:RadSplitBar id="Radsplitbar3" runat="server" CollapseMode="Forward" /> 
            <telerik:RadPane ID="MasterPageRadContentPane" runat="server" MinHeight="1000" MinWidth="800" Scrolling="None">                    
              <div id="master_contenttitle">  
                <asp:Label ID="lblContentTitle" runat="server" Font-Bold="True" Font-Size="12pt"></asp:Label> 
              </div> 
              <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">    
              </asp:ContentPlaceHolder>      
            </telerik:RadPane>               
          </telerik:RadSplitter> 
          </div>   
          <div id="master_footer">  
            Copyright CGI 2008  
          </div>            
      </div> 
      <asp:SiteMapDataSource ID="SiteMapDS" runat="server" SiteMapProvider="REACHSiteMap" /> 
    </form> 
</body> 
</html> 

Style Sheet
body, p, h1, h2, h3, h4, table  
{  
    font-size:10pt;  
    font-family:TahomaArial;  
    margin:0;  
    padding:0;  
    border:none;  
}  
 
body  
{  
    /*background: #B4B4B4 url(images/body_bg.gif) repeat left top;*/ 
    height:100%;  
    width:100%;  
    font-size:10pt;  
    font-family:Arial;  
}  
 
#master_page  
{  
    height:100%;      
}  
 
/* Header Layout */ 
#master_header_top  
{  
    background-color#110E93;  
    width:100%;  
    border-bottom:solid 1px Gray;  
}  
 
#master_header_left  
{  
    height:100%;  
    width:250px;  
    float:left;  
}  
 
#master_icon  
{  
    clear:both;  
    width: 100%;   
    height55px;  
    background-color:White;      
}  
 
#master_header  
{  
    background-color#C8D6E6;  
}  
 
#master_header_right  
{  
    padding-top3px;  
    height22px;  
    padding-bottom0px;  
}  
 
#master_header_right_top   
{  
    width:100%;  
    height:55px;  
    background-color:White;   
}  
 
#master_login  
{  
    background-color#C8D6E6;  
    padding-top:2px;  
    padding-left:5px;  
    width200px;  
    height:22px;  
    float:left;  
    clear:both;  
}  
 
/* Middle Section Layout */ 
 
#master_middle  
{  
}  
 
#master_menu  
{  
    /*float:left;*/ 
}  
 
.master_contentbody  
{  
}  
 
#master_contenttitle  
{  
    width:70%;  
    margin-left:10px;  
    border-bottomsolid 2px #888888;  
}  
 
/* Footer */ 
 
#master_footer  
{  
    background-color#110E93;  
    font-size:8pt;  
    width:100%;  
    height:18px;  
    padding-top:2px;  
    padding-left:45%;  
    clear:both;   
    color:White;  
}  
 
/* Tree style RadGrid styles */ 
.OutlookTopBar  
{  
    background-colorwhite;  
    background-repeatrepeat-x;  
    padding-top3px;  
    border1px solid #002D96;  
    width180px;  
    font-size11px;  
    padding-left4px;  
}  
 
.TreeviewGrid Table  
{  
    margin-top7px;  
    border:0px;  
}  
 
.TreeviewGrid a  
{  
    color#000000;  
    text-decorationunderline;  
}  
 
.TreeviewGrid td  
{  
    font-size11px;  
    border:0px;  
}  
 
 
 
.SelectedFolder  
{  
    font-weightbold;  
}  
 
.OutlookTable  
{  
    background-color:#c4dafa;  
    margin-top:4px;  
}  
 
.MailSubject  
{  
    color#808080;  
}  
 
.SelectedRow_Outlook .MailSubject  
{  
    colorwhite;  
}  
 
/* Styles for the Treeview on the master page */ 
 
.TreeMenu   
{  
    font-family:Arial;  
    background-color:White;  
    color:#678CB9;  
    width:210px;  
}  
 
.TreeNodeLinkButton  
{  
    color:#15428B;  
    text-decoration:none;  
    font-size:7pt;     
}  
 
.TreeNode   
{  
    color:#15428b;     
}  
 
.TreeNode a   
{  
    color:#15428b;  
    background-color:White;  
}  
 
.TreeNode a:visited  
{  
    color:#15428b;   
    background-color:White;    
}  
 
.TreeNode a:hover  
{  
    text-decoration:none;  
    color:Red;   
    background-color:White;    
}  
 
.TreeNode a:active  
{  
    color:Red;   
    background-color:White;    
}  
 
 
 
.slideContainer {  
    border:0px solid #073b96;  
    border-collapse:collapse;  
    background-color:White;  
}  
 
 
#master_content  
{  
    width:100%;  
    height:80%;  
    float:left;   
    clear:both;  
    margin-left:10px;    
}  
 
.master_menu   
{  
       
}  
 
div.menuTables   
{  
    font-size:10pt;   
    font-family:Arial;   
    font-weight:bold;     
}  
 
table.menuTables   
{  
    margin-left:20px;   
    margin-top:20px;   
    border:0;      
}  
 
table.menuTables td   
{  
    width:615px;     
}  
 
table.useHeaderMenu  
{  
    margin-left:10px;  
}  
 
table.useHeaderMenu td  
{  
    vertical-align:top;  
    font-size:7pt;  
}  
 
table.useHeaderMenu a  
{  
    text-decoration:none;  
}  
 
table.formFields  
{  
      
}  
 
.collapsible   
{  
    font-size:8pt;  
    font-family:Arial;  
    vertical-align:middle;  
    margin-top:10px;  
    margin-left:10px;  
    margin-bottom:10px;  
    margin-right:10px;  
    whitewhite-spacenormal !important;    
 
}  
 
.collapsible img.handle  
{  
    text-align:rightright;  
    MARGIN-TOP: 5px;   
    margin-right:20px;  
    margin-left:300px;     
    position:relative;  
}  
 
.invisible  
{  
    display:none;  
    visibility:hidden;  
}  
 
.visible 
{  
    visibility:visible;  
}  
 
.TabStrip  
{  
    border:solid 1px Gray;  
}  
 
.PageView  
{  
    vertical-align:middle;  
    padding-top:10px;  
    margin-left:10px;  
    margin-bottom:10px;  
    margin-right:10px;  
    whitewhite-spacenormal !important;   
}  
 
.Breadcrumb  
{  
    font:bold 11px ArialVerdanaSans-serif;  
    padding-left5px;  
    margin-top2px;  
}  
 
.Breadcrumb a  
{  
    text-decoration:none;     
}  
 
.Breadcrumb a:hover  
{  
    text-decoration:underline;          
}  
 
ThresholdLabel   
{  
    font-weight:bold;     

Very discouraging.  But hopefully, with your knowledge and my cooperation, we can figure this out.

Thanks a lot.
Adam
Top achievements
Rank 1
 answered on 14 Aug 2008
1 answer
134 views
I have a button inside the grid template column.
on click of that button i open a modal window and ask user for some information.
on close of the window I want to pass the info entered by the user alongwith the datakey of the row that had the button to a new page.

How do i get the datakey of that row on client side or server side.

I force a postback on the closing of the modal window to do some additional task and then redirect to a new page.My control does not go to the ItemCommand event handler so I cannot extract the values there.




Yavor
Telerik team
 answered on 14 Aug 2008
1 answer
140 views
Hi,

    I am using rad grid for asp.net ajax (Version Q1 2008). Please reply if you know how to bind data to the radgrid from client side. Dcumentation or sample project shall be more helpful.

Thanks,
Preetam.
Vlad
Telerik team
 answered on 14 Aug 2008
4 answers
165 views

Using Q2, whenever I place a basic RadUpload control into a DIV that have "position: relative" in the style, the Select button will not open the Choose File dialog.

This happens on Vista x64 IE 7 (7.0.6000.16681). Here is the code (there is no other code except this in the page. 

<div style="position: relative;">

<

Telerik:RadUpload ID="TelerikUpload" InputSize="60" Skin="Vista" InitialFileInputsCount="1" MaxFileInputsCount="1" ControlObjectsVisibility="None" runat="server" />

</

div>

davearmitage
Top achievements
Rank 1
 answered on 14 Aug 2008
1 answer
98 views
I have a page that calls a Server.Transfer to a different page in a subfolder of the original page. 
ie page1 url = root/page1.aspx; page2 url = root/page2/page2.aspx

Page 2 contains a RadGrid within a RadAjaxPanel

If I sort by one of the columns in my grid, it works fine.  If I sort again I get a System.Web.HttpException, stating that the file '/root/page2.aspx' does not exist.

It appears as if the callback is looking for the page2 to have the same path as page 1.

There are reasons behind our paging hierarchy, and I do not want to have to move pages about.  Is there any other way to resolve this? 

Thank you

Gillian
Nikolay Rusev
Telerik team
 answered on 14 Aug 2008
4 answers
281 views
Dear Sir,

I have installed both of asp.net control suites.
I feel confused  with  following questions..

Prometheus version:
1. All skins are embeded in DLL?  Therefore, we don't need to deploy any skin or radcontrol folders??  If No, how do I know when I need to deploy these??

2. There is no more a folder is called "RadControl"....The folder is replaced by "Skins"??  Any rule or usage that can be provided??

3. In control, there is no more a property is called "RadControlDir".  Then, how do I set a control to use a skin in other location??

RadControl for asp.net version:

1. In this version, only default skin is been embeded to DLL, right?  Therefore, if I use others than default skin, I need to deploy radcontrol folder to server??


Thank you~


Dimo
Telerik team
 answered on 14 Aug 2008
1 answer
70 views

If I have radpanel control and am using radgrid inside a radpanelitem, I have to reference the radgrid as such, to get a reference:

Telerik.Web.UI.

RadGrid gvSiteRef = (Telerik.Web.UI.RadGrid)RadPanelBar1.FindItemByValue(PANEL_SITE_HEADER).FindControl("gvSite");

That is correct right???

So, how do I use grid events now since 'eventargs' param won't work since I can't directly reference the grid anymore (since its in a radpanel)?:
protected

void gvSite_ColumnCreated(object sender, gvSiteColumnCreatedEventArgs e)

{

.....

}

Thanks for help..

Yavor
Telerik team
 answered on 14 Aug 2008
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?