Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
139 views
I have a page where I need to search for a record. This also allows to update the record and saving changes.
This error was detected by an user where has to search and update lot of records and he does this in a really fast way.

But, I could reproduce the same problem only searching for the same record a few times. So basically, what I had to do was enter a random number, press search... and after get the information I press search again...and again ...and again... a few more times until get the error message.


SCRIPT28: Out of stack space 
Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3ac9cbdec3-c810-4e87-846c-fb25a7c08002%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2013.1.403.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3abcbc5876-5d5e-4774-955e-2ecda3d55cd3%3a16e4e7cd%3aed16cbdc%3a874f8ea2%3af7645509%3a24ee1bba%3ac172ae1e%3af46195d3%3a9cdfc6e7%3a2003d0b8%3ae330518b%3a1e771326%3ac8618e41%3ae4f8f289%3a86526ba7%3ab7778d6c%3aaa288e2d%3a7165f74%3a19620875%3a490a9d4e%3abd8f85e4%3a58366029, line 6 character 12015

I've tryied to see the code on that line/character and is pointing for the following code:

// MicrosoftAjax.js
...
return Array.apply(null,a)}

In this link there is the whole file:
https://www.dropbox.com/s/y3klsn0jrt9wvwv/telerik_webresource_error.txt

How can I troubleshoot better this?

Thanks

Tiago
Top achievements
Rank 1
 answered on 06 Jun 2013
1 answer
81 views
Hello
In my development environment, my rad chart series all render with correct coloring. When viewing from the production server, the series that are red display as yellow. Any ideas or suggestions would be greatly appreciated.
Thank you,
Michael
Rosko
Telerik team
 answered on 06 Jun 2013
1 answer
131 views
Hello

I work for a UN organisation, where I am trying to create a dashboard, where a manager can drill into details about staff based on the kind of salary system they are on.

I have attached the chart I have created, for reference.

This chart I populate with a data source created declaratively in the .aspx file. I the chart in crated with a group by base in the salary system.

This creates the chart as is seen in the attachment. it automatically puts in the text codes for the salary system, for each column. cool functionality BTW, thank you! Now, I would like to create the drilldown, so that if a user clicks a column, then he/she gets details information about the distribution, of what is called grades, within each salary system.

For that I have created a second data source, with the same Control parameter that is used for the initial chart, this is a country, selected from a dropdown list, and a additional parameter, that I would like to be the text that is located below each of the columns.

I assumed that I could use the below code, to fill in that parameter:
protected void MyRadChart_Click(object sender, Telerik.Charting.ChartClickEventArgs args)
    {
        if (args.SeriesItem != null)
        {
            staffCountByGrade.SelectParameters[1].DefaultValue = args.SeriesItem.Name;
            MyRadChart.DataSourceID = "staffCountByGrade";
        }
    }
 The SelectParameter[0] comes from the dropdown list.

What I get is text lie Item 1, Item 2, and so on. Is the no way I can get at the text that the chart has automatically put in from the initial data source?
Rosko
Telerik team
 answered on 06 Jun 2013
4 answers
145 views
I am probably missing something simple. I have a master page with the RadAjaxManager, I created a brand new content page and added the RadAjaxManagerProxy. I added a button and a label. When I click the button, I put the current date on the label. Simple

<telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="Button_ClearFilters">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="Label_Today" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManagerProxy>
 
<asp:Button ID="Button_ClearFilters" runat="server" Text="Clear filters" OnClick="Button_ClearFilters_Click"></asp:Button>
<asp:Label ID="Label_Today" runat="server" Text="Today" />

Yet for some reason, I am getting an error: 
Uncaught TypeError: Cannot read property 'id' of undefined
I would appreciate the help.
Eyup
Telerik team
 answered on 06 Jun 2013
5 answers
496 views
I have query that returns several result sets.  One of these resultsets is turned into a table and bound to a grid.  That works fine.

I have two other result sets that return lists of values; let's call them aList and bList.  I will turn these into tables as well because I believe the GridBoundColumn was designed to work best with tables.

Here is my problem.  I am already specifying a resultset as a DataSouce for the grid. 

How do I get the GridBoundColumns in the grid mapped to the aList and bList tables?

Here is how the columns are defined:

 

 

<telerik:GridDropDownColumn

 

 

 

DataField="Office"

 

 

 

HeaderText="Offices"

 

 

 

UniqueName="chkOffices">

 

 

 

<HeaderStyle Font-Bold="True" HorizontalAlign="Center"/>

 

 

 

<ItemStyle HorizontalAlign="Center" />

 

 

 

</telerik:GridDropDownColumn>

 

<%

 

--***********************************************--%>

 

 

 

<telerik:GridDropDownColumn

 

 

 

DataField="TypeName"

 

 

 

HeaderText="Types"

 

 

 

UniqueName="chkTypes">

 

 

 

<HeaderStyle Font-Bold="True" HorizontalAlign="Center"/>

 

 

 

<ItemStyle HorizontalAlign="Center" />

 

 

 

</telerik:GridDropDownColumn>

 


I have a Bind method that is binding the table to the grid and it looks like this:

 

 

private void BindDetails(DataTable Details, DataTable List, DataTable TiersList, DataTable officeList)

 

{

 

 

RadGrid grid = radGridPromoDetails;

 

grid.

 

MasterTableView.SortExpressions.Clear();

 

grid.

 

CurrentPageIndex = 0;

 

grid.

 

DataSource = Details;

 

grid.

 

DataBind();

 

}


The XML from the resultset is in the following form:
<Details>
  <field1></field1>
  <field2></field2>
  <Types></Types> -- this is the first dataset that I want to display in a drop down in a grid row.
  <Offices></Offices> -- this is the second dataset that  I want to display in a drop down in a grid row.
</Details>

Any ideas?
Princy
Top achievements
Rank 2
 answered on 06 Jun 2013
3 answers
176 views
Hello,

Maybe I am missing something?  I am trying to accomplish the automatic scrolling experienced using RotatorType="SlideShow" but with buttons so that the user can back up (left) or go forward (right).  I currently use PauseOnMouseOver="True" to stop the slideshow until the user focuses elsewhere.  That works just fine.  Do I need to use some sort of client-side script whereby an onclick event is raised when the user clicks an image (right) causing a showNext, for example?  (Is there a showPrevious?)  Is this the best approach to combine automatic scrolling, like the standard SlideShow option, with the SlideShowButtons option?

Thanks in advance for whatever advice or help you might provide.

Cheers,

Doug
Colton3310
Top achievements
Rank 1
 answered on 06 Jun 2013
1 answer
406 views
I have a RadDropDownList that I bind to a List of State objects. The DataTextField is set to the state abbreviation property, and the DataValueField is set to a Guid identifier. I want to set the tooltip of the list items to the state name, IE. AK = Alaska. I have tried a few different ways to do this, but none are working. In each case I have stepped through the code to verify that each item gets the proper value assigned to it. In the browser though there are no tool tips.

Method 1: After calling DataBind() I iterate through each item in the RadDropDownList and assign the state name to the item's ToolTip property.
List<State> stateList = GetStates();
uxState.DataSource = stateList;
uxState.DataBind();
 
foreach (DropDownListItem item in uxState.Items)
{
    State state = stateList.Find(delegate(State myState)
    {
        return myState.StateId == new Guid(item.Value);
    });
    if (state != null)
    {
        item.ToolTip = state.Name;
    }
}


Method 2: Is the same as method 1 except I do all the work inside the DataBound event.

Method 3: Thinking the issue was something to do with the data binding I iterate the state object list and create new a DropDownListItem for each object. I then assign the tooltip to the new DropDownListItem and add it to the RadDropDownList.Items collection.
foreach (State state in List<State>)
{
    DropDownListItem item = new DropDownListItem(state.Abbreviation, state.StateId.ToString());
    item.ToolTip = state.Name;
    uxState.Items.Add(item);
}
Shinu
Top achievements
Rank 2
 answered on 06 Jun 2013
1 answer
107 views
Hi Guys
We have some problems with a relatively simple layout.
Our application has the classical layout, header on top, navigation bar left and content page on the right, implemented with nested splitters in the masterpages:
Site.Master:       Splitter horizontal with Pane Header and Pane Body with Body placeholder
Content.Master: Splitter vertical with Navigation pane left, Splitbar and Content pane right with Content placeholder
Content page: simple placeholder, loads user control
User control: Splitter horizontal with TabStrip on pane 1 and MultiPage on pane 2. Inside the multipage's pageview1 we load another splitter horizontal displaying some buttons and labels.

We have three problems with this layout:
1.) The inner splitter is not resized to 100%
2.) When resizing with splitbar, the inner splitter is resized to 100% plus some more percents
3.) Calling a client ajaxrequest from the RadButton does not reach the handler, but with a normal html button this works fine ??

Regarding the splitter resizing, we followed your rules: Main splitter to 100%, all of the following elements no explicit size, up to the multipage, all following elements set to 100%.

I wanted to attach a sample application, but only jpg, gif, png is allowed, so how to upload it ?
 Please send an answer soon, it is a little bit urgent !

Thanks
Michael
Vessy
Telerik team
 answered on 06 Jun 2013
5 answers
329 views
Hi,
I am using RAD controls for .Net Framework 3.5 [Product version  2008.2.826.20]
, We are getting problem with rad combobox in IE 8 , in compatible view it is OK, but in normal view with length of the combo box growing .
Here is the code we use in aspx page:
<telerik:RadComboBox ID="rcbNetwork" runat="server" Skin="Raikum" EnableEmbeddedSkins="false"
                        Width="181">
                    </telerik:RadComboBox>


We tried to maintain width with custom skin, style border is working but width is not working in IE 8, Here is original [ no border and no width maintain] the custom skin.


:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
/* RadComboBox Raikum skin */

/*global*/

.RadComboBox_Raikum *
{
    margin: 0;
    padding: 0;
}

.RadComboBox_Raikum,
.RadComboBox_Raikum .rcbInput,
.RadComboBoxDropDown_Raikum
{
    font: 12px "Segoe UI", Arial, sans-serif;
    color: #333;
    text-align: left;
}

.RadComboBox_Raikum_rtl,
.RadComboBox_Raikum_rtl .rcbInput,
.RadComboBoxDropDown_Raikum_rtl
{
    text-align: right;
}

/* combobox */

.RadComboBox_Raikum
{
    vertical-align: middle;
}

* html .RadComboBox_Raikum { vertical-align: top; }

.RadComboBox_Raikum table
{
    border: 0;
    border-collapse: collapse;
}

.RadComboBox_Raikum table td.rcbInputCell
{
    
    height: 22px;
    line-height: 22px;
    vertical-align: middle;
    padding: 0;
    /*border:1px solid #ff0000;*/
}



* html .RadComboBox_Raikum td.rcbInputCell
{
    height /**/: 22px;
    line-height /**/: 22px;
}

.RadComboBox_Raikum .rcbInputCellLeft,
.RadComboBox_Raikum .rcbInputCellRight,
.RadComboBox_Raikum .rcbArrowCellLeft,
.RadComboBox_Raikum .rcbArrowCellRight
{
    background: url('ComboBox/rcbSprite.png') no-repeat;
}

* html .RadComboBox_Raikum .rcbInputCellLeft,
* html .RadComboBox_Raikum .rcbInputCellRight,
* html .RadComboBox_Raikum .rcbArrowCellLeft,
* html .RadComboBox_Raikum .rcbArrowCellRight
{
    background: url('ComboBox/rcbSpriteIE6.png') no-repeat;
}

.RadComboBox_Raikum td.rcbInputCellLeft { background-position: 0 0; }
.RadComboBox_Raikum td.rcbInputCellRight { background-position: 100% 0; }

.RadComboBox_Raikum .rcbHovered .rcbInputCellLeft { background-position: 0 0; }
.RadComboBox_Raikum .rcbHovered .rcbInputCellRight { background-position: 100% 0; }

.RadComboBox_Raikum .rcbFocused .rcbInputCellLeft { background-position: 0 0; }
.RadComboBox_Raikum .rcbFocused .rcbInputCellRight { background-position: 100% 0; }

.RadComboBox_Raikum .rcbHovered .rcbReadOnly td.rcbInputCellLeft { background-position: 0 -22px; }
.RadComboBox_Raikum .rcbHovered .rcbReadOnly td.rcbInputCellRight { background-position: 100% -22px; }

.RadComboBox_Raikum .rcbFocused .rcbReadOnly td.rcbInputCellLeft { background-position: 0 -44px; }
.RadComboBox_Raikum .rcbFocused .rcbReadOnly td.rcbInputCellRight { background-position: 100% -44px; }

.RadComboBox_Raikum .rcbInputCell .rcbInput
{
    width:100%;
    background: transparent;
    border: 0;
    vertical-align: middle;
    padding: 2px 0 1px;
    outline: 0;
    /*border:1px solid #ff0000;*/
}


* html .RadComboBox_Raikum .rcbInputCell .rcbInput
{
    height /**/: 18px;
}

.RadComboBox_Raikum .rcbInputCell .rcbEmptyMessage
{
    color: #666;
    font-style: italic;
}

.RadComboBox_Raikum .rcbReadOnly .rcbInput
{
    cursor: default;
}

.RadComboBox_Raikum table td.rcbInputCell,
.RadComboBox_Raikum .rcbInputCell .rcbInput
{
    padding-left: 2px;
}

.RadComboBox_Raikum_rtl table td.rcbInputCell,
.RadComboBox_Raikum_rtl .rcbInputCell .rcbInput
{
    padding-right: 2px;
    padding-left: 0;
}

.RadComboBox_Raikum .rcbHovered .rcbInputCell .rcbInput
{
    color: #045cb5;
}

.RadComboBox_Raikum table td.rcbArrowCell
{
    width: 18px;
    padding: 0;
    /*border:1px solid #ff0000;*/
    
    
    
}

.RadComboBox_Raikum td.rcbArrowCellLeft { background-position: -18px -88px; z-index:1200; }
.RadComboBox_Raikum td.rcbArrowCellRight { background-position: 0 -88px; z-index:1200; }

.RadComboBox_Raikum .rcbHovered .rcbArrowCellLeft { background-position: -54px -88px; }
.RadComboBox_Raikum .rcbHovered .rcbArrowCellRight { background-position: -36px -88px; }

.RadComboBox_Raikum .rcbFocused .rcbArrowCellLeft { background-position: -90px -88px; }
.RadComboBox_Raikum .rcbFocused .rcbArrowCellRight { background-position: -72px -88px; }

.RadComboBox_Raikum td.rcbArrowCellHidden,
.RadComboBox_Raikum .rcbHovered td.rcbArrowCellHidden,
.RadComboBox_Raikum .rcbFocused td.rcbArrowCellHidden { background-position: -15px -88px; }
.RadComboBox_Raikum table.rcbDisabled td.rcbArrowCellHidden { background-position: -123px -88px; }

.RadComboBox_Raikum .rcbHovered .rcbReadOnly td.rcbArrowCellHidden { background-position: -51px -88px; }
.RadComboBox_Raikum .rcbFocused .rcbReadOnly td.rcbArrowCellHidden { background-position: -87px -88px; }

.RadComboBox_Raikum .rcbArrowCell a
{
    position: relative;
    outline: 0;
    overflow: hidden;
    display: block;
    width: 18px;
    height: 22px;
    text-decoration: none;
    text-indent: -9999px;
    font-size: 1px;
    
}

div.RadComboBox_Raikum td.rcbArrowCellHidden,
div.RadComboBox_Raikum .rcbArrowCellHidden a
{
    width: 3px;
}

/* Read-only styles */

.RadComboBox_Raikum .rcbReadOnly td.rcbArrowCell { width: 16px; }
.RadComboBox_Raikum .rcbReadOnly td.rcbArrowCell a { width: 16px; }

.RadComboBox_Raikum .rcbReadOnly td.rcbArrowCellLeft { background-position: -18px -88px; }
.RadComboBox_Raikum .rcbReadOnly td.rcbArrowCellRight { background-position: -2px -88px; }

.RadComboBox_Raikum .rcbHovered .rcbReadOnly .rcbArrowCellLeft { background-position: -54px -88px; }
.RadComboBox_Raikum .rcbHovered .rcbReadOnly .rcbArrowCellRight { background-position: -38px -88px; }

.RadComboBox_Raikum .rcbFocused .rcbReadOnly .rcbArrowCellLeft { background-position: -90px -88px; }
.RadComboBox_Raikum .rcbFocused .rcbReadOnly .rcbArrowCellRight { background-position: -74px -88px; }

.RadComboBox_Raikum .rcbReadOnly td.rcbArrowCellHidden,
.RadComboBox_Raikum .rcbReadOnly td.rcbArrowCellHidden a { width: 3px; }
.RadComboBox_Raikum .rcbReadOnly td.rcbArrowCellHidden { background-position: -15px -88px; }
.RadComboBox_Raikum .rcbHovered .rcbReadOnly td.rcbArrowCellHidden { background-position: -51px -88px; }
.RadComboBox_Raikum .rcbFocused .rcbReadOnly td.rcbArrowCellHidden { background-position: -87px -88px; }

/* dropdown */

.rcbSlide
{
    position: absolute;
    overflow: hidden;
    display: none;
    _height: 1px;
    float: left;
    
}

.RadComboBoxDropDown_Raikum .rcbHeader,
.RadComboBoxDropDown_Raikum .rcbFooter,
.RadComboBoxDropDown_Raikum .rcbMoreResults a
{
    background-image: url('ComboBox/rcbSprite.png');
    background-repeat: no-repeat;
}

* html .RadComboBoxDropDown_Raikum .rcbHeader,
* html .RadComboBoxDropDown_Raikum .rcbFooter,
* html .RadComboBoxDropDown_Raikum .rcbMoreResults a
{
    background-image: url('ComboBox/rcbSprite.gif');
    background-repeat: no-repeat;
}

.RadComboBoxDropDown_Raikum
{
    position: absolute;
    background: #fff;
    border: 1px solid #c6c7d2;
    border-top-color: #83868d;
    cursor: default;
    font-size: 11px;
}

.RadComboBoxDropDown_Raikum_rtl
{
    text-align: right;
    direction: rtl;
}

.RadComboBoxDropDown_Raikum .rcbScroll
{
    overflow: auto;
    position: relative;
}

.RadComboBoxDropDown_Raikum .rcbList
{
    list-style: none;
    position: relative;
    margin: 0;
    padding: 0;
}

.RadComboBoxDropDown_Raikum .rcbHeader,
.RadComboBoxDropDown_Raikum .rcbFooter
{
    background-repeat: repeat-x;
    background-color: #f1f2f4;
    background-position: 0 -110px;
    padding: 5px 7px 4px;
}

.RadComboBoxDropDown_Raikum .rcbHeader
{
    border-bottom: 1px solid #d5d5d5;
    margin-bottom: 1px;
}

.RadComboBoxDropDown_Raikum .rcbFooter
{
    border-top: 1px solid #d5d5d5;
    margin-top: 1px;
}

.RadComboBoxDropDown_Raikum .rcbNoWrap .rcbItem,
.RadComboBoxDropDown_Raikum .rcbNoWrap .rcbHovered,
.RadComboBoxDropDown_Raikum .rcbNoWrap .rcbDisabled,
.RadComboBoxDropDown_Raikum .rcbNoWrap .rcbLoading
{
    white-space: nowrap;
}

.RadComboBoxDropDown_Raikum .rcbItem,
.RadComboBoxDropDown_Raikum .rcbHovered,
.RadComboBoxDropDown_Raikum .rcbDisabled,
.RadComboBoxDropDown_Raikum .rcbLoading
{
    padding: 2px 19px 2px 6px;
    margin: 0 1px;
}

html>/**/body .RadComboBoxDropDown_Raikum .rcbItem,
html>/**/body .RadComboBoxDropDown_Raikum .rcbHovered,
html>/**/body .RadComboBoxDropDown_Raikum .rcbDisabled,
html>/**/body .RadComboBoxDropDown_Raikum .rcbLoading
{
    min-height: 13px;
}

* html .RadComboBoxDropDown_Raikum .rcbItem,
* html .RadComboBoxDropDown_Raikum .rcbHovered,
* html .RadComboBoxDropDown_Raikum .rcbDisabled,
* html .RadComboBoxDropDown_Raikum .rcbLoading
{
    height: 13px;
    word-break: break-all;
}

*+html .RadComboBoxDropDown_Raikum .rcbItem,
*+html .RadComboBoxDropDown_Raikum .rcbHovered,
*+html .RadComboBoxDropDown_Raikum .rcbDisabled,
*+html .RadComboBoxDropDown_Raikum .rcbLoading
{
    height: auto;
    word-break: break-all;
}

.RadComboBoxDropDown_Raikum_rtl .rcbItem,
.RadComboBoxDropDown_Raikum_rtl .rcbHovered,
.RadComboBoxDropDown_Raikum_rtl .rcbDisabled,
.RadComboBoxDropDown_Raikum_rtl .rcbLoading
{
    padding: 2px 6px 2px 19px;
}

.RadComboBoxDropDown_Raikum .rcbImage
{
    vertical-align: middle;
    margin: 0 6px 2px 0;
}

.RadComboBoxDropDown_Raikum_rtl .rcbImage
{
    margin: 0 0 2px 6px;
}

.RadComboBoxDropDown_Raikum em
{
    font-style: normal;
    font-weight: bold;
}

.RadComboBoxDropDown_Raikum .rcbItem em
{
    background: #e5e5e5;
}

.RadComboBoxDropDown_Raikum .rcbHovered
{
    background: #39f;
    color: #fff;
}

.RadComboBoxDropDown_Raikum .rcbSeparator
{
    color: #666;
    background: #D3ECF9;
}

.RadComboBox_Raikum .rcbDisabled .rcbInputCell .rcbInput,
.RadComboBoxDropDown_Raikum .rcbDisabled
{
    color: #999;
    cursor: default;
}

.RadComboBox_Raikum .rcbDisabled td.rcbInputCellLeft { background-position: 0 -66px; }
.RadComboBox_Raikum .rcbDisabled td.rcbInputCellRight { background-position: 100% -66px; }
.RadComboBox_Raikum .rcbDisabled td.rcbArrowCellLeft { background-position: -126px -88px; }
.RadComboBox_Raikum .rcbDisabled td.rcbArrowCellRight { background-position: -108px -88px; }
.RadComboBox_Raikum .rcbDisabled .rcbReadOnly td.rcbArrowCellRight { background-position: -110px -88px; }
.RadComboBox_Raikum .rcbDisabled .rcbReadOnly td.rcbArrowCellHidden { background-position: -15px -88px; }

.RadComboBoxDropDown_Raikum .rcbLoading
{
    background: #f0f0f0;
    text-align: center;
}

.RadComboBoxDropDown_Raikum .rcbMoreResults
{
    clear: both;
    border-top: 1px solid #c6c7d2;
    background: #fff;
    position: relative;
    padding: 0 6px 0;
    text-align: center;
    margin-top: 1px;
}

.RadComboBoxDropDown_Raikum .rcbMoreResults a
{
    display: inline-block;
    width: 15px;
    height: 9px;
    background-position: -157px -94px;
    text-indent: -9999px;
    overflow: hidden;
    text-decoration: none;
    cursor: pointer;
    vertical-align: middle;
}

* html .RadComboBoxDropDown_Raikum .rcbMoreResults a
{
    font-size: 0;
    line-height: 0;
    text-indent: 0;
}

*+html .RadComboBoxDropDown_Raikum .rcbMoreResults a
{
    font-size: 0;
    line-height: 0;
    text-indent: 0;
}

.RadComboBoxDropDown_Raikum .rcbMoreResults a:hover
{
    background-position: -188px -94px;
}

.RadComboBoxDropDown_Raikum .rcbMoreResults span
{
    vertical-align: middle;
    height: 19px;
    line-height: 19px;
    display: inline-block;
}

.RadComboBoxDropDown_Raikum .rcbSeparatedList .rcbItem,
.RadComboBoxDropDown_Raikum .rcbSeparatedList .rcbHovered,
.RadComboBoxDropDown_Raikum .rcbSeparatedList .rcbDisabled,
.RadComboBoxDropDown_Raikum .rcbSeparatedList .rcbLoading
{
    padding-left: 12px;
}

.RadComboBoxDropDown_Raikum .rcbSeparatedList .rcbSeparator
{
    padding-left: 6px;
}

/*hacks*/

/*Opera start*/
@media screen and (min-width: 550px)
{
    .RadComboBoxDropDown_Raikum_rtl .rcbItem,
    .RadComboBoxDropDown_Raikum_rtl .rcbHovered,
    .RadComboBoxDropDown_Raikum_rtl .rcbDisabled,
    .RadComboBoxDropDown_Raikum_rtl .rcbLoading
    {
        padding: 2px 6px 2px 19px;
    }
} /*Opera end*/


Please advise
Thanks in advance
Citytech Development Team



Nencho
Telerik team
 answered on 06 Jun 2013
5 answers
334 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
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?