Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
312 views
As a quick background we currently have a very basic ASP.NET website using Forms Authentication.  The website itself is only about 6 pages with no real functionality or code behind, it's mainly just styles and some JavaScript.  The Main functionality of our application is contained in Silverlight applications contained on those pages.  We recently had a need to implement compression on our WCF Service calls and decided to look at RadCompression since we were all ready using Telerik controls inside of our Silverlight application.

The first issue I noticed is that on my development machine when running the application along side Fiddler in order to view the responses coming back from the server I receive an HTTP Protocol Violation on every service response of a Content-Length Mismatch.  What it appears to be doing is sending the uncompressed byte size in the header but then sending the body compressed which is different amounts.

Here is an example:

Fiddler has detected a protocol violation in session #25.
Content-Length mismatch: Response Header indicated 14,105,406 bytes, but server sent 1,304,570 bytes.

This error is mostly an annoyance as I have to clear out all of them and we make quite a few service calls.  

It however only happens on my local development machine, when deployed to an IIS instance it works fine.  

My second problem, only happens when deployed to IIS. 

After deploying the website to IIS I've run through it (while running Fiddler) and noticed that it's compressing not only the service calls but the actual Pages of the site as well.  From my understand and what I read on the RadCompression documentation it's not supposed to do that unless we specifically tell it to.  

The only thing that I have done to implement Rad Compression was add this section to my web config:
<system.webServer>
   <modules runAllManagedModulesForAllRequests="true">
      <add name="RadCompression" type="Telerik.Web.UI.RadCompression" />
    </modules>
</system.serviceModel>
And then drop the Telerik.Web.UI.dll into my bin folder.  

No other settings have been changed, so shouldn't it only be compressing my service calls?

Finally, also only when deployed to IIS we are having problems logging out through Forms Authentication.  What happens is when we click the Log Out link it simply refreshes the page but does not log the user out.  If I comment the web.config line for RadCompression everything works as expected.  So since the only change i'm making is enabling RadCompression I am Certain that it is the cause of the log out button not functioning properly.  Perhaps if we had more functionality on the ASP.NET side it would cause problems there too.

Here is the code for the log out button for reference.

<asp:LoginView ID="HeadLoginView" runat="server" EnableViewState="false">
    <AnonymousTemplate>
        [ <a href="~/Account/Login.aspx" ID="HeadLoginStatus" runat="server">Log In</a> ]
    </AnonymousTemplate>
    <LoggedInTemplate>
        Welcome <span class="bold"><asp:LoginName ID="HeadLoginName" runat="server" /></span>!
        [ <asp:LoginStatus ID="HeadLoginStatus" runat="server" LogoutAction="Redirect" LogoutText="Log Out" LogoutPageUrl="~/"/> ]
    </LoggedInTemplate>
</asp:LoginView>
Radoslav
Telerik team
 answered on 06 Jun 2013
4 answers
281 views

Hi All,

I am not sure if I am pushing the limits of RadGrid here, but below is the code that I am using.

I am trying to do is group the data in the RadGrid by Entity and then by Location, this I have achieved.  I would also like to have a sub total per location and then a total per entity.

As I said I get the grouping right, I also get the total by location right, but what seems to be is happening is that total per Entity seems to be the last amount in the location.

Firstly, can I achieve what I am trying to and secondly how.

Thanx

<telerik:RadGrid ID="RadGridMonthlyReport" runat="server" AllowFilteringByColumn="True"  
                    AllowSorting="True" DataSourceID="objDsMonthlyBillingReportAll"   
                    GridLines="None" Skin="Vista" HorizontalAlign="Left">  
    <HeaderContextMenu> 
        <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
    </HeaderContextMenu> 
    <ExportSettings OpenInNewWindow="True" ExportOnlyData="True" /> 
 
    <MasterTableView ShowGroupFooter="true" AutoGenerateColumns="False" DataSourceID="">  
        <RowIndicatorColumn> 
            <HeaderStyle Width="20px"></HeaderStyle> 
        </RowIndicatorColumn> 
        <ExpandCollapseColumn> 
            <HeaderStyle Width="20px"></HeaderStyle> 
        </ExpandCollapseColumn> 
        <Columns> 
            <telerik:GridBoundColumn DataField="EntityNumber" HeaderText="Entity" SortExpression="EntityNumber" UniqueName="EntityNumber" /> 
            <telerik:GridBoundColumn DataField="LocationName" HeaderText="Department" SortExpression="LocationName" UniqueName="LocationName" /> 
            <telerik:GridBoundColumn DataField="ItemName" HeaderText="Item" SortExpression="ItemName" UniqueName="ItemName" /> 
            <telerik:GridBoundColumn DataField="Total" DataType="System.Decimal" HeaderText="Total" ReadOnly="True" SortExpression="Total" UniqueName="Total" Aggregate="Sum" FooterText="Total: " /> 
        </Columns> 
        <GroupByExpressions>      
            <telerik:GridGroupByExpression> 
                <GroupByFields> 
                    <telerik:GridGroupByField FieldName="EntityNumber" /> 
                </GroupByFields> 
                <SelectFields> 
                    <telerik:GridGroupByField FieldName="EntityNumber" HeaderText="Entity Number" /> 
                </SelectFields> 
            </telerik:GridGroupByExpression> 
            <telerik:GridGroupByExpression> 
                <GroupByFields> 
                    <telerik:GridGroupByField FieldName="LocationName" /> 
                </GroupByFields> 
                <SelectFields> 
                    <telerik:GridGroupByField FieldName="LocationName" HeaderText="Location Name" /> 
                </SelectFields> 
            </telerik:GridGroupByExpression>              
        </GroupByExpressions> 
    </MasterTableView> 
    <FilterMenu> 
        <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
    </FilterMenu> 
</telerik:RadGrid> 
Princy
Top achievements
Rank 2
 answered on 06 Jun 2013
4 answers
173 views
Hi, i am currently creating a file upload section on a web page that can be view on every type of device (Computer, Tablets and mobile phone). When i test the file upload section on a standard computer everything works perfectly. When i test it on mobile phone (I'm using Samsung Galaxy S2 with all the latest update) i have access to the files on my phone. I can select one and it seems to upload perfectly ( I got the green dot ) but in fact the file created in the template directory of the control ( app_date\RadUploadTemp ) has a size of 0 bytes. So when i press my submit button the file copied in my working directory is invalid and cannot be read. You can test it yourself on your demo page.
http://demos.telerik.com/aspnet-ajax/asyncupload/examples/additionalfields/defaultcs.aspx

When i upload a file on this page, the file size is always 0...

Is it a known issue ? a mobile browser limitation ? or what ever the explanation...

Can you help me on that ? or do you know an alternative solution for mobile browser ?

Thanks !

Sébastien
Marc
Top achievements
Rank 1
 answered on 06 Jun 2013
1 answer
88 views
Hi,

I am using the DNN wrappers for Telerik ASP.Net controls, so I hope you can help me anyway. I using a DnnSlider (RadSlider) control on a multilingual site, and I wonder if it's possible to translate the word "Drag" when hovering over a slider. How can this be achieved?

Best wishes
Michael
Slav
Telerik team
 answered on 05 Jun 2013
5 answers
190 views
I guess this is my stupid question week.  I have a Hierarchy Grid that has one detail grid.  That grid allows rows to be edited in PopUp Mode.  Before the PopUp is shown I want to increase the width of one of the gridboundcolumns that will appear on the PopUp..  I can get a handle to the field but cannot figure out how to change the width.  There is no width property available.  Code is posted below.  I have also tried the FindControl method used in other examples but cannot get a handle to it that way.  Can someone point me in the right direction?  Thanks

protected void RadGrid1_ItemCommand(object source, Telerik.Web.UI.GridCommandEventArgs e) 
        {            
             
            if ("Detail".Equals(e.Item.OwnerTableView.Name)) 
            {                 
                GridBoundColumn packageColumn = (GridBoundColumn)e.Item.OwnerTableView.GetColumnSafe("PackageName") as GridBoundColumn; 
                GridBoundColumn fileIdColumn = (GridBoundColumn)e.Item.OwnerTableView.GetColumnSafe("FileId") as GridBoundColumn; 
                GridBoundColumn connectionStringColumn = (GridBoundColumn)e.Item.OwnerTableView.GetColumnSafe("ConnectionString") as GridBoundColumn;                 
                
                if (e.Item.IsInEditMode && e.Item is IGridInsertItem)                
                { 
                    (e.Item as GridEditableItem)["PackageName"].Enabled = true
                } 
                if ("InitInsert".Equals(e.CommandName)) 
                { 
                    packageColumn.ReadOnly = false
                    fileIdColumn.ReadOnly = false
                    connectionStringColumn.ItemStyle.Width = Unit.Pixel(200); //THIS IS THE FIELD I WANT TO CHANGE THE WIDTH OF                   
                } 
                else 
                { 
                    packageColumn.ReadOnly = true
                    fileIdColumn.ReadOnly = true
                }                 
            } 
        }         

Senthilnathan
Top achievements
Rank 1
 answered on 05 Jun 2013
1 answer
70 views
In one of the forum entries I have read that we cannot have tooltip and zoom at the same time.
I wanted to know if we can have some custom tooltip functionality when zoom in enabled.
Petar Kirov
Telerik team
 answered on 05 Jun 2013
2 answers
97 views
Hello, 
I've disabled the embedded skins and every control renders fine, but the image manager in the Editor (also file manager and link manager) doesn't render well, please see the attached images.

This is what fiddler shows:


# Result Protocol Host URL Body Caching Content-Type Process Comments Custom
532 200 HTTP localhost:33228 /WebPages/Telerik.Web.UI.DialogHandler.aspx?DialogName=DocumentManager&UseRSM=true&Skin=Metro&Title=Gestion%20de%20Documentos&doid=541daacd-d2a4-4efb-8949-26bb54ac01e6&dpptn=&dp=YTISL2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CwsNGhcbCAMCLFgEESt1PBh7MSwefhUSYCASE3w0Bn4WW2FRVHJiYWcUaBELBHp%2BCT4NPRNSPlsAPkAVFTkOISxkFzcBVwpZZR4naVIPPG8NdUt1YGFbYGkUaAEkFh0BAGANGyMNAEUBPXoNFV5xKx53V1QaVj8EV0QGNFUkJE0Pd3VCUnNiJ3M6ISckBFsGDz5UHxUnEEAHBkQRIgI0EBl1PQwZCQEcZxsONWIlBlYVW21oVRVcLl8DDy4QB3oCDBU3GxZQEHMAAWYXIjt1Whp1PRAabRUcUDB1C2MIGgMVdhJMY0llEnEvMRURFFB4AwU3EyBQPkcDABEqJjoSLxtOVxsZfQkvUD0KCWdQDmQWd2ICZnUKaQ%3D%3D 78.791 private text/html; charset=utf-8

# Result Protocol Host URL Body Caching Content-Type Process Comments Custom
540 200 HTTP localhost:33228 /WebPages/Telerik.Web.UI.DialogHandler.aspx?DialogName=LinkManager&UseRSM=true&Skin=Metro&Title=Gestion%20de%20vinculos&doid=541daacd-d2a4-4efb-8949-26bb54ac01e6&dpptn=&dp=ZzJ9Nmg0NEcmXGELV3MOIWs%2BH3YnEFBwAwQdLhgyLUIaL1wEFgMCACxkMSUubBkEaTIWMGsmBl8gA3FvUmxbJ2QhFykcBH4HFhY%2FPCApFFkaL2UxJgMCGi0RMlQZCR0RUi0GbGU0CkIaZkNXVUh1LVxKGyolPXpHAAsoJxAMHEY1WX0xOS0zXhx0UgsVVisEYSJ1NWs0HlwZZnVvVxZbIV0AIQEfBFBNAAASLg4kAF00I2YuO148ASxOA1IVbDcEfzAeNFMrAlsPdWZIYUhfGm4tLQAjG3pbOT5QPCAkCEUPPFA0Ll0KOBd7NQwAfgkAUT0KMH0nDUQMAHVXVGNhLV8uKjMUFERfOBRcOhAmDFg3PB0yECkoHyxKUiYtbBUbUUcgCVQ7DlsXXGFPbHdPE2cuITwcAF9AFhU%2FHBQPFFQBLlg1LTYvWBllFzsfYwU%2FZSIwbWQPKGQgdnVzeXxbGV9IEzERBUwDPj8KIxYPAFw0B2J3LQQOXStIHxEpcxEBUS0WE2Y1LwYid0hCYEpbB2xLISkfOEsCODgdEBMNDFQAWEAxLVx1Gi1IHxAWfCsyUiESC2RSAgQZAH1PYEpbPnMUIXQfPkdAPwZUERA5Mng3ABlzIDgWLytmUjcCfxEmYkYgMmQ3AmAgA3VyYEpbNWg9H3cRP0BgFxQrIBAPFHgHW2IQLiggIi0RITsYUCsJZDI8CmgJBgchdm1Ke2xfGl8SAzIRBUxhF2NcERA1EHoAW1gtIDoOOwNiWl4%3D 34.929 private text/html; charset=utf-8

Any help would be appreciated. Thank you in advance.


Vessy
Telerik team
 answered on 05 Jun 2013
2 answers
102 views
I am trying to drag and drop from one grid to another.  I have 2 visual issues I would like to improve.

1. Can I make the drop zone in an empty grid be larger then a single dotted line?

2. I do not need to know if the row is dropped above or before a row, can I make the whole grid appear as the drop zone?

I have attached a mock up

Marty


moegal
Top achievements
Rank 1
 answered on 05 Jun 2013
1 answer
170 views
If I deploy the ASP.NET Ajax calendar within my organization, I need to be able to real time synch the schedule with each employees outlook calendar so that their schedule shows up on their cell phone.  Is there a solution for this? I can't seem to find anything but a one time export feature which will not work for me. I need the appoints to stay linked so that if an apt is deleted within the ajax calendar, it will then be deleted from the outlook calendar.

Thanks in advance,
-SCott
Vasil
Telerik team
 answered on 05 Jun 2013
6 answers
144 views
I assume it is possible to style the radtreeviewitem any way you like, I would like to style it, when selected in a similar method to the Backstage items. I have uploaded two images to illustrate my requirements, the first is a Normal treeview Item selected in ASP.Net project, with the metro skin, I would like this to be changed to something similar to the Backstage item, as shown in the Silverlight demo as shown in the backstage selection (metro).png I have uploaded.

Thanks in advance for any help.
Steve
Hristo Valyavicharski
Telerik team
 answered on 05 Jun 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?