Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
246 views
I'm seeing problematic behavior when I set Column properties for a RadGrid via the MasterTableView's Properties dialog.  I go in and set up Columns, and they're set up correctly in the dialog box, but when I hit OK, the changes aren't displayed in the .aspx file.  HOWEVER, if I then go and set a RadGrid-level property (say, ToolTip text), ALL of the changes then show up.  If I don't change something on the RadGrid level, my Column properties just disappear. 

I realize I can manually set this stuff in the .aspx file, but I'd prefer to do it via the Properties dialog.  Is this a known bug?

Cheers,
Doug
Doug Walton
Top achievements
Rank 1
 answered on 01 Oct 2009
4 answers
91 views
I have a decorated button on a page with UseSubmitBehavior="false", an OnClientClick event, and an onclick event.  The button will not fire the server side event if the user is using IE6.  The code below has 2 buttons.  The first button is decorated, although the text color is not correct, and should fire a client and server event but does not fire the server event.  The second button is not decorated and works as expected.

Everything works in IE7 or higher, but unfortunately I have some users that must use IE6.

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Default" %> 
 
<!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></title> 
</head> 
<body> 
    <form id="form1" runat="server"> 
        <asp:ScriptManager ID="scriptman" runat="server"></asp:ScriptManager> 
        <telerik:RadFormDecorator ID="RadFormDecorator1" Runat="server" Skin="Web20" DecoratedControls="Buttons" DecorationZoneID="decorationZone" /> 
        <div id="decorationZone"> 
            <asp:Button ID="btnSubmit1" runat="server" Text="Submit"  
                UseSubmitBehavior="false" OnClientClick="SubmitOnlyOnce(this, false)"  
                onclick="btnSubmit1_Click" /> 
        </div> 
        <div>                 
            <asp:Button ID="btnSubmit2" runat="server" Text="Submit"  
                onclick="btnSubmit2_Click"   
                UseSubmitBehavior="false" OnClientClick="SubmitOnlyOnce(this, false)"  /> 
        </div>                 
            <br />                 
            <asp:Label ID="lblMsg" runat="server"></asp:Label>                               
        </div>   
    </form> 
     
    <script type="text/javascript"> 
        function SubmitOnlyOnce(control, validatorsExist) { 
            var msg = "Please wait..."; 
            var btn = $get(control.id); 
 
            if (validatorsExist) { 
                if (Page_ClientValidate()) { 
                    Telerik.Web.UI.RadFormDecorator.set_enabled(btn, false); 
                    control.value = msg; 
                } 
            } 
            else { 
                Telerik.Web.UI.RadFormDecorator.set_enabled(btn, false); 
 
                control.value = msg; 
            } 
        }    
    </script> 
</body> 
</html> 
 


Waylon Campbell
Top achievements
Rank 1
 answered on 01 Oct 2009
2 answers
141 views
Hi,

I have used RadGrid with custom skins.
The problem is  if i start hovering the mouse over the grid, the CPU usage drastically

Please help me out.

The custom skin i am using is :
/* r.a.d.menu Web 2.0 skin */ 
 
.RadMenu_Blue  
{ 
    background: url(Menu/MenuItemBackground.gif); 
    border-left: solid 1px #617fb5; 
} 
 
.RadMenu_Blue_Context 
{ 
    background: none; 
    border:0; 
} 
 
.RadMenu_Blue .rmLink 
{ 
    text-decoration: none; 
    color: #fff; 
    border-left: solid 1px #c2cfe3; 
    border-right: solid 1px #617fb5; 
    background: transparent; 
} 
 
.RadMenu_Blue .rmLink:hover, 
.RadMenu_Blue .rmFocused, 
.RadMenu_Blue .rmExpanded 
{ 
    color:Black; 
    background: transparent url(Menu/MainItemBackgroundHover.gif) no-repeat center; 
} 
 
.RadMenu_Blue .rmText 
{ 
    /*background: transparent url(Menu/RootGroupArrowDown.gif) no-repeat right center;*/ 
    padding-left: 22px; /* should be adjusted to the size of the images, if they are larger than 16x16px */ 
    margin-right: 4px; 
    font:10px "segoe ui",arial,sans-serif; 
    line-height: 20px; 
    padding-right: 24px; 
    background-image:none; 
} 
 
 
.RadMenu_Blue .rmRootGroup .rmText .rmLeftImage 
{ 
    margin: 3px 1px 0; /* should be adjusted to the size of the images, if they are larger than 16x16px */ 
} 
 
.RadMenu_Blue .rmHorizontal .rmExpandBottom,   
.RadMenu_Blue .rmHorizontal .rmExpandTop   
{   
  background: transparent url(Menu/RootGroupArrowDown.gif) no-repeat rightright center;   
}  
 
.RadMenu_Blue .rmVertical .rmExpandLeft, 
.RadMenu_Blue .rmVertical .rmExpandRight   
{   
  background: transparent url(Menu/invertedGroupImage.gif) no-repeat rightright center;   
}  
 
 
.RadMenu_Blue .rmSlide 
{ 
    margin-top:-1px; 
} 
 
.RadMenu_Blue .rmGroup 
{ 
    border: solid 1px #6788be; 
    background: white; 
} 
 
.RadMenu_Blue .rmGroup .rmLink 
{ 
    background: white; 
    border: 0px; 
    border-bottom: solid 1px #f0f2f3; 
    color: #333; 
} 
 
.RadMenu_Blue .rmGroup .rmText 
{ 
    font-weight: normal !important; 
    background: none; 
    margin-right: 0 !important; 
    padding-left: 30px; 
    padding-right: 40px; 
    font-size: 10px; 
} 
 
.RadMenu_Blue .rmGroup .rmLink:hover, 
.RadMenu_Blue .rmGroup .rmFocused, 
.RadMenu_Blue .rmGroup .rmExpanded 
{ 
    background: #c7d9ef; 
    border: 0; 
    border-bottom: solid 1px #d8dde0; 
} 
 
.RadMenu_Blue .rmLeftArrow, 
.RadMenu_Blue .rmRightArrow, 
.RadMenu_Blue .rmTopArrow, 
.RadMenu_Blue .rmBottomArrow, 
.RadMenu_Blue .rmLeftArrowDisabled, 
.RadMenu_Blue .rmRightArrowDisabled, 
.RadMenu_Blue .rmTopArrowDisabled, 
.RadMenu_Blue .rmBottomArrowDisabled 
{ 
    background: #e7f1ff url(Menu/left.gif) center center no-repeat; 
    width: 15px; 
    text-decoration:none; 
    color:#e7f1ff; 
} 
 
.RadMenu_Blue .rmTopArrow, 
.RadMenu_Blue .rmTopArrowDisabled 
{ 
    background-image: url(Menu/top.gif); 
    width: 100%; 
    height: 15px; 
} 
 
.RadMenu_Blue .rmBottomArrow, 
.RadMenu_Blue .rmBottomArrowDisabled 
{ 
    background-image:url(Menu/bottombottom.gif); 
    width: 100%; 
    height: 15px; 
} 
 
.RadMenu_Blue .rmRightArrow, 
.RadMenu_Blue .rmLeftArrow 
{ 
    height: 100%; 
} 
 
.RadMenu_Blue .rmRightArrow, 
.RadMenu_Blue .rmRightArrowDisabled 
{ 
    background-image: url(Menu/rightright.gif); 
} 
 
.RadMenu_Blue .rmVertical .rmSeparator 
{ 
    padding-top: 2px; 
    background: #6788be; 
    font-size: 1px; 
    line-height: 1px; 
} 
 
.RadMenu_Blue .rmSeparator .rmText 
{ 
    display: none; 
} 
 
.RadMenu_Blue .rmExpandLeft, 
.RadMenu_Blue .rmExpandRight, 
.RadMenu_Blue .rmFocused .rmExpandLeft, 
.RadMenu_Blue .rmFocused .rmExpandRight, 
.RadMenu_Blue .rmExpanded .rmExpandLeft, 
.RadMenu_Blue .rmExpanded .rmExpandRight 
{ 
    background: transparent url(Menu/invertedGroupImage.gif) rightright center no-repeat; 
} 
 
.RadMenu_Blue .rmGroup .rmExpandLeft, 
.RadMenu_Blue .rmGroup .rmExpandRight, 
.RadMenu_Blue .rmGroup .rmFocused .rmExpandLeft, 
.RadMenu_Blue .rmGroup .rmFocused .rmExpandRight, 
.RadMenu_Blue .rmGroup .rmExpanded .rmExpandLeft, 
.RadMenu_Blue .rmGroup .rmExpanded .rmExpandRight 
{ 
    background: transparent url(Menu/groupImage.gif) rightright center no-repeat; 
} 
 
/*right-to-left support*/ 
 
.RadMenu_Blue_rtl, 
.RadMenu_Blue_rtl * 
{ 
    text-align:rightright; 
} 
 
.RadMenu_Blue_rtl .rmRootGroup .rmText 
{ 
    padding-left: 24px; 
    padding-right: 8px; 
    margin-right: 0; 
    margin-left: 4px; 
} 
 
.RadMenu_Blue_rtl .rmGroup .rmText 
{ 
    margin-left: 0 !important; 
    padding-left: 40px; 
    padding-right: 30px; 
} 
 
.RadMenu_Blue .rmLeftImage  
{ 
    margin: 5px 2px 0; 
} 
 
.RadMenu_Blue_rtl .rmHorizontal .rmExpandBottom,   
.RadMenu_Blue_rtl .rmHorizontal .rmExpandTop   
{   
  background-position:left center;   
}  
 
.RadMenu_Blue_rtl .rmVertical .rmExpandLeft, 
.RadMenu_Blue_rtl .rmVertical .rmExpandRight   
{   
  background: transparent url(Menu/invertedGroupImageRTL.gif) no-repeat left center; 
} 
 
.RadMenu_Blue_rtl .rmGroup .rmExpandLeft, 
.RadMenu_Blue_rtl .rmGroup .rmExpandRight   
{   
  background: transparent url(Menu/groupImageRTL.gif) no-repeat 5px center;   
} 
 
.RadMenu_Blue_rtl .rmVertical .rmLink:hover .rmExpandLeft, 
.RadMenu_Blue_rtl .rmVertical .rmLink:hover .rmExpandRight, 
.RadMenu_Blue_rtl .rmVertical .rmFocused .rmExpandLeft, 
.RadMenu_Blue_rtl .rmVertical .rmFocused .rmExpandRight, 
.RadMenu_Blue_rtl .rmVertical .rmExpanded .rmExpandLeft, 
.RadMenu_Blue_rtl .rmVertical .rmExpanded .rmExpandRight 
{ 
    background: transparent url(Menu/invertedGroupImageRTL.gif) left center no-repeat; 
} 
 
.RadMenu_Blue_rtl .rmGroup .rmLink:hover .rmExpandLeft, 
.RadMenu_Blue_rtl .rmGroup .rmLink:hover .rmExpandRight, 
.RadMenu_Blue_rtl .rmGroup .rmFocused .rmExpandLeft, 
.RadMenu_Blue_rtl .rmGroup .rmFocused .rmExpandRight, 
.RadMenu_Blue_rtl .rmGroup .rmExpanded .rmExpandLeft, 
.RadMenu_Blue_rtl .rmGroup .rmExpanded .rmExpandRight 
{ 
    background: transparent url(Menu/groupImageRTL.gif) 5px center no-repeat; 
} 
 
.RadMenu_Blue .rmRootGroup .rmItem .rmDisabled, 
.RadMenu_Blue .rmRootGroup .rmItem .rmDisabled:hover 
{ 
    -moz-opacity: 0.8; 
    opacity: 0.8; 
    color: #ccc; 
    background: none; 
    border-bottom-color: #f3f5f5; 
} 

Avi
Top achievements
Rank 1
 answered on 01 Oct 2009
2 answers
115 views
I am struggling with the Grid Export functionality.

To investigate, I took the export demo on my machine, checked that it worked fine.
Removed all excel formatting, checked that it worked fine.


Then, I removed the declarative section of the Grid DataSource and replaced that by a PopulateGrid() function in both the Page_Load and Button4_Click
        <telerik:RadGrid ID="RadGrid1" AllowSorting="True" 
            AllowPaging="True" PageSize="10" runat="server" GridLines="None" 
            Width="95%" > 
            <MasterTableView Width="100%"></MasterTableView> 
        </telerik:RadGrid> 

        protected void Button4_Click(object sender, System.EventArgs e)  
        {  
            PopulateGrid();  
 
            ConfigureExport();  
            RadGrid1.ExportSettings.Excel.Format = Web.UI.GridExcelExportFormat.ExcelML;  
            CheckBox1.Checked = true;  
            RadGrid1.ExportSettings.ExportOnlyData = true;              
            RadGrid1.MasterTableView.ExportToExcel();              
        }  
 
        void PopulateGrid()  
        {  
            SqlConnection conn = new SqlConnection(System.Configuration.ConfigurationManager.ConnectionStrings["NorthwindConnectionString"].ConnectionString);  
            SqlCommand cmd = new SqlCommand("SELECT CustomerID, CompanyName, ContactName, ContactTitle, Address, PostalCode FROM Customers", conn);  
              
            conn.Open();  
            SqlDataReader reader = cmd.ExecuteReader();  
            RadGrid1.DataSource = reader;  
            RadGrid1.DataBind();  
 
        } 
At this stage, the demo still works BUT the file exported is empty.

Is there a reason why populating the grid "on the fly" would not work with the export to excel functionality?

Many Thanks

Eric
Eric
Top achievements
Rank 1
 answered on 01 Oct 2009
2 answers
191 views
I have a grid that has 2 layers of grouping.  First, I have changed the padding-left and
padding-right of the GridGroupColumn to condense the width.  I am trying to find what
I need to change the padding of the text from the expand/collapse image.  I do not like
the wide space between the two.

Additionally, once I changed the GridGroupColumn padding, the header and item columns
were not aligned.  I do not know what is needed to fix this.  Padding is changed via Css like
below.

.GridCss .rgGroupCol
{
    padding-left:0 !important;
    padding-right:0 !important;
}

Thanks.
Josh
Top achievements
Rank 1
 answered on 01 Oct 2009
2 answers
169 views
Hi all,

I have a nestedview on a rad grid. I am trying to follow the examples provided but I cannot make it work properly. In the onItemCommand event I am binding a formview which is in the nestedview. When I expand the first row, I can see everything properly, however all rows after that show nothing. I have made sure that I am properly binding the formview and that the datasource has valid data.

Please review the code and help.

protected void RadGrid1_NeedDataSource(object source, GridNeedDataSourceEventArgs e)  
        {  
            try 
            {  
                RadGrid1.DataSource = myWorkorderController.getAllWorkorders("Closed");  
            }  
            catch (Exception ex)  
            {  
                throw ex;  
            }  
        }  
 
        protected void RadGrid1_ItemCommand(object source, GridCommandEventArgs e)  
        {  
            if (e.CommandName == RadGrid.ExpandCollapseCommandName)  
            {  
                if (!e.Item.Expanded)  
                {  
                    FormView oFormView = (FormView)RadGrid1.MasterTableView.Items[0].ChildItem.FindControl("FormView1");  
                    ACareFlangeWOHistoryByWOID_inType oWOHistInfo = new ACareFlangeWOHistoryByWOID_inType();  
                    oWOHistInfo.WOID = e.Item.OwnerTableView.Items[e.Item.ItemIndex]["WONUM"].Text;  
                    oFormView.DataSource = myWorkorderController.getAllWorkorderHistory(oWOHistInfo);  
                    oFormView.DataBind();  
                    ((GridDataItem)e.Item).ChildItem.FindControl("NestedViewPanel").Visible =  
                   !e.Item.Expanded;  
                }  
            }  
        }  
 
        protected void RadGrid1_PreRender(object sender, EventArgs e)  
        {  
            if (!Page.IsPostBack)  
            {  
                RadGrid1.MasterTableView.Items[0].Expanded = true;  
                RadGrid1.MasterTableView.Items[0].ChildItem.FindControl("NestedViewPanel").Visible = true;  
            }  
        }  
 
        protected void RadGrid1_ItemCreated(object sender, GridItemEventArgs e)  
        {  
            if (e.Item is GridNestedViewItem)  
            {  
                //e.Item.FindControl("InnerContainer").Visible = ((GridNestedViewItem)e.Item).Parent.Expanded;  
            }  
        } 


<telerik:RadGrid ID="RadGrid1" runat="server" OnNeedDataSource="RadGrid1_NeedDataSource"   
        OnItemCommand="RadGrid1_ItemCommand" AutoGenerateColumns="False" GridLines="None" Skin="Outlook" 
        AlternatingItemStyle-BackColor="#D9E6F2" ShowFooter="True" AllowFilteringByColumn="True" AllowPaging="True"   
        AllowSorting="True" OnPreRender="RadGrid1_PreRender">  
    <HeaderContextMenu EnableTheming="True" Skin="Outlook">  
        <CollapseAnimation Duration="200" Type="OutQuint" /> 
    </HeaderContextMenu> 
    <AlternatingItemStyle BackColor="#D9E6F2" /> 
    <MasterTableView Name="Workorders" PageSize="20" DataKeyNames="WONUM">  
        <RowIndicatorColumn> 
            <HeaderStyle Width="20px" /> 
        </RowIndicatorColumn> 
        <ExpandCollapseColumn> 
            <HeaderStyle Width="20px" /> 
        </ExpandCollapseColumn> 
        <Columns> 
            <telerik:GridBoundColumn DataField="CMWOID" Display="False" HeaderText="CMWOID"   
                UniqueName="CMWOID" ReadOnly="true">  
            </telerik:GridBoundColumn> 
            <telerik:GridBoundColumn DataField="WONUM" HeaderText="WO #"   
                UniqueName="WONUM">  
            </telerik:GridBoundColumn> 
            <telerik:GridBoundColumn DataField="EquipID" HeaderText="Equipment ID"   
                UniqueName="EquipID" ReadOnly="true" Display="false">  
            </telerik:GridBoundColumn> 
            <telerik:GridTemplateColumn HeaderText="Equip ID" DataField="EquipID" SortExpression="EquipID">  
                <ItemTemplate> 
                    <asp:Label runat="server" ID="lblEquipID" Text='<% #Eval("EquipID") + "&nbsp;" %>'>  
                    </asp:Label> 
                </ItemTemplate> 
                <EditItemTemplate> 
                    <telerik:RadComboBox ID="ddlEquipID" runat="server" DataTextField="equipids" 
                        DataValueField="equipids" Skin="Outlook">  
                    </telerik:RadComboBox> 
                </EditItemTemplate> 
            </telerik:GridTemplateColumn> 
            <telerik:GridBoundColumn DataField="EquipGroup"   
                HeaderText="Equip Group" UniqueName="EquipGroup">  
            </telerik:GridBoundColumn> 
            <telerik:GridBoundColumn DataField="ProdUnit" HeaderText="Prod Unit"   
                UniqueName="ProdUnit">  
            </telerik:GridBoundColumn> 
            <telerik:GridBoundColumn DataField="ProcessUnit" HeaderText="Process Unit"   
                UniqueName="ProcessUnit">  
            </telerik:GridBoundColumn> 
            <telerik:GridBoundColumn DataField="EquipLocID" HeaderText="EquipLocID"   
                UniqueName="EquipLocID" ReadOnly="true" Display="false">  
            </telerik:GridBoundColumn> 
            <telerik:GridTemplateColumn HeaderText="Location" DataField="EquipLocID" SortExpression="EquipLocID">  
                <ItemTemplate> 
                    <asp:Label runat="server" ID="lblEquipLocID" Text='<% #Eval("EquipLocID") + "&nbsp;" %>'>  
                    </asp:Label> 
                </ItemTemplate> 
                <EditItemTemplate> 
                    <telerik:RadComboBox ID="ddlEquipLocID" runat="server" DataTextField="Description" 
                        DataValueField="LocationID" Skin="Outlook">  
                    </telerik:RadComboBox> 
                </EditItemTemplate> 
            </telerik:GridTemplateColumn> 
            <telerik:GridBoundColumn DataField="JobType" HeaderText="Job Type"   
                UniqueName="JobType" ReadOnly="true" Display="false">  
            </telerik:GridBoundColumn> 
            <telerik:GridTemplateColumn HeaderText="Job Type" DataField="JobType" SortExpression="JobType">  
                <ItemTemplate> 
                    <asp:Label runat="server" ID="lblJobTypeID" Text='<% #Eval("JobType") + "&nbsp;" %>'>  
                    </asp:Label> 
                </ItemTemplate> 
                <EditItemTemplate> 
                    <telerik:RadComboBox ID="ddlJobType" runat="server" DataTextField="Type" 
                        DataValueField="Type" Skin="Outlook">  
                    </telerik:RadComboBox> 
                </EditItemTemplate> 
            </telerik:GridTemplateColumn> 
            <telerik:GridBoundColumn DataField="Plant" HeaderText="Plant"   
                UniqueName="Plant">  
            </telerik:GridBoundColumn> 
            <telerik:GridBoundColumn DataField="Priority" HeaderText="Priority"   
                UniqueName="Priority">  
            </telerik:GridBoundColumn> 
            <telerik:GridDateTimeColumn DataField="RequestDate" HeaderText="Request Date"   
                UniqueName="RequestDate">  
            </telerik:GridDateTimeColumn> 
            <telerik:GridBoundColumn DataField="AssignedTo" HeaderText="Assigned To"   
                UniqueName="AssignedTo" ReadOnly="true" Display="false">  
            </telerik:GridBoundColumn> 
            <telerik:GridTemplateColumn HeaderText="Assigned To" DataField="AssignedTo" SortExpression="AssignedTo">  
                <ItemTemplate> 
                    <asp:Label runat="server" ID="lblAssignedToID" Text='<% #Eval("AssignedTo") + "&nbsp;" %>'>  
                    </asp:Label> 
                </ItemTemplate> 
                <EditItemTemplate> 
                    <telerik:RadComboBox ID="ddlAssignedTo" runat="server" DataTextField="UserName" 
                        DataValueField="UserID" Skin="Outlook">  
                    </telerik:RadComboBox> 
                </EditItemTemplate> 
            </telerik:GridTemplateColumn> 
            <telerik:GridBoundColumn DataField="ProbDescription" HeaderText="Prob Desc"   
                UniqueName="ProbDescription">  
            </telerik:GridBoundColumn> 
            <telerik:GridBoundColumn DataField="Service" HeaderText="Service"   
                UniqueName="Service">  
            </telerik:GridBoundColumn> 
            <telerik:GridBoundColumn DataField="Reason" HeaderText="Reason"   
                UniqueName="Reason">  
            </telerik:GridBoundColumn> 
            <telerik:GridBoundColumn DataField="SVCCode" HeaderText="SVCCode"   
                UniqueName="SVCCode">  
            </telerik:GridBoundColumn> 
            <telerik:GridBoundColumn DataField="ReasonCode" HeaderText="ReasonCode"   
                UniqueName="ReasonCode">  
            </telerik:GridBoundColumn> 
        </Columns> 
        <NestedViewTemplate> 
            <asp:Panel ID="NestedViewPanel" runat="server" CssClass="viewWrap" Visible="false">  
            <asp:FormView ID="FormView1" runat="server">  
                <ItemTemplate> 
                <div class="contactWrap">  
                    <fieldset style="padding: 10px;">  
                        <legend style="padding: 5px;"><b>Execution Date:&nbsp; &nbsp;<%#Eval("ExecDate") %></b>  
                        </legend> 
                        <table> 
                            <tbody> 
                                <tr> 
                                    <td> 
                                        <fieldset style="padding: 10px;">  
                                        <legend style="padding: 5px;"><b>Repair Maintenance</b> 
                                        </legend> 
                                        <table> 
                                            <tbody> 
                                                <tr> 
                                                    <td> Cause Description: </td> 
                                                    <td> 
                                                        <asp:Label ID="cityLabel" Text='<%#Bind("CauseDesc") %>' runat="server"></asp:Label> 
                                                    </td> 
                                                </tr> 
                                                <tr> 
                                                    <td> Failure Reason: </td> 
                                                    <td> 
                                                        <asp:Label ID="Label2" Text='<%#Bind("FailReason") %>' runat="server"></asp:Label> 
                                                    </td> 
                                                </tr> 
                                                <tr> 
                                                    <td>Order Problem:</td> 
                                                    <td> 
                                                        <asp:Label ID="Label3" Text='<%#Bind("OrderProblem") %>' runat="server"></asp:Label> 
                                                    </td> 
                                                </tr> 
                                                <tr> 
                                                    <td>Parts Replaced:</td> 
                                                    <td> 
                                                        <asp:Label ID="Label4" Text='<%#Bind("PartsReplaced") %>' runat="server"></asp:Label> 
                                                    </td> 
                                                </tr> 
                                                <tr> 
                                                    <td>Replace Reason:</td> 
                                                    <td> 
                                                        <asp:Label ID="Label5" Text='<%#Bind("ReplaceReason") %>' runat="server"></asp:Label> 
                                                    </td> 
                                                </tr> 
                                                <tr> 
                                                    <td>Recommendation:</td> 
                                                    <td> 
                                                        <asp:Label ID="Label6" Text='<%#Bind("Recommendation") %>' runat="server"></asp:Label> 
                                                    </td> 
                                                </tr> 
                                                <tr> 
                                                    <td>Task Sequence:</td> 
                                                    <td style="width:230px">  
                                                        <asp:Label ID="Label7" Text='<%#Bind("TaskSeq") %>' runat="server"></asp:Label> 
                                                    </td> 
                                                </tr> 
                                                <tr> 
                                                    <td>Sec 2 Date:</td> 
                                                    <td> 
                                                        <asp:Label ID="Label8" Text='<%#Bind("Sec2Date") %>' runat="server"></asp:Label> 
                                                    </td> 
                                                </tr> 
                                                <tr> 
                                                    <td>Sec 2 Name:</td> 
                                                    <td> 
                                                        <asp:Label ID="Label9" Text='<%#Bind("Sec2Name") %>' runat="server"></asp:Label> 
                                                    </td> 
                                                </tr> 
                                            </tbody> 
                                        </table> 
                                    </td> 
                                    <td> 
                                        <fieldset style="padding: 10px;">  
                                        <legend style="padding: 5px;"><b>Preventive Maintenance</b> 
                                        </legend> 
                                        <table> 
                                            <tbody> 
                                                <tr> 
                                                    <td> Last Calibiration: </td> 
                                                    <td> 
                                                        <asp:Label ID="Label10" Text='<%#Bind("LastCalib") %>' runat="server"></asp:Label> 
                                                    </td> 
                                                </tr> 
                                                <tr> 
                                                    <td> Torque Value Used: </td> 
                                                    <td> 
                                                        <asp:Label ID="Label11" Text='<%#Bind("TorquevalUsed") %>' runat="server"></asp:Label> 
                                                    </td> 
                                                </tr> 
                                                <tr> 
                                                    <td> 
                                                        <asp:Label ID="Label30" runat="server" Text='<% #Bind("Chk1Name")%>'></asp:Label> 
                                                    </td> 
                                                    <td> 
                                                        <asp:Label ID="Label12" Text='<%#Bind("Chk1") %>' runat="server"></asp:Label> 
                                                    </td> 
                                                </tr> 
                                                <tr> 
                                                    <td> 
                                                        <asp:Label ID="Label13" runat="server" Text='<% #Bind("Chk2Name")%>'></asp:Label> 
                                                    </td> 
                                                    <td> 
                                                        <asp:Label ID="Label19" Text='<%#Bind("Chk2") %>' runat="server"></asp:Label> 
                                                    </td> 
                                                </tr> 
                                                <tr> 
                                                    <td> 
                                                        <asp:Label ID="Label14" runat="server" Text='<% #Bind("Chk3Name")%>'></asp:Label> 
                                                    </td> 
                                                    <td> 
                                                        <asp:Label ID="Label20" Text='<%#Bind("Chk3") %>' runat="server"></asp:Label> 
                                                    </td> 
                                                </tr> 
                                                <tr> 
                                                    <td> 
                                                        <asp:Label ID="Label15" runat="server" Text='<% #Bind("Chk4Name")%>'></asp:Label> 
                                                    </td> 
                                                    <td> 
                                                        <asp:Label ID="Label21" Text='<%#Bind("Chk4") %>' runat="server"></asp:Label> 
                                                    </td> 
                                                </tr> 
                                                <tr> 
                                                    <td> 
                                                        <asp:Label ID="Label16" runat="server" Text='<% #Bind("Chk5Name")%>'></asp:Label> 
                                                    </td> 
                                                    <td> 
                                                        <asp:Label ID="Label22" Text='<%#Bind("Chk5") %>' runat="server"></asp:Label> 
                                                    </td> 
                                                </tr> 
                                                <tr> 
                                                    <td> 
                                                        <asp:Label ID="Label17" runat="server" Text='<% #Bind("Chk6Name")%>'></asp:Label> 
                                                    </td> 
                                                    <td> 
                                                        <asp:Label ID="Label23" Text='<%#Bind("Chk6") %>' runat="server"></asp:Label> 
                                                    </td> 
                                                </tr> 
                                                <tr> 
                                                    <td> 
                                                        <asp:Label ID="Label18" runat="server" Text='<% #Bind("Chk7Name")%>'></asp:Label> 
                                                    </td> 
                                                    <td> 
                                                        <asp:Label ID="Label24" Text='<%#Bind("Chk7") %>' runat="server"></asp:Label> 
                                                    </td> 
                                                </tr> 
                                                <tr> 
                                                    <td> 
                                                        <asp:Label ID="Label25" runat="server" Text='<% #Bind("Chk8Name")%>'></asp:Label> 
                                                    </td> 
                                                    <td> 
                                                        <asp:Label ID="Label26" Text='<%#Bind("Chk8") %>' runat="server"></asp:Label> 
                                                    </td> 
                                                </tr> 
                                                <tr> 
                                                    <td> 
                                                        <asp:Label ID="Label27" runat="server" Text='<% #Bind("OPT1Name")%>'></asp:Label> 
                                                    </td> 
                                                    <td> 
                                                        <asp:Label ID="Label28" Text='<%#Bind("OPT1") %>' runat="server"></asp:Label> 
                                                    </td> 
                                                </tr> 
                                                <tr> 
                                                    <td> 
                                                        <asp:Label ID="Label29" runat="server" Text='<% #Bind("OPT2Name")%>'></asp:Label> 
                                                    </td> 
                                                    <td> 
                                                        <asp:Label ID="Label31" Text='<%#Bind("OPT2") %>' runat="server"></asp:Label> 
                                                    </td> 
                                                </tr> 
                                            </tbody> 
                                        </table> 
                                    </td> 
                                </tr> 
                            </tbody> 
                        </table> 
                    </fieldset> 
                </div> 
                </ItemTemplate> 
            </asp:FormView> 
            </asp:Panel> 
        </NestedViewTemplate> 
    </MasterTableView> 
    <FilterMenu EnableTheming="True" Skin="Outlook">  
        <CollapseAnimation Duration="200" Type="OutQuint" /> 
    </FilterMenu> 
</telerik:RadGrid> 

Please help.
Ali Kitabi
Top achievements
Rank 1
 answered on 01 Oct 2009
1 answer
93 views

 Hello All

I have a problem where a rad chart displays one bar only when the underlying data source returns data for multiple bars. Any idea why only the first bar is showing?

Please help asap.

Thanks

Schlurk
Top achievements
Rank 2
 answered on 01 Oct 2009
6 answers
193 views
I have dragged the RadSlider control to my web-page. The radslider works fine but it is fixed on the page and does not scroll with the page. This slider is inside Table and the webpage uses master file. Even when it is outside the table it does not scroll. This would be fine if I don't have page long enough to scroll. Looks like I am missing one of the properties. Any help would be appreciated. In demos it seem to scroll along with page. How is this done?

<telerik:RadSlider ID="rsMEDUpdateMedRecord" runat="server" AnimationDuration="400" 
                            Height="42px" ItemType="Tick" LargeChange="1" MaximumValue="5" 
                            TrackPosition="TopLeft" Width="350px" ClickOffset="1" Length="350"   
                            Skin="Vista">  
                        </telerik:RadSlider>   
Tsvetie
Telerik team
 answered on 01 Oct 2009
1 answer
56 views
Dear All,

Is there a simple way of filtering the GridBoundColumn over a diferent field than the one defined in the DataField property. I am passing quite complex HTML to the DataField which in the end is being rendered to the user as a simple text with some extra functionality. I would like to be able to filter against this text value instead agains the complex HTML. I imagine the GetFilterDataField() of the GridBoundColumn does just that? I was trying to override the GridBoundColumn but then I receive the "Cannot create column with the specified type name" error.

Regards,
Adam
Pavlina
Telerik team
 answered on 01 Oct 2009
6 answers
368 views
I have tried for days trying to do what seems would be simple but I cannot seem to get an image to hide in a column based on another columns value. Here is what I am trying to do.

  • I have a template column with the uniquename of "noteimgcolumn" inside this column I have a image "Bullet.gif"
  • I have another hidden column with the uniquename "Notes" which has user notes about this record which a user will update from time to time.
  • I have a Radtooltip assigned to the bullet.gif inside the template column which shows the notes for this particular record on mouseover.
  • I would like to hide the bullet.gif if the length of the note columns value is less than 10 "this is because on some imports from a spreadsheet will actually put in "NULL" into the notes field. I also need to hide the image if the note field is truly null.

I have tried every sample app you have supplied on the forums and still cannot get this to work It always shows the image. Below is the code for the page I do not have any code behind since none of what I tried was working.

<telerik:RadGrid ID="RadGrid1" runat="server" AllowFilteringByColumn="True" 
                AllowSorting="True" 
                DataSourceID="SqlDataSource1" GridLines="None" ShowGroupPanel="True" 
                Skin="Office2007" AllowAutomaticInserts="True" AllowAutomaticDeletes="True"  AllowAutomaticUpdates="True" HorizontalAlign="Left" Width="100%">  
<ItemStyle HorizontalAlign="Center" /> 
 
<PagerStyle Position="TopAndBottom" Mode="NumericPages" /> 
 
<MasterTableView AutoGenerateColumns="False" DataSourceID="SqlDataSource1" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" ForeColor="Black" DataKeyNames="ContactID" CommandItemDisplay="Top" AllowPaging="True" editmode="PopUp" showfooter="True">  
<RowIndicatorColumn> 
<HeaderStyle Width="20px"></HeaderStyle> 
</RowIndicatorColumn> 
 
<ExpandCollapseColumn> 
<HeaderStyle Width="20px"></HeaderStyle> 
</ExpandCollapseColumn> 
<Columns> 
<telerik:GridEditCommandColumn HeaderImageUrl="./images/icon_edit_topic.gif" Resizable="False"></telerik:GridEditCommandColumn> 
<telerik:GridButtonColumn ConfirmTitle="Delete Confirmation" ConfirmDialogType="RadWindow" CommandName="Delete" Text="Delete" ImageUrl="/images/delete.gif" ConfirmText="Are you sure you want to delete record?" HeaderImageUrl="./images/delete.gif" HeaderText="Delete" Reorderable="False" UniqueName="column1"></telerik:GridButtonColumn> 
<telerik:GridTemplateColumn AllowFiltering="False" HeaderText="Notes" UniqueName="noteimgcolumn"><ItemTemplate> 
<ITEMTEMPLATE /><asp:Image id="Image1" runat="server" __designer:wfdid="w301" ImageUrl="~/images/bullet.gif"> </asp:Image> &nbsp;<telerik:RadToolTip id="RadToolTip1" title="Contact Notes" runat="server" Skin="Office2007" Width="693px" Height="75px" sPosition="BottomLeft" __designer:wfdid="w302" TargetControlID="image1" RelativeTo="Element" Position="BottomRight" EnableTheming="False" AutoCloseDelay="5000" Animation="Resize" ShowDelay="100"><BR /><DIV style="BACKGROUND-IMAGE: url(Images/bg-fade.gif); WIDTH: 686px; HEIGHT: 141px; BACKGROUND-COLOR: yellow" align=left><asp:Label id="Label4" runat="server" Text='<%# Eval("FirstName") %>' __designer:wfdid="w303" Font-Size="Large" ForeColor="Red"></asp:Label> <asp:Label id="Label5" runat="server" __designer:wfdid="w304"></asp:Label> <asp:Label id="Label6" runat="server" Text='<%# Eval("LastName") %>' __designer:wfdid="w305" Font-Size="Large" ForeColor="Red"></asp:Label><BR /> 
<HR /> 
<asp:Label id="Label3" runat="server" Text="Note:" __designer:wfdid="w299" Font-Size="Medium" ForeColor="Maroon"></asp:Label><BR /><asp:Label id="Label7" runat="server" Text='<%# Eval("Notes") %>' Font-Bold="False" __designer:wfdid="w300" Font-Size="Medium" ForeColor="Blue" EnableTheming="True"></asp:Label><BR /><BR /><BR /><BR /><BR /><BR /><BR /></DIV></telerik:RadToolTip>   
</ItemTemplate> 
</telerik:GridTemplateColumn> 
<telerik:GridBoundColumn DataField="lastname" HeaderText="Last Name" UniqueName="column3"></telerik:GridBoundColumn> 
<telerik:GridBoundColumn DataField="FirstName" HeaderText="First Name" UniqueName="column2"></telerik:GridBoundColumn> 
<telerik:GridBoundColumn DataField="middlename" HeaderText="Middle Name" Visible="False" UniqueName="column4"></telerik:GridBoundColumn> 
<telerik:GridBoundColumn DataField="suffix" HeaderText="Suffix" Visible="False" UniqueName="column6"></telerik:GridBoundColumn> 
<telerik:GridBoundColumn DataField="Title" HeaderText="Title" SortExpression="Title" Visible="False" UniqueName="Title"></telerik:GridBoundColumn> 
<telerik:GridBoundColumn DataField="JobTitle" HeaderText="JobTitle" SortExpression="JobTitle" Visible="False" UniqueName="JobTitle"></telerik:GridBoundColumn> 
<telerik:GridBoundColumn DataField="Company" HeaderText="Company" SortExpression="Company" UniqueName="Company"></telerik:GridBoundColumn> 
<telerik:GridBoundColumn DataField="Address" HeaderText="Address" UniqueName="column7"></telerik:GridBoundColumn> 
<telerik:GridBoundColumn DataField="WorkFax" HeaderText="WorkFax" SortExpression="WorkFax" UniqueName="WorkFax"></telerik:GridBoundColumn> 
<telerik:GridBoundColumn DataField="WorkPhone" HeaderText="WorkPhone" SortExpression="WorkPhone" UniqueName="WorkPhone"></telerik:GridBoundColumn> 
<telerik:GridBoundColumn DataField="WorkPhoneExtension" HeaderText="WorkPhoneExtension" SortExpression="WorkPhoneExtension" Visible="False" UniqueName="WorkPhoneExtension"></telerik:GridBoundColumn> 
<telerik:GridBoundColumn DataField="Address1" HeaderText="Address1" SortExpression="Address1" Visible="False" UniqueName="Address1"></telerik:GridBoundColumn> 
<telerik:GridBoundColumn DataField="Address2" HeaderText="Address2" SortExpression="Address2" Visible="False" UniqueName="Address2"></telerik:GridBoundColumn> 
<telerik:GridBoundColumn DataField="City" HeaderText="City" SortExpression="City" Visible="False" UniqueName="City"></telerik:GridBoundColumn> 
<telerik:GridBoundColumn DataField="State" HeaderText="State" SortExpression="State" Visible="False" UniqueName="State"></telerik:GridBoundColumn> 
<telerik:GridBoundColumn DataField="ZipCode" HeaderText="ZipCode" SortExpression="ZipCode" Visible="False" UniqueName="ZipCode"></telerik:GridBoundColumn> 
<telerik:GridBoundColumn DataField="Country" HeaderText="Country" SortExpression="Country" Visible="False" UniqueName="Country"></telerik:GridBoundColumn> 
<telerik:GridBoundColumn DataField="EmailAddress" HeaderText="EmailAddress" SortExpression="EmailAddress" Visible="False" UniqueName="EmailAddress"></telerik:GridBoundColumn> 
<telerik:GridBoundColumn DataField="ContactID" ReadOnly="True" Visible="False" UniqueName="column5"></telerik:GridBoundColumn> 
<telerik:GridBoundColumn DataField="Notes" MaxLength="1000" HeaderText="Note" Visible="False" UniqueName="column"></telerik:GridBoundColumn> 
</Columns> 
 
<EditFormSettings> 
<EditColumn UniqueName="EditCommandColumn1"></EditColumn> 
</EditFormSettings> 
 
<ItemStyle HorizontalAlign="Left" Wrap="True" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False"></ItemStyle> 
 
<GroupHeaderItemStyle HorizontalAlign="Left" Wrap="True" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False"></GroupHeaderItemStyle> 
 
<AlternatingItemStyle HorizontalAlign="Left" Wrap="True" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False"></AlternatingItemStyle> 
 
<EditItemStyle HorizontalAlign="Left" Wrap="True" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False"></EditItemStyle> 
 
<PagerStyle Mode="NextPrevNumericAndAdvanced" PageButtonCount="20" Position="TopAndBottom" HorizontalAlign="Left" Wrap="True" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False"></PagerStyle> 
 
<HeaderStyle HorizontalAlign="Center" Wrap="True" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False"></HeaderStyle> 
</MasterTableView> 
 
<ClientSettings AllowColumnsReorder="True" AllowDragToGroup="True" ReorderColumnsOnClient="True">  
<Selecting AllowRowSelect="True"></Selecting> 
</ClientSettings> 
 
<FilterMenu EnableTheming="True" Skin="Hay">  
<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
</FilterMenu> 
 
<EditItemStyle BackColor="White" HorizontalAlign="Left" /> 
 
<FilterItemStyle HorizontalAlign="Center" /> 
</telerik:RadGrid> 
Thanks in advance.
Robert
Top achievements
Rank 1
 answered on 01 Oct 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?