Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
100 views
I am currently using the context menu like this. It works on all img tags existing at page load. However, If when i try to create an img client side it does not have the context menu. I know you can use show method on the click event however I want it on the left click. Is it possible, and if so how?
<telerik:RadContextMenu runat="server" ID="conTest" OnClientShowing="ClientShowing"
    OnClientItemClicked="ClientClicked">
    <Targets>
        <telerik:ContextMenuTagNameTarget TagName="img" />
    </Targets>
    <Items>
        <telerik:RadMenuItem Text="Edit">
        </telerik:RadMenuItem>
        <telerik:RadMenuItem Text="Delete">
        </telerik:RadMenuItem>
        <telerik:RadMenuItem Text="View Full">
        </telerik:RadMenuItem>
    </Items>
</telerik:RadContextMenu>
jeff
Top achievements
Rank 1
 answered on 03 May 2011
1 answer
91 views
Hi,

Please help, I want to set autopostback to False at Radgrid filterIcon.
The purpose is to filter by multiple columns at once when I click on a button at  <CommandItemTemplate> .

Tsvetina
Telerik team
 answered on 03 May 2011
1 answer
61 views
Hello

I am trying to use a RadPanelBar with an XMLDataSource like this :

<telerik:RadPanelBar ID="pnlBar" Runat="server" Skin="Simple"  Width="100%" DataSourceID="XmlDataSource1" DataTextField="Text" DataValueField="Value"></telerik:RadPanelBar>
<asp:XmlDataSource ID="XmlDataSource1" runat="server" DataFile="~/FluxRSS.xml"    XPath="/items/*"></asp:XmlDataSource>

with a RadButton in the same page.

But in the RadButton onClick event, pnlBar.SelectedItem is always null.
How can I do to make the selectedItem persist over a postback?

Thank your for your answer.
Read you soon.
Kate
Telerik team
 answered on 03 May 2011
7 answers
173 views
Hi

Is there a way to create and attach context menus to the items on the tree based on the level they are on after the data is bound to the tree??
Would it be any different if it were a load on demand tree.?
Because I would have or not have different context menus on different nodes depending on their level.

Thanks
Helen
Telerik team
 answered on 03 May 2011
6 answers
354 views
I get the following jscript error:

Error updating jscript Intellisense: Telerik.Web.UI.Common.Jquery-vsdoc.js:Telerik.Web.UI: '_$' is undefined @ 2217:8.

I followed the documentation as described here: http://www.telerik.com/help/aspnet-ajax/introduction-jquery-intellisense.html but the problem still exists.

What to do ?
Pavel
Telerik team
 answered on 03 May 2011
7 answers
186 views
To maintain UI consistency in the site, I'd like to use the RadWindow in a fixed position as a normal div-like container.
 
I don't need (or want) it to pop-up, float, collapse, move or disappear.

Does anyone have any suggestions, advice, or example on doing that?

Thanks,

Ken
Georgi Tunev
Telerik team
 answered on 03 May 2011
3 answers
80 views
Hi all,

I have very strange issue, can some one enlighten me what can be the reason?
Here is brief description of what going on:
  1. RadGrid binded to List<WorkstationInfo> where Workstation is simple class
  2. binding happen in NeedDataSource event
  3. In SortCommand, I perform custom sorting.

 var sortExpr = new GridSortExpression();
                switch (e.OldSortOrder)
                {
                    case GridSortOrder.None:
                        sortExpr.FieldName = e.SortExpression;
                        sortExpr.SortOrder = GridSortOrder.Descending;


                        e.Item.OwnerTableView.SortExpressions.AddSortExpression( sortExpr );
                        break;
                    case GridSortOrder.Ascending:
                        sortExpr.FieldName = e.SortExpression;
                        sortExpr.SortOrder = gridWorkstationStatus.MasterTableView.AllowNaturalSort ? GridSortOrder.None : GridSortOrder.Descending;
                        e.Item.OwnerTableView.SortExpressions.AddSortExpression( sortExpr );
                        break;
                    case GridSortOrder.Descending:
                        sortExpr.FieldName = e.SortExpression;
                        sortExpr.SortOrder = GridSortOrder.Ascending;


                        e.Item.OwnerTableView.SortExpressions.AddSortExpression( sortExpr );
                        break;
                }


                e.Canceled = true;
                gridWorkstationStatus.Rebind();

All works fine first to clicks on any columns, then it stop working. To continue sort, the mouse should be clicked on logo or on already existed sort image button, but when other column is clicked, nothing happen - the post-back event not fired and no events called on server.

It's work fine on chrome, but on IE 8,9 it is have this issue.

Here is aspx page code:
<%@ Page Title="" Language="C#" MasterPageFile="~/TreePartMaster.Master" AutoEventWireup="true"
    Async="true" CodeBehind="LabInfo.aspx.cs" Inherits="Intel.Diamond.Web.Views.Monitor.SegmentView" %>


<asp:Content ID="Header" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Body" ContentPlaceHolderID="MainContent" runat="server">
    <telerik:RadGrid ID="gridWorkstationStatus" runat="server" AutoGenerateColumns="False"
        GridLines="None" AllowSorting="True" 
        GroupingEnabled="False" 
            onneeddatasource="gridWorkstationStatus_NeedDataSource" 
            onsortcommand="gridWorkstationStatus_SortCommand">
        <MasterTableView PageSize="30">
            <CommandItemSettings ExportToPdfText="Export to Pdf" 
                ShowAddNewRecordButton="False"></CommandItemSettings>
            <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
                <HeaderStyle Width="20px"></HeaderStyle>
            </RowIndicatorColumn>
            <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
                <HeaderStyle Width="20px"></HeaderStyle>
            </ExpandCollapseColumn>
            <Columns>
                <telerik:GridBoundColumn DataField="SegmentId" DataType="System.Int32" FilterControlAltText="Filter SegmentId column"
                    HeaderText="SegmentId" SortExpression="SegmentId" UniqueName="SegmentId" 
                    Visible="False">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="WorkstationTypeId" DataType="System.Int32" FilterControlAltText="Filter WorkstationTypeId column"
                    HeaderText="WorkstationTypeId" SortExpression="WorkstationTypeId" 
                    UniqueName="WorkstationTypeId" Visible="False">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="WorkStationStatus" FilterControlAltText="Filter WorkStationStatus column"
                    HeaderText="Workstation Status" SortExpression="WorkStationStatus" 
                    UniqueName="WorkStationStatus">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="WorkStationName" FilterControlAltText="Filter WorkStationName column"
                    HeaderText="Workstation" SortExpression="WorkStationName" 
                    UniqueName="WorkStationName">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="WorkstationType" FilterControlAltText="Filter WorkstationType column"
                    HeaderText="Workstation Type" SortExpression="WorkstationType" 
                    UniqueName="WorkstationType">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="HITManagerVersion" FilterControlAltText="Filter HITManagerVersion column"
                    HeaderText="HIT Version" SortExpression="HITManagerVersion" 
                    UniqueName="HITManagerVersion">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="IMVersion" FilterControlAltText="Filter IMVersion column"
                    HeaderText="IM Version" SortExpression="IMVersion" UniqueName="IMVersion">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="DriverVersion" FilterControlAltText="Filter DriverVersion column"
                    HeaderText="Driver Version" SortExpression="DriverVersion" 
                    UniqueName="DriverVersion">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="CableLossLastUpdated" FilterControlAltText="Filter CableLossLastUpdated column"
                    HeaderText="CableLoss Modified" SortExpression="CableLossLastUpdated" 
                    UniqueName="CableLossLastUpdated">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="HitManagerStatus" FilterControlAltText="Filter HitManagerStatus column"
                    HeaderText="HIT Status" SortExpression="HitManagerStatus" 
                    UniqueName="HitManagerStatus">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="LastUpdated" FilterControlAltText="Filter LastUpdated column"
                    HeaderText="Last Updated" SortExpression="LastUpdated" 
                    UniqueName="LastUpdated">
                </telerik:GridBoundColumn>
            </Columns>
            <EditFormSettings>
                <EditColumn FilterControlAltText="Filter EditCommandColumn column">
                </EditColumn>
            </EditFormSettings>
            <HeaderStyle Wrap="False" />
        </MasterTableView>
        <HeaderStyle Wrap="False" />
        <FilterMenu EnableImageSprites="False">
        </FilterMenu>
        <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default">
        </HeaderContextMenu>
    </telerik:RadGrid>
    <telerik:RadAjaxManagerProxy ID="LabMonitorAjaxManagerProxy" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="gridWorkstationStatus">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="gridWorkstationStatus" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManagerProxy>
</asp:Content>



Daniel
Telerik team
 answered on 03 May 2011
12 answers
325 views
I have added the markup necessary to specify the initial sort and filter.  When the page loads, the UI is set with the proper sort and filter indicated, but the request submitted by Telerik's Ajax code to my web service has no elements in either of List<GridSortExpression> or List<GridFilterExpression>.  So as a result, the grid is populated with unsorted & unfiltered data.

Here's the signature of the web service function that is called:
public Dictionary<string, object> GetAllUsersGrid(int startRowIndex, int maximumRows, List<GridSortExpression> sortExpression, List<GridFilterExpression> filterExpression)


Here's my markup:
<telerik:RadGrid ID="AllUsersGrid" runat="server" AllowPaging="True" GridLines="None"
    AutoGenerateColumns="False" Skin="WebBlue" AllowSorting="True" PageSize="20">
    <PagerStyle Mode="NumericPages" />
    <MasterTableView Font-Size="11px" AllowFilteringByColumn="true">
        <SortExpressions>
            <telerik:GridSortExpression FieldName="Name" SortOrder="Ascending" />
        </SortExpressions>
        <Columns>
            <telerik:GridBoundColumn HeaderText="Name" DataField="Name" UniqueName="Name" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left" ItemStyle-Wrap="false">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn HeaderText="Email Address" DataField="Email" UniqueName="EmailAddress" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn HeaderText="Access Level" DataField="AccessLevel" UniqueName="AccessLevel" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left" CurrentFilterFunction="EqualTo" CurrentFilterValue="User">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn HeaderText="Verified" DataField="EmailVerified" UniqueName="EmailVerified" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn HeaderText="Failed Logins" DataField="NumFailedLogins" UniqueName="FailedLogins" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn HeaderText="Reset" UniqueName="Reset" ItemStyle-Width="40" AllowFiltering="false">
            </telerik:GridBoundColumn>
        </Columns>
    </MasterTableView>
    <ClientSettings>
        <DataBinding Location="webservices/SupportSvcs.asmx" SelectCountMethod="GetAllUsersGrid"
            SelectMethod="GetAllUsersGrid">
        </DataBinding>
        <ClientEvents OnDataBindingFailed="AllUsers_DataBindingFailed" OnRowDataBound="AllUsers_RowDataBound"
             OnDataBound="AllUsers_DataBound" OnDataBinding="AllUsers_DataBinding" />
    </ClientSettings>
    <SortingSettings EnableSkinSortStyles="False" />
</telerik:RadGrid>

Seems like a Telerik bug to me because none of my Javascript is invoked in the process.  Help!
Iana Tsolova
Telerik team
 answered on 03 May 2011
3 answers
69 views
Hello,
When my page has a RadAjaxLoadingPanel it does a full postback. When I remove the control everything works fine.
The page is very simple. I tried with a RadAjaxManager, it has the same problem.
Version 2011.1.315.40

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="WebApplication3.WebForm1" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" />
    <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" LoadingPanelID="RadAjaxLoadingPanel1"
        HorizontalAlign="NotSet">
        <telerik:RadGrid ID="RadGrid1" AllowPaging="True" DataSourceID="SqlDataSource1" runat="server"
            CellSpacing="0">
            <MasterTableView DataKeyNames="ID" AutoGenerateColumns="true">
            </MasterTableView>
        </telerik:RadGrid>
    </telerik:RadAjaxPanel>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:MyConnectionString %>"
        ProviderName="<%$ ConnectionStrings:MyConnectionString.ProviderName %>" SelectCommand="SELECT wptam_posts.ID, wptam_posts.post_title, wptam_terms.name, wptam_term_taxonomy.`count`, wptam_posts.post_date, wptam_posts.guid FROM wptam_term_taxonomy INNER JOIN wptam_term_relationships ON wptam_term_taxonomy.term_taxonomy_id = wptam_term_relationships.term_taxonomy_id INNER JOIN wptam_terms ON wptam_term_taxonomy.term_id = wptam_terms.term_id INNER JOIN wptam_posts ON wptam_term_relationships.object_id = wptam_posts.ID WHERE (wptam_term_taxonomy.taxonomy = 'category') AND (wptam_posts.post_type = 'post') ORDER BY wptam_posts.post_date">
    </asp:SqlDataSource>
    </form>
</body>
</html>

Any hints of what I am doing wrong?
Thank you for your help,
John.
shrujan
Top achievements
Rank 1
 answered on 03 May 2011
1 answer
153 views
Hi,

I have a GridAttachmentColumn in my grid which allows user to upload files. Unfortunately, In my Insert and Update routing, I'm ending up with null UploadedFileCollection collection even If user uploads a file. Note that, I don't use allowFileExtension and MaxFileSize properties in my GridAttachmentColumn columns property.
<telerik:RadGrid ID="grdFiles" runat="server" AutoGenerateColumns="False" OnInsertCommand="grdFiles_Insert"
        OnUpdateCommand="grdFiles_Update" OnEditCommand="grdFiles_Command" AllowSorting="True"
        OnDeleteCommand="grdFiles_Command"  OnNeedDataSource="grdFiles_NeedDataSource"
        OnCancelCommand="grdFiles_Command" OnItemDataBound="grdFiles_ItemDataBound" PageSize="10"
        OnItemCommand="grdFiles_ItemCommand" GridLines="None">
    <MasterTableView DataKeyNames="CollectionFileID"
        CommandItemDisplay="Top" EditMode="EditForms" >
    <CommandItemSettings   ShowAddNewRecordButton="true" AddNewRecordImageUrl="~/Images/AddRecord.gif"
                 AddNewRecordText="Upload New Collection File" >
    </CommandItemSettings>
    <RowIndicatorColumn  FilterControlAltText="Filter RowIndicator column">
    <HeaderStyle Width="20px"></HeaderStyle>
    </RowIndicatorColumn>
 
    <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
    <HeaderStyle Width="20px"></HeaderStyle>
    </ExpandCollapseColumn>
    <NoRecordsTemplate>
        <div> No files available.</div>
    </NoRecordsTemplate>
    <Columns>
        
        <telerik:GridBoundColumn DataField="CollectionFileID" DataType="System.Int32"
            FilterControlAltText="Filter CollectionFileID column" HeaderText="ID"
            ReadOnly="True" SortExpression="CollectionFileID"
            UniqueName="CollectionFileID" >
        </telerik:GridBoundColumn>
 
        <telerik:GridBoundColumn DataField="OriginalFileName" FilterControlAltText="Filter OriginalFileName column"
            HeaderText="Original Name" UniqueName="OriginalFileName" ReadOnly="true"
            SortExpression="OriginalFileName" >
        </telerik:GridBoundColumn>
 
        <telerik:GridBoundColumn DataField="AssignedFileName"
            FilterControlAltText="Filter AssignedFileName column" HeaderText="Assigned Name"
            SortExpression="AssignedFileName" Visible="false" UniqueName="AssignedFileName"  ReadOnly="true">
        </telerik:GridBoundColumn>
 
        <telerik:GridDateTimeColumn DataField="UploadDate" 
            FilterControlAltText="Filter UploadDate column" HeaderText="Date Uploaded"
            SortExpression="UploadDate" UniqueName="UploadDate"  ReadOnly="true"  DataFormatString="{0:d}">
        </telerik:GridDateTimeColumn>  
        <telerik:GridDateTimeColumn DataField="Modified" 
            FilterControlAltText="Filter Modified column" HeaderText="Date Modified"
            SortExpression="Modified" UniqueName="Modified" ReadOnly="true"  DataFormatString="{0:d}">
        </telerik:GridDateTimeColumn>
 
        <telerik:GridTemplateColumn DataField="Description"
            FilterControlAltText="Filter Description column"
            HeaderText="Description/Instruction" SortExpression="Description"
            UniqueName="Description">
             
           <EditItemTemplate>
                <telerik:RadTextBox ID="DescriptionTextBox" runat="server"
                    Text='<%# Bind("Description") %>'
                     Width="300px" Height="150px" TextMode="MultiLine"></telerik:RadTextBox>
                                 
            </EditItemTemplate>
            <ItemTemplate>
                <asp:Label ID="DescriptionLabel" runat="server"
                    Text='<%# Eval("Description") %>'></asp:Label>
            </ItemTemplate>
        </telerik:GridTemplateColumn>
        <telerik:GridAttachmentColumn
            EditFormHeaderTextFormat="Upload File:" HeaderText="Download" 
            AttachmentDataField="BinaryData" AttachmentKeyFields="CollectionFileID"
            FileNameTextField="OriginalFileName"  DataTextField="OriginalFileName" UniqueName="AttachmentColumn">
        </telerik:GridAttachmentColumn>
        <telerik:GridEditCommandColumn HeaderText="Edit" ButtonType="LinkButton">
            <HeaderStyle Width="2%" />
        </telerik:GridEditCommandColumn>
        <telerik:GridButtonColumn Text="Delete" HeaderText="Delete" CommandName="Delete" ButtonType="LinkButton">
                        <HeaderStyle Width="2%" />
        </telerik:GridButtonColumn>
    </Columns>
    <EditFormSettings>
    <EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn>
    </EditFormSettings>
    </MasterTableView>
    <FilterMenu EnableImageSprites="False"></FilterMenu>
 
    <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default"></HeaderContextMenu>
    </telerik:RadGrid>
Here is a code for insertion:
protected void grdFiles_Insert(object sender, GridCommandEventArgs e)
        {
            //Insertion Logic
            if (e.Item is GridEditableItem && e.Item.IsInEditMode)
            {
                GridEditableItem item = e.Item as GridEditableItem;
                 
                RadTextBox txtDesc = item.FindControl("DescriptionTextBox") as RadTextBox;
 
                RadUpload upload = (item.EditManager.GetColumnEditor("AttachmentColumn") as GridAttachmentColumnEditor).RadUploadControl;
                if (upload != null)
                {
                    UploadedFileCollection upFiles = upload.UploadedFiles;
 
                    if (upFiles.Count == 0)
                    {
                        //throw new Exception("No file uploaded");
                        string script = string.Format("alert('No file uploaded');");
                        ScriptManager.RegisterStartupScript(Page, typeof(Page), "myNoFileScript", script, true);
                         
                        return;
                    }
 
                    if (upload.InvalidFiles.Count > 0)
                    {
                        //throw new Exception("Invalid file type or file size is greater than maximum allowed.");
                        string script = string.Format("alert('Invalid file type or file size is greater than maximum allowed.');");
                        ScriptManager.RegisterStartupScript(Page, typeof(Page), "myInvalidFileScript", script, true);
                        return;
                    }
 
                    CollectionFile oFile = new CollectionFile();
 
                    if (txtDesc != null)
                    {
                        oFile.Description = txtDesc.Text.Trim();
                    }
 
                     
 
                    DateTime uploadTime = DateTime.Now;
 
                    oFile.UploadDate = uploadTime;
 
                     
                    upload.OverwriteExistingFiles = true;
                     
                    foreach (UploadedFile upfile in upFiles)
                    {
                        oFile.OriginalFileName = upfile.GetName();
                        oFile.FileSize = upfile.ContentLength;
                        oFile.FileExtension = upfile.GetExtension();
                        string assignedSystemFileName = System.IO.Path.GetFileNameWithoutExtension(upfile.GetName()) + "_" + System.Guid.NewGuid().ToString() + upfile.GetExtension();
                        oFile.AssignedFileName = assignedSystemFileName;
                        //Save File to server's file system
                        upfile.SaveAs(Server.MapPath("~/CollectionUploads/" + assignedSystemFileName), true);
                    }
 
                    oFile.Modified = uploadTime;
 
                     
 
                    CollectionFile.Insert(oFile);
                                         
                    oFile = null;
                    grdFiles.Rebind();
                     
                }
            }
     
        }

Here is my Update Method:
protected void grdFiles_Update(object sender, GridCommandEventArgs e)
        {
            if (e.Item is GridEditableItem && e.Item.IsInEditMode)
            {
                GridEditableItem itm = e.Item as GridEditableItem;
 
                string collFileId = Convert.ToString(itm.GetDataKeyValue("CollectionFileID"));
                //Edit Files
                RadTextBox txtDesc = itm.FindControl("DescriptionTextBox") as RadTextBox;
 
                RadUpload upload = (itm.EditManager.GetColumnEditor("AttachmentColumn") as GridAttachmentColumnEditor).RadUploadControl;
 
                CollectionFile oFile = CollectionFile.GetEntity(collFileId);
 
                if (oFile != null)
                {
                    DateTime ModifyTime = DateTime.Now;
 
                    if (txtDesc != null)
                        oFile.Description = txtDesc.Text.Trim();
 
                    if (upload != null)
                    {
                        upload.OverwriteExistingFiles = true;
                        UploadedFileCollection upFiles = upload.UploadedFiles;
 
                        //If new File is uploaded then delete old file
                        if (upFiles.Count != 0)
                        {
                            //New File is selected to upload
                            if (File.Exists(Server.MapPath("~/CollectionUploads/" + oFile.AssignedFileName)))
                            {
                                File.Delete(Server.MapPath("~/CollectionUploads/" + oFile.AssignedFileName));
                            }
                        }
 
                        foreach (UploadedFile upfile in upFiles)
                        {
                            oFile.OriginalFileName = upfile.GetName();
                            oFile.FileSize = upfile.ContentLength;
                            oFile.FileExtension = upfile.GetExtension();
                            string assignedSystemFileName = System.IO.Path.GetFileNameWithoutExtension(upfile.GetName()) + "_" + System.Guid.NewGuid().ToString() + upfile.GetExtension();
                            oFile.AssignedFileName = assignedSystemFileName;
                            //Save File to server's file system
                            upfile.SaveAs(Server.MapPath("~/CollectionUploads/" + assignedSystemFileName), true);
                        }
 
                    }
                    oFile.Modified = ModifyTime;
 
                    CollectionFile.Update(oFile);
                     
                    oFile = null;
                    grdFiles.Rebind();
                }
            }
             
        }

what am I doing wrong here ?

Just To Update you that my Grid is in RadAjaxPanel which in turn, uses loading panel. Anytime when I set EnableAJAX="false" for RadAjaxPanel then Upload control works well, but It stop working as soon as I set EnableAJAX="true".

Thanks

Tejas
Pavlina
Telerik team
 answered on 03 May 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?