This is a migrated thread and some comments may be shown as answers.

Where to obtain 2009 Q3 icons for 2010 Q1?

1 Answer 26 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Lenny_shp
Top achievements
Rank 2
Lenny_shp asked on 06 Jul 2010, 06:48 PM
I am stuck on 2009.3.1503.35 because 2010 Q1 icon changed for insert/delete.
How do I make the icons look the old way without having to using a custom skin?

1 Answer, 1 is accepted

Sort by
0
Accepted
Dimo
Telerik team
answered on 08 Jul 2010, 10:10 AM
Hi Lenny,

You can take the old edit/insert images (from the /Skins/ folder of your RadControls installation) and use them like this:

<%@ Page Language="C#" %>
<%@ Import Namespace="System.Data" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
 
<script runat="server">
 
    protected void RadGrid_NeedDataSource(object sender, GridNeedDataSourceEventArgs e)
    {
        DataTable dt = new DataTable();
        DataRow dr;
        int colsNum = 4;
        int rowsNum = 6;
        string colName = "Column";
 
        for (int j = 1; j <= colsNum; j++)
        {
            dt.Columns.Add(String.Format("{0}{1}", colName, j));
        }
 
        for (int i = 1; i <= rowsNum; i++)
        {
            dr = dt.NewRow();
 
            for (int k = 1; k <= colsNum; k++)
            {
                dr[String.Format("{0}{1}", colName, k)] = String.Format("{0}{1} Row{2}", colName, k, i);
            }
            dt.Rows.Add(dr);
        }
 
        (sender as RadGrid).DataSource = dt;
    }
 
</script>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
 
<head runat="server">
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<title>RadControls</title>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server" />
 
<p>EditForms</p>
 
<telerik:RadGrid
    ID="RadGrid1"
    runat="server"
    Width="800px"
    Skin="Office2007"
    OnNeedDataSource="RadGrid_NeedDataSource">
    <MasterTableView CommandItemDisplay="Top" EditMode="EditForms">
        <Columns>
            <telerik:GridClientDeleteColumn ButtonType="ImageButton" ImageUrl="~/grid_images/Delete.gif" />
            <telerik:GridEditCommandColumn ButtonType="ImageButton" EditImageUrl="~/grid_images/Edit.gif" InsertImageUrl="~/grid_images/AddRecord.gif" UpdateImageUrl="~/grid_images/Update.gif" CancelImageUrl="~/grid_images/Cancel.gif" />
        </Columns>
        <EditFormSettings>
            <EditColumn ButtonType="ImageButton" InsertImageUrl="~/grid_images/AddRecord.gif" UpdateImageUrl="~/grid_images/Update.gif" CancelImageUrl="~/grid_images/Cancel.gif" />
        </EditFormSettings>
    </MasterTableView>
</telerik:RadGrid>
 
<p>InPlace</p>
 
<telerik:RadGrid
    ID="RadGrid2"
    runat="server"
    Width="800px"
    Skin="Office2007"
    OnNeedDataSource="RadGrid_NeedDataSource">
    <MasterTableView CommandItemDisplay="Top" EditMode="InPlace">
        <Columns>
            <telerik:GridClientDeleteColumn ButtonType="ImageButton" ImageUrl="~/grid_images/Delete.gif" />
            <telerik:GridEditCommandColumn ButtonType="ImageButton" EditImageUrl="~/grid_images/Edit.gif" InsertImageUrl="~/grid_images/AddRecord.gif" UpdateImageUrl="~/grid_images/Update.gif" CancelImageUrl="~/grid_images/Cancel.gif" />
        </Columns>
    </MasterTableView>
</telerik:RadGrid>
 
</form>
</body>
</html>


Greetings,
Dimo
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Grid
Asked by
Lenny_shp
Top achievements
Rank 2
Answers by
Dimo
Telerik team
Share this question
or