Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
249 views
I have implemented a RadProgressArea for a RadFileUpload control.  Works great locally but when rolled to my production server (IIS 7.5) what happens is this:

1. Select a file
2. Click Upload
3. I select a large file so it takes a while
4. I see the time remaining ticking down, 8, 6, 4, 2, 0 and THEN AFTER the time remaining has went to 0 then the progress bar starts moving to the right, 20%, 44%, 100%.

So I put event log entries in the code to try and see what's up.  I tried every forum suggestion on web.config changes, handler changes and none of that works.  However I have found the issue.  I update the progress bar in my server side code.  I have a method that uploads my file in chunks to the destination folder and as it is doing that I update the RadProgressContext.  Here's the problem though.  When I click my Upload button it takes EXACTLY the length of time to upload the file before that server side button click method is executed.  So in step 4 above as that time is ticking down the RadProgressHandler is being called client side and then once it is completed my button method is executed and my progress bar starts updating and the file is ACTUALLY being uploaded then. 

Can someone explain to me what the crap is going on?  Why is it when I click my Upload button (it's just an asp.net button) it acts as if the file is being uploaded and then once complete with time remaining of 0 the actual button click method is executed?



Plamen
Telerik team
 answered on 01 Jan 2015
9 answers
468 views
Hello,

We have implemented RadProgressArea in our web application for Import function.
We are reading file and then processing each record one by one to insert/update in database. It is long running task depends on file's data. We added RadProgressArea to show import progress in percentage. We did not use RadProgressArea in file upload though.

It is working fine in our local environment but when we posted that on server, it is not working. Progress bar is not shown in Firefox, IE10 shows sometime and in chrome shows from start but not update percentage count.

We read articles and forums but did not find perfect solution for that. We make all web.config changes as per the article.

Can you please guide us in that?

Regards,

Plamen
Telerik team
 answered on 01 Jan 2015
4 answers
275 views
Hi,
 
I'm using Style Builder to modify the Silk theme, it works ok. But I need to remove the background image for "Button normal state right rounded corner", on the web browser it's ok, but when I download the style and test on my project, display the background image.

And when I upload the Zip file to modify the button, the background image is displayed on the editor.

It is the same case for Tabstrip and Menu.


Regards.

Mike

Ivan Zhekov
Telerik team
 answered on 01 Jan 2015
1 answer
166 views
Hello

I have attached to photos in this thread , i want to set my style in a way that , my tab looks like photo2,what ever I do i cant make it looks like photo2 ,i have attached my style ,please help me...

Thanks a lot


.RadTabStrip
{
    
   margin-top:3px;    
   height:37px;
   float:right;
   margin-right:200px;
}
.RadTabStrip div
{
    float:right;
}

.RadTabStripTop_Default_rtl .rtsLevel .rtsLink
{
    padding-right:0 !important
}
.RadTabStrip .rtsUL, .RadTabStripVertical .rtsUL
{
    
}
.RadTabStrip_Default .rtsLI, .RadTabStrip_Default .rtsLink
{


}
.RadTabStrip .rtsLI .rtsLink
{
   
}
.RadTabStrip .rtsLevel1 .rtsLI .rtsLink
{
    color:#fff;
    background:url(../Images/Cool_Tab/tab-uselected-left.png) 10px 0 no-repeat;
    height:37px;
    font-family:Yekan,YekanNumbers,Tahoma;
    font-size:9pt;
    font-weight:normal;
    padding-left:53px;
    margin-left:0;
 
}
.RadTabStrip .rtsLevel1 .rtsLI .rtsLink .rtsOut
{
   background:url(../Images/Cool_Tab/tab-uselected-right.png) right 0px no-repeat;
    height:37px;
    padding-right:53px;
 
     
}
.RadTabStrip .rtsLevel1 .rtsLI .rtsLink .rtsIn
{
      background-image:url('../Images/Cool_Tab/tab-uselected.png');
 height:37px;
   background-repeat:repeat-x;
   line-height:37px;
}
.RadTabStrip .rtsLevel1 rtsLI .rtsLink:hover
{
    color:Green;
}
.RadTabStrip .rtsLevel1 .rtsLI .rtsLink.rtsSelected
{
    padding-top: 0px;
   background: transparent url('../Images/Cool_Tab/tab-selected-left.png') 10px 0px no-repeat;
   line-height:40px;
   width:53px;
   
   z-index:2 !important
 
}
.RadTabStripTop_Default_rtl .rtsLevel .rtsLink
{
   /*padding-right:5px !important*/
}
.RadTabStrip .rtsLevel1 .rtsLI .rtsLink.rtsSelected .rtsOut
{
   background-image:url('../Images/Cool_Tab/tab-selected-right.png');
   background-position:right;
   background-repeat:no-repeat;
   height: 40px;
   color: #fff;   
   font-family:Yekan,YekanNumbers,Tahoma;
   font-size:9pt;
   font-weight:normal;
 
   
}
.RadTabStrip .rtsLevel1 .rtsLI .rtsLink.rtsSelected .rtsIn
{
  background-image:url('../Images/Cool_Tab/tab-selected.png');
 height:40px;
   background-repeat:repeat-x;
   color:#000
    
}

Ivan Zhekov
Telerik team
 answered on 01 Jan 2015
1 answer
195 views
Hello,
I'm still using radgrid for asp.net (2007 edition).
I have many grids with edit form in user controls.
Usually I have on the user control (the edit form) two link buttons with command names "Update" and "Cancel".
I handle the command in an ItemCommand event procedure.
When those links are clicked I get in the event argument an item which is "EditFormItem".
I tried to add a third link with new commandname "Attach".
When the the event procedure is called after clicking the new link, I get an item of type "Item".
Can I use commandname which is not "Update", "Insert", "Cancel" and still get EditFormItem item?
If it's hardwired, what can I do to access the edit form when using a different commandname like "Attach"?

TIA
Gad
Konstantin Dikov
Telerik team
 answered on 01 Jan 2015
1 answer
94 views
Hello,
     Its a simple question with some misunderstanding i-e if I set the property of InsertItemDisplay to bottom and iterate through the rows newly inserted they always show at top. This is normal scenario if InsertItemDisplay is at top but weird when New Item is inserted at bottom. It looks like this:

Display Order                      RowIndex (Client JS)
4 (new row)                                     1
3 (new row)                                     2
1 (old row)                                       3
2 (old row)                                       4

Please provide a solution.
Appreciate your help.
Konstantin Dikov
Telerik team
 answered on 01 Jan 2015
1 answer
160 views
Hi,

I have raddatepicker inside the radgrid edit template. And a a checkbox. Now, I want to hide/show datepicker on click of checkbox. 

Can anyone please guide me on the same?

Thanks

 
Jayesh Goyani
Top achievements
Rank 2
 answered on 01 Jan 2015
2 answers
278 views
I have a radgrid that may, at times, hold up to or over 30,000 rows. We also have custom paging in place on this radgrid. I've read several places that the radgrid is not meant to handle exporting such large amounts of data. I'm totally fine with this but, from a user point of view, I need a way to cancel such requests and display a message to the user. I'd like to either:

A) Set the exporting buttons on the radgrid to disabled but still show them when the records are over a certain amount.

Or

B) Stop the exporting event on the item command (or at any other point?) when records are over a certain amount and display a message to the user (this one is more favorable).

I have found that I can cancel the exporting by reacting to the client side event of the item command but the moment I add the client side event, even though it does absolutely nothing, the exporting no longer works. The application fires the item command event in the code behind and on the client side but never reaches the grid exporting event. It also never exports. Instead it merely returns the radgrid with the new page size and the removed filters and headers.

protected void RadGridInventory_ItemCommand(object sender, GridCommandEventArgs e)
        {
               if (e.CommandName == RadGrid.ExportToExcelCommandName || e.CommandName == RadGrid.ExportToCsvCommandName)
            {
                RadGridInventory.PageSize = RadGridInventory.MasterTableView.VirtualItemCount;
            }
 
            if (e.CommandName == RadGrid.ExportToExcelCommandName)
            {
                var headerItem = (GridHeaderItem)RadGridInventory.MasterTableView.GetItems(GridItemType.Header)[0];
                headerItem.Visible = true;
                isExport = true;
            }
 
            if (e.CommandName == RadGrid.ExportToCsvCommandName)
            {
                RadGridInventory.MasterTableView.GetColumn("CSVAcountId").Display = true;
                RadGridInventory.MasterTableView.GetColumn("AccountId").Display = false;
                RadGridInventory.MasterTableView.GetColumn("CSVStatus").Display = true;
                RadGridInventory.MasterTableView.GetColumn("Status").Display = false;
           }
        }
 
protected void RadGridInventory_GridExporting(object source, GridExportingArgs e)
        {
            if (e.ExportType == ExportType.Excel)
            {
                string customText = "<h1 style='text-align:center;'>Inventory Report for " + _applicationUser.Customer.Name + "</h1>";
                customText += "<p style='text-align:center;'><b>Current Date:</b> " + DateTime.Now + "<br />";
 
                if(RadDatePickerStarting.SelectedDate != null && RadDatePickerEnding.SelectedDate != null){
                    customText += "<b>Date Range Covered:</b> " + RadDatePickerStarting.SelectedDate + " - " + RadDatePickerEnding.SelectedDate + "<br />";
                } else {
                    customText += "<b>Date Range Covered:</b> " + RadComboBoxChoices.SelectedItem.Text + "<br />";
                }
 
                customText += "<b>Clients:</b>";
                foreach (var client in ClientSelector1.SelectedClients)
                {
                    customText += " " + client.Name + ",";
                }
 
                customText = customText.TrimEnd(',');
                customText += "</p>";
                e.ExportOutput = e.ExportOutput.Replace("<body>", "<body>" + customText);
            }
            isExport = false;
        }

<script type="text/javascript">
 
        function onRequestStart(sender, args) {
            if (args.get_eventTarget().indexOf("ExportToExcelButton") >= 0 ||
                    args.get_eventTarget().indexOf("ExportToCsvButton") >= 0) {
                args.set_enableAjax(false);
            }
        }
 
        function onCommand(sender, args) {
        }
    </script>

Any advice or examples on how to achieve either of these outcomes would be greatly appreciated.
Kris
Top achievements
Rank 1
 answered on 31 Dec 2014
3 answers
118 views
Hi there,

I'm trying to use the RadWizard in a custom Widget for the latest Sitefinity version (7.3.5600).

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>

<telerik:RadWizard ID="RadWizard1" runat="server">
    <WizardSteps>
        <telerik:RadWizardStep ID="RadWizardStep1" Title="test" runat="server" StepType="Start">
        </telerik:RadWizardStep>
    </WizardSteps>
</telerik:RadWizard>

Unfortunatelly I get an error, that the type 'Telerik.Web.UI.RadWizardStepCollection' has no property named 'telerik:RadWizardStep'. I used this simple example as well as a more complex version from the demo site. Perhaps a special Sitefinity problem?

Thanks
Dieter

Junior Dominguez
Telerik team
 answered on 31 Dec 2014
1 answer
154 views
Hi
we have column 'log_message' . if i click that column header it has to be sorted but it is not happening. Instead it is navigated to error page.
I am unable to sort only the specified column( 'log_message' ) in the RadGrid but i can sort all other columns. Please find the code below which we are using

<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.Master" AutoEventWireup="true" CodeBehind="x.cs"
Inherits="x" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentMain" runat="server">
<div class="outer_content">
<telerik:RadGrid ID="RadGrid1" runat="server" AllowFilteringByColumn="True"
AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False"
CellSpacing="0" DataSourceID="dsx" GridLines="None"
PageSize="100" ShowGroupPanel="True" Skin="Metro">
<ClientSettings AllowColumnsReorder="True" AllowDragToGroup="True"
ReorderColumnsOnClient="True">
</ClientSettings>
<MasterTableView DataKeyNames="log_id" DataSourceID="x">
<CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
<RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column">
</RowIndicatorColumn>
<ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column">
</ExpandCollapseColumn>
<Columns>
<telerik:GridBoundColumn DataField="log_id" DataType="System.Int32"
FilterControlAltText="Filter log_id column" HeaderText="log_id" ReadOnly="True"
SortExpression="log_id" UniqueName="log_id">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="log_time" DataType="System.DateTime"
FilterControlAltText="Filter log_time column" HeaderText="log_time"
SortExpression="log_time" UniqueName="log_time">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="log_type"
FilterControlAltText="Filter log_type column" HeaderText="log_type"
SortExpression="log_type" UniqueName="log_type">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="log_page"
FilterControlAltText="Filter log_page column" HeaderText="log_page"
SortExpression="log_page" UniqueName="log_page">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="log_message"
FilterControlAltText="Filter log_message column" HeaderText="log_message"
SortExpression="log_message" UniqueName="log_message">
<ItemStyle HorizontalAlign="Left" VerticalAlign="Top" />

</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="log_context"
FilterControlAltText="Filter log_context column" HeaderText="log_context"
SortExpression="log_context" UniqueName="log_context">
</telerik:GridBoundColumn>
</Columns>
<EditFormSettings>
<EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn>
</EditFormSettings>
</MasterTableView>
<FilterMenu EnableImageSprites="False"></FilterMenu>
</telerik:RadGrid>
<asp:EntityDataSource ID="dsPtcHistoryReports" runat="server"
ConnectionString="name=PTCHistoryReportsEntities"
DefaultContainerName="PtcHistoryReportsEntities" EnableFlattening="False"
EntitySetName="ReportsWebLogs">
</asp:EntityDataSource>
</div>
</asp:Content>

PLease help me in this.
Daniel
Telerik team
 answered on 31 Dec 2014
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?