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

I have 2 combo boxes on a page. The second one is dependent on the data selected in the first. The first one is loaded on page load. 

Everything works fine till this step.

1. User comes to screen, selects data in 1st combo. 
2. 2nd combo gets populated. User selects data in 2nd combo. 

Now here I have autopostback=true, and OnSelectedIndexChanged="RadComboBox2_SelectedIndexChanged", which hits the server and populates a Grid control. 

The problem I am facing is that when the form comes back, I have lost the data and the selected value in the 2nd dropdown. As a result, the grid control also doesnt get any data. 

This is how the 2nd combo looks. 
        <telerik:RadComboBox style="margin-left: 77%" ID="RadComboBox2" runat="server"  
          Skin="Windows7" OnClientItemsRequested="ItemsLoaded" 
          OnClientSelectedIndexChanging="LoadFunds" OnSelectedIndexChanged="RadComboBox2_SelectedIndexChanged" 
          OnItemsRequested="RadComboBox2_ItemsRequested" Width="350px" AutoPostBack="true"
        </telerik:RadComboBox> 
 


Any help would be appreciated here.

Thanks.
Kalina
Telerik team
 answered on 02 Feb 2010
1 answer
249 views
Hi,

   I have used hirarchial grid,i have a master detail structure....
This works fine,but i need to display a table along with inner grid
within the master table view.
I tried doing this using nestedview template but could achive the same.....
How will i be able to acheive this.....

Thanks in Advance
Pushpa.
Pavlina
Telerik team
 answered on 02 Feb 2010
1 answer
483 views
Hi,

I have following issue, i used this approach on previous project. Now with telerik components I dont get effect of higlighted control. Jquery add class to control wich is below that visible one.

<span id="ctl00_ctl00_BodyBase_ContentPlaceHolder1_DocTitle_wrapper" class="RadInput RadInput_Default" style="white-space: nowrap;"><input size="20" id="ctl00_ctl00_BodyBase_ContentPlaceHolder1_DocTitle_text" name="ctl00_ctl00_BodyBase_ContentPlaceHolder1_DocTitle_text" class="riTextBox riEnabled" style="width: 90%;" type="text"><input id="ctl00_ctl00_BodyBase_ContentPlaceHolder1_DocTitle" name="ctl00$ctl00$BodyBase$ContentPlaceHolder1$DocTitle" class="rdfd_ inputError" style="border: 0pt none ; margin: -18px 0pt 0pt; padding: 0pt; overflow: hidden; visibility: hidden; width: 1px; height: 1px;" value="" type="text"><input autocomplete="off" id="ctl00_ctl00_BodyBase_ContentPlaceHolder1_DocTitle_ClientState" name="ctl00_ctl00_BodyBase_ContentPlaceHolder1_DocTitle_ClientState" type="hidden"></span> 
         
        <span id="ctl00_ctl00_BodyBase_ContentPlaceHolder1_RequiredFieldValidator1" class="validation-error" style="color: Red; visibility: visible;">&nbsp;</span> 
         

Its class inputError on second input, but i think i need it on first one. 

Can you help me to set up css class to input control wich is handled by telerik RadTextbox/RadFormDecorator? 

Mainly i want show validation summary with listed errors and highlight conflicted controls. Is there some way to do it, when im using RadTextBox/RadFormDecorator?

Please as small more code as possible. I have many places to edit. Best solution is change Jquery script to add error class to the right input for me. 

Many Thanks!


Dimo
Telerik team
 answered on 02 Feb 2010
4 answers
235 views
I have a GridTemplateColumn in a RadGrid. It was a DateTime Column.

<telerik:GridTemplateColumn FilterListOptions="VaryByDataType" DataType="System.DateTime" 
                    DataField="cr_task_dt" GroupByExpression="cr_task_dt Group By cr_task_dt" HeaderText="Next date to contact" 
                    UniqueName="cr_task_dt" SortExpression="cr_task_dt"
                    <ItemTemplate> 
                        <asp:Label runat="server" ID="lblTaskDate" Text='<%# Eval("cr_task_dt_str") %>'></asp:Label> 
                    </ItemTemplate> 
                    <EditItemTemplate> 
                        <asp:TextBox CssClass="datepicker" ID="txtTaskDate" Text='<%# Eval("cr_task_dt") %>' 
                            runat="server"></asp:TextBox> 
                        <ajax:MaskedEditExtender ID="MaskedEditExtender4645" runat="server" TargetControlID="txtTaskDate" 
                            Mask="99/99/9999" MessageValidatorTip="true" OnFocusCssClass="MaskedEditFocus" 
                            OnInvalidCssClass="MaskedEditError" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left" 
                            CultureName="zh-SG" ErrorTooltipEnabled="True" /> 
                    </EditItemTemplate> 
                </telerik:GridTemplateColumn> 

The grid datasource was a linqdatasource. It works fine in all functionalities like sorting,filtering and grouping.
The only issue is it shows Time part in the grouping header as below,

"Next date to conact: 6/1/2010 12:00:00 AM"

"Next date to conact: 4/12/2010 12:00:00 AM"

I dont want the Time part (12:00:00 AM) to be displayed in the group header.  How to remove it?

Please help me sort it out. Thanks in advance.

Regards,

Aswin Suriya


Aswin S
Top achievements
Rank 1
 answered on 02 Feb 2010
2 answers
118 views

Hi All,

 

We are currently in the process of purchasing the AJAX RadControls suite for 3 developers. My question is, how easy is it / how fast can one get up to speed on developing with the AJAX controls assuming the following:

 

1. Everyone in our team is completely new to AJAX and working with RadControls

2. we have been supporting an old solution that uses RadControls but all of the templates were built for us by a consultant

3. the solution we currently support is .Net 1.1 and we develop in VS2003

4. We will be building our new app on VS2005 and .Net 2.0

 

We need to get a fairly small searching and customer database management app built in a month. We have done the functional and tech specs and are ready to begin coding.

 

So my question is (finally) - Is it realistic to expect us to be able to get up to speed and build some telerik enabled pages inside a month?

 

Where would you suggest we start? I downloaded the 794 page manual from the telerik site and will read but obviously that is going to eat a bunch of time. Are there any other good quick resources to get us up and running quickly?

Appreciate any feedback even if it is just - "you're screwed man..." :)

DC
Top achievements
Rank 1
 answered on 02 Feb 2010
3 answers
123 views

Sorry if I've missed the point here, but here's my issue.

I've got a RadGrid  declared like this

 

<telerik:RadGrid ID="RadGrid1" GridLines="None" runat="server" AllowPaging="True"

                    AutoGenerateColumns="False" OnUpdateCommand="UpdateItem" OnInsertCommand="UpdateItem"

                    AutoGenerateDeleteColumn="false" AutoGenerateEditColumn="false" OnDeleteCommand="DeleteItem"

                    Skin="WebBlue" OnNeedDataSource="NeedDataSource" Width="50%" OnItemCommand="LawyerSelected">

                    <PagerStyle Mode="NextPrevAndNumeric" />

                    <MasterTableView CommandItemDisplay="TopAndBottom" AutoGenerateColumns="false" DataKeyNames="LawyerID"

                        BorderColor="Black" BorderWidth="1px" GridLines="Both">

                        <Columns>

                            <telerik:GridBoundColumn DataField="LawyerID" DataType="System.Guid" AllowFiltering="false"

                                HeaderText="LawyerID" UniqueName="LawyerID" Visible="False">

                            </telerik:GridBoundColumn>

                            <telerik:GridBoundColumn DataField="Name" HeaderText="Name" UniqueName="Name">

                            </telerik:GridBoundColumn>

                            <telerik:GridBoundColumn DataField="Company" HeaderText="Company" UniqueName="Company">

                            </telerik:GridBoundColumn>

                            <telerik:GridTemplateColumn UniqueName="TemplateColumn2">

                                <ItemTemplate>

                                    <asp:LinkButton ID="EditButton" CommandName="Edit" CommandArgument="Edit" Text="Edit" runat="server"></asp:LinkButton>

                                </ItemTemplate>

                                <EditItemTemplate>

                                    <asp:LinkButton ID="UpdateButton" CommandName="Update" CommandArgument="Update" Text="Update" runat="server"></asp:LinkButton>

                                    <asp:LinkButton ID="CancelButton" CommandName="Cancel" CommandArgument="Cancel" Text="Cancel" runat="server"></asp:LinkButton>

                                </EditItemTemplate>

                            </telerik:GridTemplateColumn>

                        </Columns>

                        <EditFormSettings ColumnNumber="2" CaptionDataField="Name" CaptionFormatString="Editing Lawyer {0}">

                            <FormTableItemStyle Wrap="false" />

                        </EditFormSettings>

                    </MasterTableView>

                    <ClientSettings EnablePostBackOnRowClick="true"></ClientSettings>

                </telerik:RadGrid>

 

The important bits being that the auto edit feature is turned off.

 

What I want to be able to do is either click on the edit link (Edit Button) to edit the row or click on a row to do something else (display related information).

For some reason when I click on a row the CommandName that’s returned is usually rowClick and not Edit.

Chirag Dedhia
Top achievements
Rank 1
 answered on 02 Feb 2010
3 answers
292 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
133 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
314 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
202 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?