Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
301 views
Is there any way to generate the menu item icons (the image icons associated with each menu item) with CSS instead of using the ImageUrl property?

With this release the number of resources (images, css, etc.) in my pages have dropped dramatically, which is great, but I still have a bunch of individual images coming down to support my menus and context menus.

I'd like to use CSS sprites and have all of these images in a single file, but haven't been able to figure out a way to achieve this. The RadMenuItem does have a CssClass property, but that controls the CSS class of the entire item, not the 'img' tag (I forget whether it is applied to the 'li' or the 'a' tag).

It would be great if it had a property like 'ImageCSSClass' that when set, adds an additional class to the img tag, so it would look something like this:

<img class="rmLeftImage MyCutIconCssClass" alt="" />

I could then assign a background image to that CSS class and assign the appropriate coordinates from my image sprite.
bob ter
Top achievements
Rank 1
 answered on 02 Feb 2010
6 answers
146 views
Hello,

I am testing our website with IE8 and noticed some strange behavior with Telerik TreeView component. Some treeviews we use in our website are narrow in width and long in height, thus vertical and horizontal scrollbars are displayed. With IE8, when the user hovers on a node with a long text, the whole text is displayed over the page. Any solution?
Tobias
Top achievements
Rank 1
 answered on 02 Feb 2010
6 answers
319 views

My page contains 2 tabs and under each tab, there is a grid inside.

After performing something on the page, it fires a ajax request to the server side to cause a rebind to the grid.
The grid inside the focused tab is rendered perfectly. However the second one is not, the height of the grid is just about 1 row.

javascript:

        function ReloadGrid()  
        {                           
            $find("<%=RadAjaxManager1.ClientID%>").ajaxRequest("RefreshGrid");                          
         } 

Declaration:

<telerik:RadTabStrip ID="radGrid" SelectedIndex="0" runat="server" MultiPageID="GridMultiPage" Skin="Outlook">  
                    <Tabs> 
                        <telerik:RadTab runat="server" Text="Expense Detail" PageViewID="ExpenseDetail" Selected="True">  
                        </telerik:RadTab> 
                        <telerik:RadTab runat="server" Text="View all detail lines" PageViewID="AllDetail">  
                        </telerik:RadTab> 
                    </Tabs> 
           </telerik:RadTabStrip> 
           <telerik:RadMultiPage ID="GridMultiPage" runat="server" SelectedIndex="0"  > 
                <telerik:RadPageView ID="ExpenseDetail" runat="server" BorderStyle="none">        
                    <telerik:RadGrid ID="expenseDetailGrid" runat="server" AllowPaging="True" AllowSorting="True" 
                        GridLines="None" AutoGenerateColumns="False" ShowFooter="True" Skin="Outlook" Width="600px" Height="290px" OnNeedDataSource="expenseDetailGrid_NeedDataSource">  
                        <MasterTableView DataKeyNames="Expense_Detail_Id" ClientDataKeyNames="Expense_Detail_Id">  
                            <RowIndicatorColumn> 
                                <HeaderStyle Width="20px" /> 
                            </RowIndicatorColumn> 
                            <ExpandCollapseColumn> 
                                <HeaderStyle Width="20px" /> 
                            </ExpandCollapseColumn> 
                            <Columns> 
                               .....    Removed .......                       
                            </Columns> 
                        </MasterTableView>                      
                        <ClientSettings> 
                            <Scrolling AllowScroll="True" UseStaticHeaders="True" /> 
                            <Selecting AllowRowSelect="True" /> 
                            <ClientEvents OnRowSelected="expenseDetailGridRowSelected" /> 
                        </ClientSettings> 
                        <FilterMenu EnableTheming="True" Skin="Outlook">  
                            <CollapseAnimation Duration="200" Type="OutQuint" /> 
                        </FilterMenu> 
                        <PagerStyle Mode="NextPrevAndNumeric" />                          
                    </telerik:RadGrid>      
               </telerik:RadPageView> 
               <telerik:RadPageView ID="AllDetail" runat="server" BorderStyle="none" >    
                   <telerik:RadGrid ID="allDetailGrid" runat="server" AllowPaging="True" AllowSorting="True"   
                        GridLines="None" AutoGenerateColumns="False" ShowFooter="True" Skin="Outlook" Width="980px" Height="290px" OnNeedDataSource="AllDetailGrid_NeedDataSource" OnItemDataBound="allDetailGrid_ItemDataBound">  
                        <MasterTableView DataKeyNames="AG_Expense_Detail_Line_Id" ClientDataKeyNames="AG_Expense_Detail_Line_Id">  
                            <RowIndicatorColumn> 
                                <HeaderStyle Width="20px" /> 
                            </RowIndicatorColumn> 
                            <ExpandCollapseColumn> 
                                <HeaderStyle Width="20px" /> 
                            </ExpandCollapseColumn> 
                            <Columns> 
                            .... Removed  
                            </Columns> 
                        </MasterTableView>                                                                      
                        <ClientSettings ReorderColumnsOnClient="True">  
                            <Scrolling AllowScroll="True" UseStaticHeaders="True"/>  
                            <Selecting AllowRowSelect="True" /> 
                            <Resizing AllowColumnResize="True" /> 
                              <ClientEvents OnRowSelected="allDetailGridRowSelected" /> 
                        </ClientSettings> 
                        <FilterMenu EnableTheming="True" Skin="Outlook">  
                            <CollapseAnimation Duration="200" Type="OutQuint" /> 
                        </FilterMenu> 
                        <PagerStyle Mode="NextPrevAndNumeric"/>  
                       <ItemStyle Wrap="True"/>  
                    </telerik:RadGrid>      
              </telerik:RadPageView>        
</telerik:RadMultiPage>                                               
            <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest">  
                <AjaxSettings>                                    
                    <telerik:AjaxSetting AjaxControlID="RadAjaxManager1" > 
                        <UpdatedControls> 
                            <telerik:AjaxUpdatedControl ControlID="expenseDetailGrid"   /> 
                            <telerik:AjaxUpdatedControl ControlID="allDetailGrid"  /> 
                        </UpdatedControls> 
                    </telerik:AjaxSetting> 
                    <telerik:AjaxSetting AjaxControlID="expenseDetailGrid">  
                        <UpdatedControls> 
                            <telerik:AjaxUpdatedControl ControlID="expenseDetailGrid" LoadingPanelID="RadAjaxLoadingPanel1" /> 
                        </UpdatedControls> 
                    </telerik:AjaxSetting> 
                    <telerik:AjaxSetting AjaxControlID="allDetailGrid">  
                        <UpdatedControls> 
                            <telerik:AjaxUpdatedControl ControlID="allDetailGrid" LoadingPanelID="RadAjaxLoadingPanel1" /> 
                        </UpdatedControls> 
                    </telerik:AjaxSetting> 
                </AjaxSettings>                
            </telerik:RadAjaxManager> 
            <telerik:RadAjaxLoadingPanel runat="server" ID="RadAjaxLoadingPanel1" Transparency="10" BackColor="#e0e0e0">  
                <table width="100%" height="100%">  
                <tr> 
                    <td valign="middle" align="center"><img src="../../images/loading6.gif" /></td>  
                </tr> 
                </table> 
            </telerik:RadAjaxLoadingPanel> 

Code Behind :

protected void AllDetailGrid_NeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e)  
    {  
 
        Expense_Detail_Line_DataAdapter da_expensedetailline = new Expense_Detail_Line_DataAdapter();  
        DataSet ds_expensedetailline = da_expensedetailline.GetExpenseDetailLineByExpense(_ExpenseId);  
        allDetailGrid.DataSource = ds_expensedetailline;  
    }  
 
 
 
   protected void expenseDetailGrid_NeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e)  
    {  
        Expense_Detail_DataAdapter da_expensedetail = new Expense_Detail_DataAdapter();  
        DataSet ds_expensedetail = da_expensedetail.GetExpenseDetailByExpense(_ExpenseId);  
        expenseDetailGrid.DataSource = ds_expensedetail;  
    }  
     
protected void RadAjaxManager1_AjaxRequest(object sender, AjaxRequestEventArgs e)  
    {  
        if (e.Argument == "RefreshGrid")  
        {  
            expenseDetailGrid.Rebind();  
            allDetailGrid.Rebind();  
        }  
    } 
Sebastian
Telerik team
 answered on 02 Feb 2010
1 answer
205 views
I have used RadAjaxpanel in my form everything is working fine except one thing i.e i have used one linkbutton in my gridview for downlosding code is

 


Aspx code:

 

 

<%

@ Page Language="C#" MasterPageFile="~/masterAdmin.master" AutoEventWireup="true" CodeFile="CreateProjectwiseTask.aspx.cs" Inherits="CreateProjectwiseTask" Title="Project wise Task creation" %>

 

<%

@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

 

<%

@ Register assembly="msgBox" namespace="BunnyBear" tagprefix="cc2" %>

 

<%

@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>

 

 

 

<

 

asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

 

 

 

 

 

<script language="JavaScript">

 

 

 

 

javascript:window.history.forward(1);

 

 

</

 

script>

 

<

 

script language="javascript" type="text/javascript">

 

 

function FireMyIASGroupPrint(myURL)

 

{

 

if(myURL)

 

{

alert(myURL);

 

return;

 

}

}

 

 

 

 

 

 

 

 

function

 

openDialog(qs)

 

{

 

if(qs)

 

{

 

// alert(qs);

 

 

 

 

window.open(

"Createresourcetask.aspx?querystring=" + qs,'_blank','left = 300, top=150, width=530, height=380,menubar=no , scrollbars=yes, resizable=no');

 

}

}

 

</script>

 

 

 

 

 

<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" LoadingPanelID="RadAjaxLoadingPanel1">

 

 

 

 

 

<table width="100%" border="0" cellspacing="0" cellpadding="0">

 

<

 

tr>

 

 

 

 

 

<td height="50" valign="top">

 

 

 

 

 

<table width="100%" border="0" cellspacing="0" cellpadding="0">

 

 

 

 

 

<tr>

 

 

 

 

 

<td width="5%" align="center"><img src="images/create-resource.gif" alt="" width="39" height="45" /></td>

 

 

 

 

 

<td width="47%"><h2>Project Wise Task Create / Update</h2></td>

 

 

 

 

 

<td width="33%">

 

 

 

 

 

&nbsp;</td>

 

 

 

 

 

<td width="15%"></td>

 

 

 

 

 

</tr>

 

 

 

 

 

</table>

 

 

 

 

 

</td>

 

 

 

 

 

</tr>

 

 

 

 

 

<tr>

 

 

 

 

 

<td height="1" style="border:1px solid #CCCCCC; border-bottom:0px;">

 

 

 

 

 

<cc2:msgBox ID="msgBox1" runat="server" />

 

 

 

 

 

<img src="images/spacer.gif" height="1" width="1" border="0" /></td>

 

 

 

 

 

</tr>

 

 

 

<tr>

 

 

 

 

 

<td valign="top" align="center" height="280">

 

 

 

 

 

<table width="98%" border="0" cellspacing="0" cellpadding="0">

 

 

 

 

 

<tr>

 

 

<td align="left">

 

 

 

 

 

 

<table width="420" border="0" cellspacing="0" cellpadding="0">

 

 

 

 

 

<tr>

 

 

 

 

 

<td width="80" height="40" class="heading">Project Name</td>

 

 

 

 

 

<td width="324">

 

 

 

 

 

 

<asp:UpdatePanel ID="UpdatePanel1" runat="server">

 

 

 

 

 

<ContentTemplate>

 

 

 

 

 

 

<telerik:RadComboBox ID="ddlProjects" runat="server" AutoPostBack="True"

 

 

Height="170px" Width="200px" DropDownWidth="200px" Skin="WebBlue" onselectedindexchanged="ddlProjects_SelectedIndexChanged" >

 

 

 

 

 

<Items>

 

 

 

 

 

<telerik:RadComboBoxItem runat="server" Text="Select Project" Value="Select Project" />

 

 

 

 

 

</Items>

 

 

 

 

 

</telerik:RadComboBox>

 

 

 

 

 

 

</ContentTemplate>

 

 

 

 

 

</asp:UpdatePanel></td>

 

 

 

 

 

</tr>

 

 

 

</

 

table>

 

 

</td>

 

 

 

 

 

</tr>

 

 

 

 

 

<tr>

 

 

 

 

 

<td valign="top">

 

 

 

 

 

 

<asp:UpdatePanel ID="UpdatePanel2" runat="server">

 

 

 

 

 

<ContentTemplate>

 

 

 

 

 

<telerik:RadGrid ID="gviewProjectwisetask" runat="server" Width="100%" AutoGenerateColumns="False"

 

 

GridLines="None" CellPadding="2"

 

 

 

onrowcommand="gviewProjectwisetask_RowCommand"

 

 

onpageindexchanging="gviewProjectwisetask_PageIndexChanging"

 

 

BackImageUrl="~/images/grad_l2.gif" BorderColor="#66CCFF"

 

 

BorderStyle="Solid" BorderWidth="1px"

 

 

onrowdatabound="gviewProjectwisetask_RowDataBound"

 

 

onrowediting="gviewProjectwisetask_RowEditing"

 

 

onrowdeleting="gviewProjectwisetask_RowDeleting" Skin="Vista"

 

 

onitemcommand="gviewProjectwisetask_ItemCommand"

 

 

onitemdatabound="gviewProjectwisetask_ItemDataBound" AllowPaging="True"

 

 

onpageindexchanged="gviewProjectwisetask_PageIndexChanged" PageSize="7">

 

 

 

 

 

 

<MasterTableView>

 

 

 

 

 

<Columns>

 

 

 

 

 

<telerik:GridTemplateColumn HeaderText="Resource Name">

 

 

 

 

 

<ItemTemplate>

 

 

 

 

 

<asp:LinkButton ID="ResourceName" runat="server" CommandName="Select" Text='<%#DataBinder.Eval(Container.DataItem,"Resource Name") %>'></asp:LinkButton>

 

 

 

 

 

 

</ItemTemplate>

 

 

 

 

 

 

 

<ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"

 

 

Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Left"

 

 

Wrap="True" />

 

 

 

 

 

 

 

</telerik:GridTemplateColumn>

 

 

 

 

 

 

 

<telerik:GridBoundColumn DataField="Resource ID" HeaderText="ResourceId"

 

 

ItemStyle-CssClass="columnHidden" HeaderStyle-CssClass="columnHidden" >

 

 

 

 

 

 

<HeaderStyle CssClass="columnHidden" />

 

 

 

 

 

<ItemStyle CssClass="columnHidden" Font-Bold="False" Font-Italic="False"

 

 

Font-Overline="False" Font-Strikeout="False" Font-Underline="False"

 

 

HorizontalAlign="Left" Wrap="True" />

 

 

 

 

 

 

</telerik:GridBoundColumn>

 

 

 

 

 

<telerik:GridTemplateColumn HeaderText="Task/Module Name">

 

 

 

 

 

<ItemTemplate>

 

 

 

 

 

<asp:Label ID="lblTaskmane" runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"Task Name") %>'></asp:Label> &nbsp;

 

 

 

 

 

</ItemTemplate>

 

 

 

 

 

 

<ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"

 

 

Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Left"

 

 

Wrap="True" />

 

 

 

 

 

 

</telerik:GridTemplateColumn>

 

 

 

 

 

 

 

<telerik:GridTemplateColumn HeaderText="Task Description">

 

 

 

 

 

<ItemTemplate>

 

 

 

 

 

<asp:Label ID="lblDesc" runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"Description") %>'></asp:Label> &nbsp;

 

 

 

 

 

</ItemTemplate>

 

 

 

 

 

 

<ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"

 

 

Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Left"

 

 

Wrap="True" />

 

 

 

 

 

 

</telerik:GridTemplateColumn>

 

 

 

 

 

 

 

<telerik:GridTemplateColumn HeaderText="Assigned By">

 

 

 

 

 

<ItemTemplate>

 

 

 

 

 

<asp:Label ID="lblAssignedBy" runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"Assigned By") %>'></asp:Label> &nbsp;

 

 

 

 

 

</ItemTemplate>

 

 

 

 

 

 

<ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"

 

 

Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Left"

 

 

Wrap="True" />

 

 

 

 

 

 

</telerik:GridTemplateColumn>

 

 

 

 

 

 

<telerik:GridTemplateColumn HeaderText="ModifiedBy">

 

 

 

 

 

<ItemTemplate>

 

 

 

 

 

<asp:Label ID="lblModifiedBy" runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"Modified By") %>'></asp:Label> &nbsp;

 

 

 

 

 

</ItemTemplate>

 

 

 

 

 

 

<ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"

 

 

Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Left"

 

 

Wrap="True" />

 

 

 

 

 

 

</telerik:GridTemplateColumn>

 

 

 

 

 

 

 

<telerik:GridTemplateColumn HeaderText="Phase">

 

 

 

 

 

<ItemTemplate>

 

 

 

 

 

<asp:Label ID="lblphase" runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"phase") %>'></asp:Label> &nbsp;

 

 

 

 

 

</ItemTemplate>

 

 

 

 

 

 

 

<ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"

 

 

Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Left"

 

 

Wrap="True" />

 

 

 

 

 

 

 

</telerik:GridTemplateColumn>

 

 

 

 

 

<telerik:GridTemplateColumn HeaderText="ETA(Hrs)">

 

 

 

 

 

<ItemTemplate>

 

 

 

 

 

<asp:Label ID="lblETA" runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"Estimated Hours") %>'></asp:Label> &nbsp;

 

 

 

 

 

</ItemTemplate>

 

 

 

 

 

 

 

<ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"

 

 

Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Left"

 

 

Wrap="True" />

 

 

 

 

 

 

 

</telerik:GridTemplateColumn>

 

 

 

 

 

<telerik:GridTemplateColumn HeaderText="Date">

 

 

 

 

 

<ItemTemplate>

 

 

 

 

 

<asp:Label ID="lblDate" runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"Date") %>'></asp:Label> &nbsp;

 

 

 

 

 

</ItemTemplate>

 

 

 

 

 

 

<ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"

 

 

Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Left"

 

 

Wrap="True" />

 

 

 

 

 

 

</telerik:GridTemplateColumn>

 

 

 

<telerik:GridBoundColumn DataField="Task ID" HeaderText="TaskID"

 

 

>

 

 

 

 

 

 

<ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"

 

 

Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Left"

 

 

Wrap="True" />

 

 

 

 

 

 

</telerik:GridBoundColumn>

 

 

 

 

 

<telerik:GridBoundColumn DataField="Document ID" HeaderText="DocumentID"

 

 

>

 

 

 

 

 

 

<ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"

 

 

Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Left"

 

 

Wrap="True" />

 

 

 

 

 

 

</telerik:GridBoundColumn>

 

 

 

 

 

<telerik:GridTemplateColumn HeaderText="Document">

 

 

 

 

 

<ItemTemplate>

 

 

 

 

 

<asp:LinkButton ID="lnkDocument" runat="server" CommandName="Select2" Text='<%#DataBinder.Eval(Container.DataItem,"File Name") %>'></asp:LinkButton>

 

 

 

 

 

</ItemTemplate>

 

 

 

 

 

 

<ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"

 

 

Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Left"

 

 

Wrap="True" />

 

 

 

 

 

 

</telerik:GridTemplateColumn>

 

 

 

 

 

<telerik:GridTemplateColumn HeaderText="Remove Att. File">

 

 

 

 

 

<ItemTemplate>

 

 

 

 

 

<asp:ImageButton ID="imgbtnRemoveDocument" runat="server" ToolTip="Remove Attached File"

 

 

 

 

 

ImageUrl="~/images/delete-file-icon.gif" CommandName="Select3" OnClientClick="return confirm('Are you sure you want to remove att. file?');"/>

 

 

 

 

 

</ItemTemplate>

 

 

 

 

 

 

<ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"

 

 

Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center"

 

 

Wrap="True" />

 

 

 

 

 

 

</telerik:GridTemplateColumn>

 

 

 

 

 

<telerik:GridTemplateColumn HeaderText="Add More">

 

 

 

 

 

<ItemTemplate>

 

 

 

 

 

<asp:ImageButton ID="imgbtnAddmore" runat="server" ToolTip="Add More Tasks"

 

 

 

 

 

ImageUrl="~/images/AddMore.gif" CommandName="Select4"/>

 

 

 

 

 

</ItemTemplate>

 

 

 

 

 

 

<ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"

 

 

Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center"

 

 

Wrap="True" />

 

 

 

 

 

 

</telerik:GridTemplateColumn>

 

<

 

telerik:GridBoundColumn DataField="status" HeaderText="Status"

 

 

>

 

 

 

 

 

 

<ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"

 

 

Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Left"

 

 

Wrap="True" />

 

 

 

 

 

 

</telerik:GridBoundColumn>

 

 

 

 

 

</Columns>

 

 

 

 

 

</MasterTableView>

 

 

 

 

 

<FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />

 

 

 

 

 

<PagerStyle

 

 

ForeColor="Black" HorizontalAlign="Center" Height="30px" Font-Bold="True" Font-Names="Arial"

 

 

Font-Size="Smaller" CssClass="footerbg" />

 

 

 

 

 

 

</telerik:RadGrid>

 

 

 

 

 

</ContentTemplate>

 

 

 

 

 

</asp:UpdatePanel>

 

 

 

 

 

 

 

</td>

 

 

 

 

 

</tr>

 

 

 

 

 

</table>

 

 

 

 

 

</td>

 

 

 

 

 

</tr>

 

 

 

</telerik:RadAjaxPanel>

 

 

 

 

 

<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Height="75px"

 

 

 

 

 

Width="75px" Skin="Sunset">

 

 

 

 

 

</telerik:RadAjaxLoadingPanel>

 

 

 

 

 

</table></asp:Content>

 

 

 

Below code is for code behind:
 

 

protected void gviewProjectwisetask_ItemCommand(object source, GridCommandEventArgs e)

 

{

 

try

 

 

 

 

{

if

 

(e.CommandName.ToUpper() == "SELECT2")

 

{

GridDataItem gvr = (GridDataItem)((LinkButton)e.CommandSource).NamingContainer;

 

 

int RowIndex = gvr.ItemIndex;

 

 

if (RowIndex > -1)

 

{

int FileId = Convert.ToInt32(gviewProjectwisetask.MasterTableView.Items[RowIndex].Cells[12].Text);

 

 

string Str = FileId.ToString();

 

Response.Redirect(

"DownloadRedirect.aspx?ID=" + FileId);

 

}

 

catch (Exception ex)

 

{

}

}

Actual problem is when i click on linkbutton in gridview for downloading the file then progressbar showing perfectly here i have used Response.Redirect("DownloadRedirect.aspx?ID=" + FileId); after this line it is going to catch block here i want a solutions is that in catch block i want to disable the progressbar means i want to present  aspx form in normal mode means without progressbar.

Just suggest me how it is possible.


 

 

 

 

Radoslav
Telerik team
 answered on 02 Feb 2010
1 answer
174 views
HI,
    I have a radbinaryimage in grid view . When clicked on the image i need to redirect them to another page where it shows the image based on the query string passed.  Can any one suggest me how to do that....  I tried to put the radbinaryimage inside the asp link button. it worked for list view not in grid view.


Its URGENT

Radoslav
Telerik team
 answered on 02 Feb 2010
1 answer
133 views
I understand that the RadControls are said to support the 64 bit environment.  Does this mean they can be referenced in an application that is built to target x64 specifically and will run in a web application that is running under 64 bit mode (not legacy 32 bit mode)?

I do not have my environment available to test yet, so I am posing the question (will have it in a day or so).

Thanks!
Sebastian
Telerik team
 answered on 02 Feb 2010
5 answers
603 views

I am getting the below error, I have all the references in the references and also web.config but still the error persists. I tried cleaning the cache but no change, the error is still coming how to oversome it.

Server Error in '/' Application.

Compilation Error

Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: CS0012: The type 'System.Web.UI.ScriptManager' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.

Source Error:


[No relevant source lines]

Source File: c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\35022879\15bb4e6e\App_Web_selection.aspx.cdcab7d2.zu2jxu86.0.cs    Line: 187



C:\Varun> "c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\csc.exe" /t:library /utf8output /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Web.Mobile\2.0.0.0__b03f5f7f11d50a3a\System.Web.Mobile.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll" /R:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\35022879\15bb4e6e\assembly\dl3\0a240a6c\000e7706_f3e4c701\MySql.Data.DLL" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll" /R:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\35022879\15bb4e6e\assembly\dl3\c9f63f4d\a1be5b93_e5a3c901\AjaxControlToolkit.DLL" /R:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\35022879\15bb4e6e\App_Web_a3cyqadh.dll" /R:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\35022879\15bb4e6e\assembly\dl3\aa6ad42e\00c60154_7494ca01\Telerik.Web.UI.DLL" /R:"C:\WINDOWS\assembly\GAC_32\System.EnterpriseServices\2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll" /R:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\35022879\15bb4e6e\assembly\dl3\0834427c\008c3c2c_2897c701\edtFTPnetPRO.DLL" /R:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorlib.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.ServiceModel\3.0.0.0__b77a5c561934e089\System.ServiceModel.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.ServiceModel.Web\3.5.0.0__31bf3856ad364e35\System.ServiceModel.Web.dll" /R:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\35022879\15bb4e6e\assembly\dl3\610ee1a6\e810c48b_6c9fca01\iReach.DLL" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Web.Services\2.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll" /R:"C:\WINDOWS\assembly\GAC_32\System.Web\2.0.0.0__b03f5f7f11d50a3a\System.Web.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll" /R:"C:\WINDOWS\assembly\GAC_32\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.IdentityModel\3.0.0.0__b77a5c561934e089\System.IdentityModel.dll" /R:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\35022879\15bb4e6e\assembly\dl3\220e9857\c111e991_e5a3c901\RadTabStrip.Net2.DLL" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.WorkflowServices\3.5.0.0__31bf3856ad364e35\System.WorkflowServices.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Runtime.Serialization\3.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll" /out:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\35022879\15bb4e6e\App_Web_selection.aspx.cdcab7d2.zu2jxu86.dll" /debug- /optimize+ /w:4 /nowarn:1659;1699;1701  "c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\35022879\15bb4e6e\App_Web_selection.aspx.cdcab7d2.zu2jxu86.0.cs" "c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\35022879\15bb4e6e\App_Web_selection.aspx.cdcab7d2.zu2jxu86.1.cs"


Microsoft (R) Visual C# 2005 Compiler version 8.00.50727.3053
for Microsoft (R) Windows (R) 2005 Framework version 2.0.50727
Copyright (C) Microsoft Corporation 2001-2005. All rights reserved.

c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\35022879\15bb4e6e\App_Web_selection.aspx.cdcab7d2.zu2jxu86.0.cs(187,57): error CS0012: The type 'System.Web.UI.ScriptManager' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\35022879\15bb4e6e\assembly\dl3\aa6ad42e\00c60154_7494ca01\Telerik.Web.UI.DLL: (Location of symbol related to previous error)
c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\35022879\15bb4e6e\App_Web_selection.aspx.cdcab7d2.zu2jxu86.0.cs(344,52): error CS0012: The type 'System.Web.UI.IScriptControl' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\35022879\15bb4e6e\assembly\dl3\aa6ad42e\00c60154_7494ca01\Telerik.Web.UI.DLL: (Location of symbol related to previous error)
Veselin Vasilev
Telerik team
 answered on 02 Feb 2010
1 answer
184 views
Hi, Has anyone out there tried to connect a CDN such as Rackspace Files with FileExplorer?  If anyone has done it, I would love to talk to you. Thanks.
Fiko
Telerik team
 answered on 02 Feb 2010
6 answers
138 views
Hi,

Out-of-the-box marking sorted columns (with special "up" and "down" icons) looks well but requires a lot of space (it is especially significant in the case of a narrow, icons only containing column). I would like to be able to sort columns but without any marking.
First, I've removed images:
div.RadGrid .rgHeader .rgSortDesc  
{  
  width: 0px;  
  height: 1px;  
  background-image: none;  
} 
(the same for rgSortAsc).
It works perfect under IE7 and Opera. But in this case, there is a button added (when the column is sorted in any direction); this button has its caption made of a single space character. It is perfectly invisible under these two browsers but under any other one it still occupies some additional space.
Important: I'm using the "Simple" skin.
Can I do anything to leave the header of the sorted column unchanged?

Best regards
Tomasz
Tomasz M.Lipiński
Top achievements
Rank 1
 answered on 02 Feb 2010
1 answer
106 views
Hi all.
I have a own server control which derive from RadGrid
public class MyGrid : Telerik.Web.UI.RadGrid{}

I want to render that control in the update panel (I don't want the postback to the server when e.g. I want to sort data in column).
How can i do that?

My code at this moment.
        protected override void CreateChildControls() 
        { 
            base.CreateChildControls(); 
            Control parent; 
            Control container; 
 
            ScriptManager sm = ScriptManager.GetCurrent(Page); 
 
            if (sm == null || !sm.EnablePartialRendering) 
            { 
                container = new Control(); 
                parent = container; 
            } 
            else 
            { 
                UpdatePanel up = new UpdatePanel(); 
                container = up.ContentTemplateContainer; 
                parent = up; 
            } 
 
            this.Controls.Add(parent); 
        } 
 
        protected override void RenderContents(HtmlTextWriter output) 
        { 
            EnsureChildControls(); 
             
           //parent.RenderControl(output); 
            base.RenderContents(output); 
        } 

[edit]
I'va found a RadAjaxManager control. Maybe this will be better for this solution than update panel, but still I don't know how to render my derived class with this control. I need this all in one dll file.
Łukasz Kuryło
Top achievements
Rank 1
 answered on 02 Feb 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?